Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Lvhdl-0000MJ-Ei for mharc-grub-devel@gnu.org; Sun, 19 Apr 2009 20:45:41 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lvhdj-0000M0-3X for grub-devel@gnu.org; Sun, 19 Apr 2009 20:45:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lvhdh-0000Lo-MD for grub-devel@gnu.org; Sun, 19 Apr 2009 20:45:37 -0400 Received: from [199.232.76.173] (port=33459 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lvhdh-0000Ll-G3 for grub-devel@gnu.org; Sun, 19 Apr 2009 20:45:37 -0400 Received: from [74.93.104.97] (port=41851 helo=sunset.davemloft.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lvhdg-0000g6-HC for grub-devel@gnu.org; Sun, 19 Apr 2009 20:45:37 -0400 Received: from localhost (localhost [127.0.0.1]) by sunset.davemloft.net (Postfix) with ESMTP id F301335C525 for ; Sun, 19 Apr 2009 17:45:21 -0700 (PDT) Date: Sun, 19 Apr 2009 17:45:21 -0700 (PDT) Message-Id: <20090419.174521.113538448.davem@davemloft.net> To: grub-devel@gnu.org From: David Miller In-Reply-To: <20090419.174218.249201586.davem@davemloft.net> References: <20090419.174218.249201586.davem@davemloft.net> X-Mailer: Mew version 6.2.51 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: [PATCH]: grub: Add sparc64 support code. 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: Mon, 20 Apr 2009 00:45:39 -0000 From: David Miller Date: Sun, 19 Apr 2009 17:42:18 -0700 (PDT) Ho hum, the grub-devel "posting size monster" is likely going to eat this one. If you want to review this patch, I've put a copy up at: http://vger.kernel.org/~davem/0004-grub-Add-sparc64-support-code.patch > Ok, this gets sparc64 building again and adds the necessary seperation > of the mkdevicemap implementation so we can use escaped openfirmware > path names instead of "(hdX)" and "(fdX)" as is customary on i386. > a > Code is added to convert OS path names into openfirmware device > paths. With some very simple changes, this code can be adapted > to powerpc. This is not done yet, but when it is then grub will > no longer depend upon the 'ofpathname' program on powerpc. > > We're pretty close to working on sparc64 with this patch. What > remains is: > > 1) Fleshing out and implementing the OF path name escaping for > device map entries. > > 2) Fixing how FS UUID code can open the same device multiple times > at once, which doesn't work on OpenBoot. > > I have patches for #2 and will begin working on #1 now. > > 2009-04-19 David S. Miller > > * util/sparc64/ieee1275/misc.c: New file. > * util/sparc64/ieee1275/grub-setup.c: New file. > * util/sparc64/ieee1275/grub-ofpathname.c: New file. > * util/sparc64/ieee1275/grub-mkimage.c: New file. > * util/sparc64/ieee1275/grub-install.in: New file. > * util/ieee1275/ofpath.c: New file. > * util/ieee1275/devicemap.c: New file. > * util/devicemap.c: New file. > * util/deviceiter.c: New file. > * kern/sparc64/ieee1275/init.c: New file. > * include/grub/util/ofpath.h: New file. > * include/grub/util/deviceiter.h: New file. > * util/grub-mkdevicemap.c: Include deviceiter.h. > Implement using grub_util_emit_devicemap_entry and > grub_util_iterate_devices. > * conf/i386-corebook.rmk: Build util/deviceiter.c and > util/devicemap.c into grub-mkdevicemap > * conf/i386-efi.rmk: Likewise. > * conf/i386-ieee1275.rmk: Likewise. > * conf/i386-pc.rmk: Likewise. > * conf/powerpc-ieee1275.rmk: Likewise. > * conf/sparc64-ieee1275.rmk: Add rules to build boot block > images and installation utilities. Build kernel as image > instead of as elf binary. Use common rules as much as possible.