Page 1 of 1

booting elf64 image

Posted: Sat Apr 28, 2007 2:21 am
by 13postures
Hello gang,

I'm trying to make an experimental kernel multiboot compatible on amd64 and make it run in long mode. This kernel currently compiles and boots on i386 using Grub Legacy. However, Grub Legacy cannot boot elf64 images as this thread also states http://www.osdev.org/phpBB2/viewtopic.p ... ight=elf64.

Does GRUB2 support elf64 images without problems??


Thanks

Posted: Tue May 01, 2007 11:15 am
by 13postures
After some searching and inquiring at the appropriate lists, i found out that neither grub nor grub2 can load an elf64 image. Moving on...

Posted: Tue May 01, 2007 3:47 pm
by mystran
You could load elf32 binary, and an elf64 module for it, and have the elf32 binary setup an environment where you can switch to long mode, then have rest of the kernel in the elf64 module. That should work.

I don't know much about 64 though, so can't help with the details.

Posted: Thu May 03, 2007 7:53 pm
by quok
I looked at the sources in grub2's cvs today. It looks like it supports loading elf64 images now, at least on i386.