Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HMZrS-0002L3-S9 for mharc-grub-devel@gnu.org; Wed, 28 Feb 2007 20:13:34 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HMZrQ-0002Ic-V4 for grub-devel@gnu.org; Wed, 28 Feb 2007 20:13:32 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HMZrQ-0002Hq-81 for grub-devel@gnu.org; Wed, 28 Feb 2007 20:13:32 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HMZrQ-0002HY-4B for grub-devel@gnu.org; Wed, 28 Feb 2007 20:13:32 -0500 Received: from pop-sarus.atl.sa.earthlink.net ([207.69.195.72]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HMZrP-0004Mt-4R for grub-devel@gnu.org; Wed, 28 Feb 2007 20:13:31 -0500 Received: from user-0vvdf2d.cable.mindspring.com ([63.246.188.77] helo=[192.168.0.2]) by pop-sarus.atl.sa.earthlink.net with esmtp (Exim 3.36 #1) id 1HMZrM-0002EZ-00 for grub-devel@gnu.org; Wed, 28 Feb 2007 20:13:29 -0500 From: Hollis Blanchard To: The development of GRUB 2 In-Reply-To: <5.2.1.1.2.20070227164442.00d372e8@znyx.com> References: <5.2.1.1.2.20070227164442.00d372e8@znyx.com> Content-Type: text/plain Date: Wed, 28 Feb 2007 19:13:27 -0600 Message-Id: <1172711607.29289.10.camel@diesel> Mime-Version: 1.0 X-Mailer: Evolution 2.8.2.1 (2.8.2.1-3.fc6) Content-Transfer-Encoding: 7bit X-detected-kernel: Solaris 8 (1) Subject: Re: GRUB header magic numbers X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Mar 2007 01:13:33 -0000 On Tue, 2007-02-27 at 16:46 -0800, Daniel Weaver wrote: > Hello, > > I have created a proprietary loader that serves much the same function as GRUB. > It is used to load a proprietary operating system. One of the things I need > in my system is the load length of the operating system. Rather than > reinvent the wheel I wish to use a GRUB style header to provide this > information. Some day in the future we may decide to change either the > loader or the operating system and the use of a standard loader header > will make the transition much easier. > > My web searches have turned up two very similar multiboot headers. > One with a magic number of 0x1BAD002 and another with a magic > number of 0xe85250d6. > > First off, why are there two numbers? They are from different versions of the Multiboot specification: http://www.gnu.org/software/grub/manual/multiboot/html_node/Header-magic-fields.html#Header-magic-fields http://grub.enbug.org/MultibootDraft It's not just the numbers; the formats are completely different. > And which is more likely to be used in the long run? The multiboot2 format, though multiboot1 will likely not go away in the near term. multiboot1 was written without any thought for portability, and since it's a large data structure it is very brittle. The multiboot2 format is portable and much more flexible and extensible, since it is based on a list of small structures. That said, it is not yet in use by any major project (much like grub2 itself). There is no multiboot2 loader for grub 0.9x (which is the version currently in use by all Linux distributions). If you're looking for a format to support, I would recommend multiboot2, especially since you don't depend on interoperability with the current generation of Linux software. If you do choose to use multiboot2 and have any comments, questions, or suggestions about the format, we'd love to hear about them here. -Hollis