bug-grub
[Top][All Lists]
Advanced

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

Cross-compile and install grub: PPC host & i386 target


From: Karim Yaghmour
Subject: Cross-compile and install grub: PPC host & i386 target
Date: Wed, 19 Jun 2002 18:17:02 +0000

[Please CC' me as I'm not subscribed to this list]

I've been experimenting with cross-compiling grub on a ppc host for
an i386 target. The compile works quite fine (although I had to
manually add <linux/linux.h> to grub-0.92/lib/device.c for it to
compile).

The real problem is trying to get grub to install on my target's
root device which is a CompactFlash card mounted using Linux's
USB-storage layer as /dev/sda. On the target, this gets to be
the primary hard disk.

I am able to get the stage1 and stage2 images on the device using
"dd". Grub then does display the "GRUB" letters when the CF card
is put on the target, but not much else (obviously).

Sifting through the manual, it seems that I really need to run
the "grub" executable for it to prepare the root device if I want
to have an ext2 fs on the root dev. The build process, however,
simply refuses to go anywhere once it sees that it is running on
a ppc host.

Would there be a "simple" way to get the "grub" utility to compile
on the ppc in order to be able to format my root device? Or maybe
I'm just missing something here ... ?

Any help would be greatly appreciated.

Karim

===================================================
                 Karim Yaghmour
               address@hidden
      Embedded and Real-Time Linux Expert
===================================================



reply via email to

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