Re: Cross-compile PPC kernel on x86
- To: email@example.com
- Subject: Re: Cross-compile PPC kernel on x86
- From: Amit Uttamchandani <firstname.lastname@example.org>
- Date: Mon, 15 Jun 2009 03:37:49 -0700
- Message-id: <20090615033749.67538acf@debian>
- In-reply-to: <20090608225530.GC5499@localhost>
- References: <20090608135001.13dbff2f@debian> <20090608225530.GC5499@localhost>
On Mon, 8 Jun 2009 18:55:30 -0400
Eric Cooper <email@example.com> wrote:
> On Mon, Jun 08, 2009 at 01:50:01PM -0700, Amit Uttamchandani wrote:
> > At this point I would like to use the make-kpkg command but how do I
> > specify the paths for the proper toolchain to use?
> > Right now I am using the command:
> > make-kpkg --initrd --cross-compile powerpc --revision=test.kernel_image
> I've been using prebuilt kernels for a while, so this may be out of
> date, but I used to use this:
> make-kpkg --arch powerpc --subarch pmac --cross-compile powerpc-linux ...
> It will look for cross-tools in your PATH that are named
> powerpc-linux-gcc, powerpc-linux-as, etc.
Thanks for the response and the tip. I was able to get it to work using
the following command:
fakeroot make-kpkg --initrd --revision=rt2x00 --arch=powerpc
I used buildroot to build the cross compiler toolchain. I was going to
use emdebian but they did not have a working set for powerpc arch.
Note that above I compiled the rt2x00 kernel branch since I needed to
use the driver. However, this should work with any kernel.
And as a final step, I had to generate the initrd image manually and
set up the symbolic links for initrd and vmlinux to point to the build
The initrd image was built using the following command:
update-initramfs -c -k 2.6.30-rc6-wl
Hope this helps somebody.