Jonathan Barker <[EMAIL PROTECTED]> writes: > I thought that Grub could be the answer - but so far I have failed to > build an image which Grub accepts as a kernel. Is it true that ELF > images are not yet supported? I assume this is the case.
Get the latest GRUB sources, build the info documentation, and read docs/multiboot.info. Look at the ``Example OS code'' node (under Examples), and you'll see how to build your kernel with a multiboot header in it. If running mbchk on your kernel succeeds, chances are it will be successfully loaded by GRUB. > I've stripped my code to the bare minimum and tried all the options > for gcc and ld that I can think of. So what am I doing wrong? Is > there an easier way? Should I post this to a gcc group instead? GRUB doesn't actually understand generic ELF or a.out, only files with a Multiboot header, and some special cases (like the Linux kernel format, *BSD, and chainloading). Good luck, -- Gordon Matzigkeit <[EMAIL PROTECTED]> //\ I'm a FIG (http://fig.org/) Committed to freedom and diversity \// I use GNU (http://fig.org/gnu/) _______________________________________________ Bug-grub mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-grub