Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NVV2K-0000IF-F4 for mharc-grub-devel@gnu.org; Thu, 14 Jan 2010 14:07:16 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NVV2I-0000GT-Rp for grub-devel@gnu.org; Thu, 14 Jan 2010 14:07:14 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NVV2E-0000AT-ER for grub-devel@gnu.org; Thu, 14 Jan 2010 14:07:14 -0500 Received: from [199.232.76.173] (port=47110 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NVV2E-0000AD-8v for grub-devel@gnu.org; Thu, 14 Jan 2010 14:07:10 -0500 Received: from sca-es-mail-1.sun.com ([192.18.43.132]:39055) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1NVV2D-00046T-EN for grub-devel@gnu.org; Thu, 14 Jan 2010 14:07:09 -0500 Received: from fe-sfbay-09.sun.com ([192.18.43.129]) by sca-es-mail-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id o0EJ75N8009160 for ; Thu, 14 Jan 2010 11:07:06 -0800 (PST) MIME-version: 1.0 Content-type: text/plain; delsp=yes; format=flowed; charset=utf-8 Received: from conversion-daemon.fe-sfbay-09.sun.com by fe-sfbay-09.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) id <0KW9008003IR1Z00@fe-sfbay-09.sun.com> for grub-devel@gnu.org; Thu, 14 Jan 2010 11:07:05 -0800 (PST) Received: from [192.168.2.4] ([unknown] [74.100.131.59]) by fe-sfbay-09.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) with ESMTPSA id <0KW900F233RSD7A0@fe-sfbay-09.sun.com> for grub-devel@gnu.org; Thu, 14 Jan 2010 11:07:05 -0800 (PST) Date: Thu, 14 Jan 2010 11:07:03 -0800 From: Seth Goldberg In-reply-to: <4B4F4C05.8070003@gmail.com> Sender: Seth.Goldberg@Sun.COM To: The development of GNU GRUB Cc: The development of GRUB 2 Message-id: X-Mailer: iPhone Mail (7D11) Content-transfer-encoding: QUOTED-PRINTABLE References: <4B4F4C05.8070003@gmail.com> X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) Subject: Re: [multiboot] command-line format X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jan 2010 19:07:15 -0000 Solaris uses the first argument (and it is essential to the kernel= =20 loading process actually). I've worked around the removal of the = =20 original arg0 string by passing the kernel name twice, ie: skern=3D/platform/i86pc/kernel/unix multiboot $skern $skern ... --S On Jan 14, 2010, at 8:53 AM, Gr=C3=A9goire Sutre =20 wrote: > Hi, > > Vladimir just sent a patch regarding this issue, but I had this lon= g =20 > (sorry!) email almost finished already, so here it is. And this = =20 > might give more context for Vladimir's email. > > As mentioned in a previous thread, I had some problems getting = =20 > multiboot options recognized by the NetBSD kernel, and this was = =20 > actually due to the fact that GRUB Legacy implicitly passes the = =20 > booted file as first argument whereas GRUB 2 doesn't [1]. > > I started a thread on NetBSD's port-i386 mailing list [2] on the = =20 > format of the multiboot command-line, and the discussion moved = =20 > towards the change in GRUB regarding the first argument (booted = =20 > kernel in GRUB Legacy, removed in GRUB 2). I ended up doing tests = =20 > with Xen, which is also multiboot-compliant, and Xen also skips the= =20 > first argument in its command-line parsing code (well, it's a bit = =20 > more complex, see [3] for details if you're interested). > > In the end, it may be the case that most multiboot-compliant kernel= s =20 > out there still assume that the first argument is the booted file = =20 > name, and skip it without even looking at it. Do you know of any = =20 > kernel that does not make this assumption? > > There are also other multiboot-compliant boot loaders (e.g. NetBSD'= s =20 > boot loader). Apart from GRUB 2, do you know of another boot-loade= r =20 > that does not put the booted file name as first argument? > > I understand that the specification does not enforce the boot loade= r =20 > to follow a specific command-line format. And, in a perfect world,= =20 > developers should follow the specification, disregarding any =20 > particular implementation of the specification. But I guess we = =20 > don't live in a perfect world ;-) > > The reference implementation (GRUB legacy) for the specification le= d =20 > kernel developers to assume a specific command-line format. And fo= r =20 > the sake of backward compatibility, all multiboot command-lines for= =20 > those kernels should contain the booted file name as first =20 > argument. So why not change the specification in this way, i.e. = =20 > require that the command-line starts with the booted file name? I = =20 > believe that this would merely amount to writing down what most = =20 > users of the specification had already in mind... > > Gr=C3=A9goire > > p.s. I guess that there are not many GRUB developers on the NetBSD > mailing lists, and, for my part, this topic is new... Feel free to > intervene :-) > > [1] http://lists.gnu.org/archive/html/grub-devel/2010-01/msg00146.h= tml > [2] http://mail-index.netbsd.org/port-i386/2010/01/09/msg001747.htm= l > [3] http://mail-index.netbsd.org/port-i386/2010/01/14/msg001768.htm= l > > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel