From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KsPLe-0005xc-Ho for mharc-grub-devel@gnu.org; Tue, 21 Oct 2008 18:05:06 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KsPLb-0005wR-SR for grub-devel@gnu.org; Tue, 21 Oct 2008 18:05:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KsPLa-0005vS-1g for grub-devel@gnu.org; Tue, 21 Oct 2008 18:05:03 -0400 Received: from [199.232.76.173] (port=40109 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KsPLZ-0005vL-SQ for grub-devel@gnu.org; Tue, 21 Oct 2008 18:05:01 -0400 Received: from c60.cesmail.net ([216.154.195.49]:38648) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.60) (envelope-from ) id 1KsPLZ-0003L9-1x for grub-devel@gnu.org; Tue, 21 Oct 2008 18:05:01 -0400 Received: from unknown (HELO relay.cesmail.net) ([192.168.1.81]) by c60.cesmail.net with ESMTP; 21 Oct 2008 18:04:58 -0400 Received: from [192.168.0.21] (static-72-92-88-10.phlapa.fios.verizon.net [72.92.88.10]) by relay.cesmail.net (Postfix) with ESMTP id F40DE618FDE; Tue, 21 Oct 2008 18:04:58 -0400 (EDT) From: Pavel Roskin To: The development of GRUB 2 , Hollis Blanchard In-Reply-To: <1224622323.31194.81.camel@localhost.localdomain> References: <1224622323.31194.81.camel@localhost.localdomain> Content-Type: multipart/mixed; boundary="=-kaRMnp+GgfxSmZ6DQAlQ" Date: Tue, 21 Oct 2008 18:04:57 -0400 Message-Id: <1224626697.3267.19.camel@dv> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 (2.22.3.1-1.fc9) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Cc: Manoel , Carlos Roberto do Nascimento Costa Subject: Re: PPC64 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, 21 Oct 2008 22:05:04 -0000 --=-kaRMnp+GgfxSmZ6DQAlQ Content-Type: text/plain Content-Transfer-Encoding: 7bit Hello! I just want to post some PowerPC related information in this thread without delving deep into this discussion. GRUB_MOD_GAP is needed to work around a bug on PowerMac G3 (Blue&White). Without the gap, images created by grub-mkimage would not load. OpenFirmware would report: "CLAIM failed". I believe grub-mkimage doesn't generate valid ELF files, but they are "good enough" for OpenFirmware. But only with the gap. I have never tried compiling GRUB on 64-bit PowerPC. However, I tried cross-compiling it on x86_64 for PowerPC and found a bug in grub-mkimage, which I fixed. Look for GRUB_TARGET_SIZEOF_LONG in ChangeLog. Once this bug is fixed, it should be safe to remove all references host_m32 from configure.ac. However, I left it in place because I didn't have a 64-bit PowerPC to test. util/ieee1275/grub-install.in is not suitable for PowerPC. It assumes that /boot is on the HFS boot partition. It's not the case for Fedora and perhaps any distro. The HFS boot partition is not mounted and should be accessed by hfstools. The modules should be installed under /boot/grub. The path to /boot/grub should be embedded into the core image. We have support for embedding the default module path now. We need a better script that would not put all modules on the short HFS boot partition. Considering that the SPARC port is defunct, I would just rewrite util/ieee1275/grub-install.in. I'm attaching two scripts I'm using to test PowerPC grub on x86_64. One is building the tools for the host architecture, the other builds them for PowerPC and uses qemu to run them. The paths should be adjusted, obviously. -- Regards, Pavel Roskin --=-kaRMnp+GgfxSmZ6DQAlQ Content-Disposition: attachment; filename=grub-ppc Content-Type: application/x-shellscript; name=grub-ppc Content-Transfer-Encoding: 7bit #!/bin/sh set -e CROSS_PATH=/home/proski/src/buildroot/build_powerpc/staging_dir/usr/bin PATH=$CROSS_PATH:$PATH ./configure --with-platform=ieee1275 --target=powerpc-linux make -j2 ./grub-mkrescue --grub-mkimage=./grub-mkelfimage --pkglibdir=. grub.iso qemu-system-ppc -nographic -cdrom grub.iso -boot d --=-kaRMnp+GgfxSmZ6DQAlQ Content-Disposition: attachment; filename=grub-ppc-native Content-Type: application/x-shellscript; name=grub-ppc-native Content-Transfer-Encoding: 7bit #!/bin/sh set -e CROSS_PATH=/home/proski/src/buildroot/build_powerpc/staging_dir/usr/bin CROSS_LIB=/home/proski/src/buildroot/project_build_powerpc/uclibc/root PATH=$CROSS_PATH:$PATH ./configure --with-platform=ieee1275 --build=`sh config.guess` \ --host=powerpc-linux make -j2 ./grub-mkrescue --pkglibdir=. \ --grub-mkimage="qemu-ppc -L $CROSS_LIB ./grub-mkimage" grub.iso qemu-system-ppc -nographic -cdrom grub.iso -boot d --=-kaRMnp+GgfxSmZ6DQAlQ--