Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1D160b-0004fi-6h for mharc-grub-devel@gnu.org; Tue, 15 Feb 2005 11:57:11 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D160I-0004XK-NP for grub-devel@gnu.org; Tue, 15 Feb 2005 11:56:51 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D160F-0004VC-KK for grub-devel@gnu.org; Tue, 15 Feb 2005 11:56:50 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D160F-0004UG-4G for grub-devel@gnu.org; Tue, 15 Feb 2005 11:56:47 -0500 Received: from [32.97.110.132] (helo=e34.co.us.ibm.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1D15j9-0004uQ-19 for grub-devel@gnu.org; Tue, 15 Feb 2005 11:39:07 -0500 Received: from d03relay04.boulder.ibm.com (d03relay04.boulder.ibm.com [9.17.195.106]) by e34.co.us.ibm.com (8.12.10/8.12.9) with ESMTP id j1FGd5MN485760 for ; Tue, 15 Feb 2005 11:39:05 -0500 Received: from d03av04.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170]) by d03relay04.boulder.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id j1FGd5e0320038 for ; Tue, 15 Feb 2005 09:39:05 -0700 Received: from d03av04.boulder.ibm.com (loopback [127.0.0.1]) by d03av04.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id j1FGd4iP009766 for ; Tue, 15 Feb 2005 09:39:04 -0700 Received: from [192.168.0.100] (sig-9-65-60-109.mts.ibm.com [9.65.60.109]) by d03av04.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id j1FGd4Z2009747 for ; Tue, 15 Feb 2005 09:39:04 -0700 Mime-Version: 1.0 (Apple Message framework v619.2) In-Reply-To: <87mzu7arut.fsf@marco.marco-g.com> References: <20050213165452.GA4503@miracle> <87mzu8tiid.fsf@marco.marco-g.com> <5c9273e9e7f6eba181c088feaedb314c@penguinppc.org> <87mzu7arut.fsf@marco.marco-g.com> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Hollis Blanchard Date: Tue, 15 Feb 2005 10:39:04 -0600 To: The development of GRUB 2 X-Mailer: Apple Mail (2.619.2) Subject: Re: [patch] set prefix on PPC 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: Tue, 15 Feb 2005 16:57:01 -0000 On Feb 14, 2005, at 1:01 PM, Marco Gerards wrote: > Hollis Blanchard writes: > >> 2) HFS has a concept called "blessed"; basically the firmware can >> automatically find and boot blessed executables without needing to >> specify a file name or even partition. Some versions of Mac OS >> allegedly will unbless a non-Mac OS blessed file. For that reason, >> ybin prefers the HFS "bootstrap" partition be of a type that Mac OS >> will not mount (and so will not alter). > > How is the file blessed and why does that make it a problem to keep > /boot on a HFS partition? The file is blessed with hfsutils, spefically hattrib(1). I do not know if the in-kernel HFS(+) drivers allow for such changes (via ioctls for example). That will be worth investigating. Actually it seems I was mistaken, and "blessed" refers to the directory rather than the file itself. I believe then the proper file to be booted is found from its 4-byte HFS file type, "tbxi" being the magic "Mac OS kernel" type. >>> What I would prefer is this: >>> >>> 1) Set prefix to whatever was set in the binary. >> >> This would involve more post-compilation ELF manipulation. To >> accomplish that, if we do decide to go that route, I think it would be >> worth converting the existing module segment into a more >> general-purpose segment, containing all the added arguments. > > Ok. If we use your patch, this is not that important, I guess. If it > works right that is. Ok. I assume you want to test my patch and review it further, so I will wait for more comments before committing it. >>> 3) Read the arguments and if a prefix was passed to GRUB, use it to >>> override the prefix. >>> >>> For #3 I wrote a patch, but I forgot to send it to grub-devel... It's >>> included with this email. As far as I am concerned #1 is what is >>> really important for us. >>> >>> 2005-02-13 Marco Gerards >>> >>> * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize the >>> prefix env variable with the bootargs when it has a valid value. >> >> I don't like that this assumes bootargs only contains the prefix. For >> example, if we ever get our fancy debugging support, it would be very >> nice to boot grub with "debug=all" as an argument. > > I don't want to add a fancy parser yet. At the moment we just use a > single argument. If more will be used, this code has to be changed. And in that case, the format of "bootargs" will have to change too. It's never too early to think about backwards compatibility, especially if people are thinking of packaging and distributing a grub2.deb... :) >>> * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Don't >>> initialize `init_addr' yet, set it to 0 instead. >> >> Confused... how is this related to bootargs and prefix? > > It is required to make GNU/Linux boot here, just like the bootargs > stuff. ;) > > It is separated with a blank line to make clear they do not serve the > same purpose. I thought each ChangeLog entry represented a distinct "changeset", with changesets being logically different changes to a group of files. The ChangeLog was explained to me as emulating a changeset in version control systems that lack the concept (such as CVS). Since I believe the ChangeLog is an anachronism, I don't really care what it looks like or what format it's in. But since these changes are logically distinct, I believe they should at least be committed with separate "cvs commit" commands. -Hollis