[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PPC64

From: Pavel Roskin
Subject: Re: PPC64
Date: Tue, 21 Oct 2008 18:04:57 -0400


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

Once this bug is fixed, it should be safe to remove all references
host_m32 from  However, I left it in place because I
didn't have a 64-bit PowerPC to test.

util/ieee1275/ 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/

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,

Pavel Roskin

Attachment: grub-ppc
Description: application/shellscript

Attachment: grub-ppc-native
Description: application/shellscript

reply via email to

[Prev in Thread] Current Thread [Next in Thread]