GRUB error 13

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
alaroldai
Posts: 19
Joined: Sat May 07, 2011 6:34 am

GRUB error 13

Post by alaroldai »

Hey all, I've been having trouble with the Bare Bones tutorial - specifically, now that I've finally got my cross compiler to work properly, I've been running into GRUB error 13. I'm using QEMU as an emulator. I've actually managed to work past it, but the way I did so was a little strange and I'd like some opinions. Basically, I was using the GAS code from the tutorial and getting the error. But when I tried using the NASM code instead, the error vanished. I can't quite see why.

Also, the wiki page on error 13 shows some NASM code for a workaround, but no code for GAS - could someone post a GAS equivalent, if there is one? I'm not confident enough in assembly to try it myself :p
User avatar
thepowersgang
Member
Member
Posts: 734
Joined: Tue Dec 25, 2007 6:03 am
Libera.chat IRC: thePowersGang
Location: Perth, Western Australia
Contact:

Re: GRUB error 13

Post by thepowersgang »

I suggest putting the mulitboot header in its own section (say called .multiboot) and modify the linker script to put that first.

If that doesn't work, does mbchk show anything?, can you find the multiboot magic using hd?
Kernel Development, It's the brain surgery of programming.
Acess2 OS (c) | Tifflin OS (rust) | mrustc - Rust compiler
Currently Working on: mrustc
Post Reply