Re: Cross compiling MIPS kernel under x86

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

 



On Wed, May 26, 2010 at 4:11 PM, octane indice <octane@xxxxxxxxxx> wrote:
> Sorry to bother you another time, but it's a FAIL :-(

Just checked that the following steps result in a successful build of
a vanilla 2.6.34 vmlinux:

cd /work/tmp/zoo/src
wget http://ftp.gnu.org/gnu/binutils/binutils-2.20.1.tar.bz2
cd ../build
../src/binutils-2.20.1/configure --prefix=/work/tmp/zoo
--target=mips64-unknown-linux-gnu
make
export PATH=/work/tmp/zoo/bin:$PATH
rm -rf *
cd ../src/
wget http://ftp.gnu.org/gnu/gcc/gcc-4.4.4/gcc-core-4.4.4.tar.bz2
tar jxf gcc-core-4.4.4.tar.bz2
cd ../build
../src/gcc-4.4.4/configure --target=mips64-unknown-linux-gnu
--prefix=/work/tmp/zoo --disable-threads --disable-shared
--disable-multilib --disable-libgcc --disable-libmudflap
--disable-libssp --disable-libgomp
make
make install
cd ../src
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.34.tar.bz2
tar jxf linux-2.6.34.tar.bz2
cd linux-2.6.34/
make ARCH=mips cavium-octeon_defconfig
make ARCH=mips CROSS_COMPILE=/work/tmp/zoo/bin/mips64-unknown-linux-gnu- vmlinux

Hope that helps.

Dmitri



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux