Bran's Kernel and Bootf02

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
teh_llama
Posts: 1
Joined: Thu Nov 01, 2007 7:56 pm

Bran's Kernel and Bootf02

Post 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?
User avatar
01000101
Member
Member
Posts: 1599
Joined: Fri Jun 22, 2007 12:47 pm
Contact:

Post 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.
frank
Member
Member
Posts: 729
Joined: Sat Dec 30, 2006 2:31 pm
Location: East Coast, USA

Post 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.
Post Reply