Compare commits

..

No commits in common. "main" and "v1.0.0" have entirely different histories.
main ... v1.0.0

3704 changed files with 70 additions and 365360 deletions

View File

@ -1,60 +1,4 @@
### ОГЛАВЛЕНИЕ # JustOS
1. Загрузка ресурсов и подготовка
2. Настройка ядра
3. Компиляция в ISO образ
Just OS, just work.
### 1. Загрузка ресурсов и подготовка Based on Linux.
Вся сборка проводилась на последней версии Debian (Devuan) <br>
Процедура не требовательна к месту на диске/ОЗУ/CPU.
Загрузка ресурсов:
```
git clone https://gitea.del.pw/justuser/JustOS.git
cd justos
```
Установка зависимостей:
```
./install_requirements.sh
```
### 2. Настройка ядра
**Директория** - `linux-{ВЕРСИЯ}`
Запуск графической настройки:
```
make tinyconfig
make menuconfig
```
Включить "64-bit kernel"
Выбрать General setup <br>
Включить "Initial RAM filesystem and RAM disk (initramfs/initrd) support" <br>
Убрать все галочки с "Support initial ramdisks compressed using..."
Выбрать "Configure standard kernel features (expert users)" <br>
Включить "Enable support for printk" <br>
Выйти на главный уровень
Выбрать "Executable file formats / Emulations" <br>
Включить "Kernel support for ELF binaries" <br>
Выйти на главный уровень
Выбрать "Device Drivers" -> "Character devices" <br>
Включить "Enable TTY" <br>
Выйти и сохранить изменения
### 3. Компиляция в ISO образ
**Директория** - `linux-{ВЕРСИЯ}` <br>
Компиляция ядра с 4 потоками (больше - быстрее):
```
make -j 4
```
Сборка ISO:
```
make isoimage FDARGS="initrd=/init.cpio" FDINITRD="../progs/init.cpio"
```
Запуск ISO:
```
qemu-system-x86_64 -cdrom arch/x86/boot/image.iso
```

View File

@ -1,15 +0,0 @@
back=$(pwd)
cd progs
# Add all files exclude `src`
find . -path "./src" -prune -o -print0 | cpio --null -H newc -o > init.cpio
cd $back
rm -rf linux-*/arch/x86/boot/image.iso
cd linux-*
#make isoimage FDARGS="initrd=/init.cpio" FDINITRD="../progs/init.cpio"
# \/ \/ Turn off system messages (very annoying)
make isoimage FDARGS="initrd=/init.cpio loglevel=0 quiet" FDINITRD="../progs/init.cpio"
qemu-system-x86_64 -cdrom arch/x86/boot/image.iso
cd $back

View File

@ -45,5 +45,4 @@ make -j 4
# Сборка ISO # Сборка ISO
make isoimage FDARGS="initrd=/init.cpio" FDINITRD="../progs/init.cpio" make isoimage FDARGS="initrd=/init.cpio" FDINITRD="../progs/init.cpio"
# Запуск ISO # Запуск ISO
# -smp 1 - одно ядро, иначе сбивается время
qemu-system-x86_64 -cdrom arch/x86/boot/image.iso qemu-system-x86_64 -cdrom arch/x86/boot/image.iso

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

Binary file not shown.

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

View File

@ -1 +0,0 @@
busybox

1
progs/files Normal file
View File

@ -0,0 +1 @@
init

Binary file not shown.

Binary file not shown.

View File

@ -1 +0,0 @@
../bin/busybox

Some files were not shown because too many files have changed in this diff Show More