I've been writing my own operating system for some time now, and I have
recently decided that it is time to explore the booting from disk issue.
I've got GRUB installed on a floppy and it seems to work. I have gotten
it booting a null kernel in the form of an ELF file. My operating
system's kernel, however, needs to be packaged in some other stuff to
work, so I want to use a Multiboot header embedded in part of it's
bootstrap code. This code is an ELF file that starts on the second
(4K) page of the file I tell GRUB to load. Something is not quite right
though, for I get the error `Invalid or unsupported executable format'
when I tell GRUB to load the file.
Part of a hexdump follows:
0001090 b002 1bad 0002 0000 4ffc e452 1090 0010
00010a0 0000 0010 0000 0000 0000 0000 1074 0010
If I read correctly, GRUB should be able to handle the Multiboot header
at this spot in the file. Does anyone know what I am doing wrong?
I'll send the entire file (8K) to anyone who needs it.
Thanks,
sc
--
Sidney CAMMERESI | icbm: 40.112 N, 88.200 W
http://www.cheesecake.org/~sac |
PGP: 65 6F B3 DA CA 3E 3B 09 | Cxi tie parolas Anglen kaj
32 C8 17 1C 0A 79 2F 3F | Esperanten.