Thank you for showing interest in SanderOSUSB! SanderOSUSB is a 32bit single tasking monolythic kernel that is supposed to run from USB or cd-rom.
For compiling you need the following programs:
- gcc
- nasm or fasm
- xorriso (grub)
sudo apt install gcc nasm xorriso
And then run the file /kernel/build.sh [ARGS]
to generate kernel file
Where:
- empty : only generates a kernel.bin file
- --grub : generates a grub-iso image
- --pxe : generates a pxe image
- install qemu
sudo apt install qemu qemu-utils qemu-kvm
- go to the repo directory
- run:
qemu-system-x86_64 -cdrom ./cdrom.iso
Currently the following devices are supported:
- β unknown
- β not supported
- β works
- π partly working
Devicename | VirtualBox | Qemu | Bochs | Real hardware |
---|---|---|---|---|
IDE - ATA | β | β | β | β |
IDE - ATAPI | β | β | β | β |
AHCI - ATA | β | β | β | π |
AHCI - ATAPI | β | β | β | β |
PS/2 keyboard | β | β | β | β |
PS/2 mouse | β | β | β | β |
PIC | β | β | β | β |
PCI | β | β | β | β |
ACPI | β | β | β | β |
USB - HID - Keyboard | β | β | β | β |
USB - Mass Storage Device | β | β | β | β |
EHCI (USB2.0) - Basic support | β | β | β | β |
XHCI (USB3.0) - Basic support | β | β | β | π |
RTL8169 | β | β | β | β |
E1000 | β | β | β | β |
Soundblaster 16 | β | β | β | β |
The following devices are on the list to get implemented:
The following filesystems are supported:
Filesystemname | Read | Write |
---|---|---|
ISO 9660 | β | β |
MBR | β | β |
EFI-MBR | β | β |
EXT2 (very basic) | β | β |
FAT 12,16,32 | β | β |
SFS | β | β |
TFTP | β | β |
the following executable formats are supported:
- 32-ELF (relocation and executable type)
- raw binary at 0x2000
- BASfile (with basic.bin)
the following executable formats are on the list to get implemented:
- 32-MZPE
- 32-MZCOFF
- Marble
the following bootmethods are supported:
- GRUB2
- PXE
- qemu --kernel loader
- boot: Grub bin folder
- kernel: Kernel source code
- lib: kernel static library to which programs attach to
- programs: example programs
- build system with
./build.sh --grub
- burn cdrom.iso to a cdrom
- make a usbstick with EXT as filesystem
- run
sudo grub-install --target=i386-pc --root-directory=[mountpoint_filesystem] /dev/sdb
- copy grub command file
sudo cp ../boot/grub/grub.cfg [mountpoint_filesystem]/boot/grub/grub.cfg
- copy kernel
sudo cp ../kernel.bin /media/sander/SOS/kernel.bin