1
1
Fork 0

We put R, G and B pixel on top left to see if framebuffer works. Why wouldn't it!

This commit is contained in:
Lauren Toivanen 2025-10-28 22:00:29 +02:00
parent 791c1f6c31
commit 6139ea7875
3 changed files with 224 additions and 0 deletions

34
README.md Normal file
View file

@ -0,0 +1,34 @@
# rOSka
- Probably useless hobby OS project
- Targets 32bit legacy systems with graphical framebuffer
- Boots with multiboot compatible bootloader, such as GRUB
- Assembles with FASM
- We'll probably use ext2 filesystem
## GRUB disk creation
1. Format disk. Create ext2 partition
2. Create directory mnt and mount your partition to it
```
mkdir mnt
sudo mount /dev/sdX mnt
```
3. Intall grub using `sudo grub-install --target=i386-pc --removable --boot-dir=mnt/boot /dev/sdX`
4. Create config
``` mnt/boot/grub/grub.cfg
menuentry "rOSka" {
multiboot /boot/roska.bin
boot
}
```
5. Copy assembled kernel to `mnt/boot/roska.bin`
Oh yeah heres a montrosity I currently use.
`fasm roska.fasm && sudo mount /dev/sdd1 mnt/ && sudo cp roska.bin mnt/boot/roska.bin && sudo umount /dev/sdd1 && sudo sync && sudo qemu-system-i386 /dev/sdd`