I have some simple kernel code that just writes hello world to the VGA memory in text mode right now.
I'm not interested in writing my own bootloader, so I decided to use GRUB.
I compile and link my kernel like this (it's only x86 assembly, no C):
Code: Select all
nasm -felf hellokernel.asm -o hellokernel.o
ld -T link.ld -o hellokernel.bin hellokernel.o
Code: Select all
iso
---boot
------grub
---------grub.cfg
------hellokernel.bin
Code: Select all
menuentry "hellokernel" {
multiboot /boot/hellokernel.bin
}
Code: Select all
grub-mkrescue -o hellokernel.iso iso
Code: Select all
FATAL: Could not read from the boot medium! System halted.