GRUB Question

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
Ayende Rahien

GRUB Question

Post by Ayende Rahien »

I want to build an OS, and I intend to use GRUB as a boot loader, but my problem is that I can find the documentation on what it requires from a kernel, and in what state it leaves the computer when it trasfer control to the kernel.
Can someone point me to where I can learn that?
charisma

Re:GRUB Question

Post by charisma »

http://www.washingdishes.freeuk.com/gru ... ml#compile

i found this really helpful in the starting
hope this helps....
Ayende Rahien

Re:GRUB Question

Post by Ayende Rahien »

It does help.
However, I've a question about the kernel itself.
I set it up as the page says, but when I try to boot from grub it tells me Error 13: File type not recognized.

$ objdump -a kernel.elf
kernel.elf: file format pei-i386

Is this OK?
Whatever5k

Re:GRUB Question

Post by Whatever5k »

You posted this question in alt.os.development, didn't you ;) ? Read my answer there ;)
I think your linker script is wrong (do you have one)? I had the same problem, I forgot the .rodata section
Post Reply