Page 1 of 1

Bran's Kernel and Bootf02

Posted: Thu Nov 01, 2007 8:02 pm
by teh_llama
Bran's Kernel Development is a great tutorial, but the kernel used is setup to be boot with GRUB. I'd rather use a boot sector like bootf02. I tried using the kernel as-is, but Virtual PC 2007 gave me an unrecoverable error on boot.

So, does anyone have any ideas as to what I would need to change to boot using bootf02 rather than GRUB? Or, does anyone know what information I would need to figure it out?

Posted: Thu Nov 01, 2007 9:06 pm
by 01000101
you could start by either giving a more specific error message from VPC, or test it out on a different PC emulator like BOCHS which would (whether it workes or not) give a better error message.

I myself use grub at the moment as I am working on my own bootloader/bootstrap.

Posted: Fri Nov 02, 2007 11:45 am
by frank
For one GRUB loads the kernel at the 1mb mark. From what I can tell bootfo2 loads the kernel somewhere in memory and then uses the segment trick to map the kernel to 0xFF800000. If you are going to be using bootfo2 you need to map the kernel to 0xFF800000 in the linker script.