bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Grub compatible images - stupid questions


From: Gordon Matzigkeit
Subject: Re: Grub compatible images - stupid questions
Date: 19 Nov 2001 09:48:18 -0600
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

Jonathan Barker <address@hidden> 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 <address@hidden>  //\ I'm a FIG (http://fig.org/)
Committed to freedom and diversity \// I use GNU (http://fig.org/gnu/)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]