Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HkOEN-0003yN-6i for mharc-grub-devel@gnu.org; Sat, 05 May 2007 13:39:39 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HkOEM-0003xu-1e for grub-devel@gnu.org; Sat, 05 May 2007 13:39:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HkOEI-0003vk-85 for grub-devel@gnu.org; Sat, 05 May 2007 13:39:36 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HkOEI-0003vc-5D for grub-devel@gnu.org; Sat, 05 May 2007 13:39:34 -0400 Received: from aybabtu.com ([69.60.117.155]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HkO7V-0004nJ-Ef for grub-devel@gnu.org; Sat, 05 May 2007 13:32:33 -0400 Received: from [192.168.10.6] (helo=aragorn) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1HkO7T-0005DX-H3 for grub-devel@gnu.org; Sat, 05 May 2007 19:32:32 +0200 Received: from rmh by aragorn with local (Exim 4.63) (envelope-from ) id 1HkO8b-00047T-Nf for grub-devel@gnu.org; Sat, 05 May 2007 19:33:41 +0200 Date: Sat, 5 May 2007 19:33:41 +0200 From: Robert Millan To: grub-devel@gnu.org Message-ID: <20070505173341.GA15785@aragorn> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="nFreZHaLTZJo0R7j" Content-Disposition: inline Organization: free as in freedom X-Message-Flag: Microsoft discourages use of Outlook. X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-kernel: Genre and OS details not recognized. Subject: grub-probe on powerpc 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: Sat, 05 May 2007 17:39:38 -0000 --nFreZHaLTZJo0R7j Content-Type: text/plain; charset=us-ascii Content-Disposition: inline update-grub needs grub-probe to run, which is only available in i386. In principle, this file should be portable. I made this patch (currently applied in debian) to enable it on powerpc as well. However, it seems to have runtime errors (detects size of hd0 as 0 bytes) that I can't debug (because I lack the hardware). Maybe someone can give it a try? -- Robert Millan My spam trap is honeypot@aybabtu.com. Note: this address is only intended for spam harvesters. Writing to it will get you added to my black list. --nFreZHaLTZJo0R7j Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="powerpc_probe.diff" Index: conf/powerpc-ieee1275.rmk =================================================================== RCS file: /sources/grub/grub2/conf/powerpc-ieee1275.rmk,v retrieving revision 1.63 diff -u -r1.63 powerpc-ieee1275.rmk --- conf/powerpc-ieee1275.rmk 21 Feb 2007 23:22:20 -0000 1.63 +++ conf/powerpc-ieee1275.rmk 30 Apr 2007 15:24:13 -0000 @@ -26,14 +26,23 @@ # Utilities. bin_UTILITIES = grub-mkimage +sbin_UTILITIES = grub-probe ifeq ($(enable_grub_emu), yes) -sbin_UTILITIES = grub-emu +sbin_UTILITIES += grub-emu endif # For grub-mkimage. grub_mkimage_SOURCES = util/powerpc/ieee1275/grub-mkimage.c util/misc.c \ util/resolve.c +# For grub-probe. +grub_probe_SOURCES = util/i386/pc/grub-probe.c \ + util/i386/pc/biosdisk.c util/misc.c util/i386/pc/getroot.c \ + kern/device.c kern/disk.c kern/err.c kern/misc.c fs/fat.c \ + fs/ext2.c kern/parser.c kern/partition.c partmap/pc.c partmap/gpt.c fs/ufs.c \ + fs/minix.c fs/hfs.c fs/jfs.c kern/fs.c kern/env.c fs/fshelp.c \ + fs/xfs.c fs/affs.c fs/sfs.c fs/hfsplus.c disk/lvm.c disk/raid.c + # For grub-emu grub_emu_DEPENDENCIES = grub_script.tab.c grub_script.tab.h \ grub_modules_init.h Index: util/update-grub.in --nFreZHaLTZJo0R7j--