Page 1 of 1
GRUB Question
Posted: Fri Oct 18, 2002 11:03 pm
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?
Re:GRUB Question
Posted: Sat Oct 19, 2002 4:16 am
by charisma
http://www.washingdishes.freeuk.com/gru ... ml#compile
i found this really helpful in the starting
hope this helps....
Re:GRUB Question
Posted: Sat Oct 19, 2002 11:35 am
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?
Re:GRUB Question
Posted: Sat Oct 19, 2002 3:27 pm
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