All of lore.kernel.org
 help / color / mirror / Atom feed
* multiboot header error
@ 2007-05-29 18:48 Constantine Kousoulos
  2007-05-30 15:51 ` Constantine Kousoulos
  0 siblings, 1 reply; 3+ messages in thread
From: Constantine Kousoulos @ 2007-05-29 18:48 UTC (permalink / raw)
  To: The development of GRUB 2

After successfully installing GRUB2 from cvs (thanks Jerone!), i 
decided to further test it on my amd64 machine.

At first, i built the sample kernel from 
http://www.gnu.org/software/grub/manual/multiboot/multiboot.html#Example-OS-code 
using the '-m32' gcc flag and by marking boot.S with the '.code32' 
directive. All these effectively created an elf32 image on my 
amd64 machine which built and booted without any trouble. :)

Then i proceeded to check if i can make GRUB2 boot the same kernel 
as a native elf64 image. So, i removed the above mentioned flag 
and directive, renamed any 'pushl' instruction to 'pushq', renamed 
registers 'eax' to 'rex' and 'ebx' to 'rbx', modified the magic 
number (0xe85250d6) and alingned it to 64-bits. When i tried to 
boot it i got: "error: No multiboot header found". :(

Is there something i did or didn't do correctly? I would greatly 
appreciate any feedback!

Thanks,
Constantine



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-05-31 18:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-29 18:48 multiboot header error Constantine Kousoulos
2007-05-30 15:51 ` Constantine Kousoulos
2007-05-31 18:51   ` Constantine Kousoulos

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.