Created
October 5, 2010 22:44
-
-
Save gongo/612486 to your computer and use it in GitHub Desktop.
GuruPlug 用 kernel 2.6.34 コンパイルまでの流れ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
PATCH_URI='http://sheeva.with-linux.com/sheeva/2.6.34.6/source' | |
CROSS_COMPILER='../arm-2010q1/bin/arm-none-linux-gnueabi-' | |
echo "Install required package" | |
aptitude install bzip2 patch uboot-mkimage build-essential libncurses-dev | |
echo "Download kernel source" | |
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.34.6.tar.bz2 | |
tar jxf linux-2.6.34.6.tar.bz2 | |
echo "Download kernel patch for GuruPlug" | |
wget $PATCH_URI/0001-Kirkwood-Marvell-GuruPlug-support-2.6.34.patch | |
wget $PATCH_URI/0002-Driver-for-Marvell-Libertas-8688-SDIO-micro-AP-suppo.patch | |
wget $PATCH_URI/0003-Initial-defconfig.patch | |
wget $PATCH_URI/linux-2.6.29-usb-serial-evdo.patch | |
wget $PATCH_URI/mvsdio-1-2.6.30.patch | |
wget $PATCH_URI/mvsdio-2.patch | |
echo "Execute patch" | |
patch -p1 -d linux-2.6.34.6 < ../0001-Kirkwood-Marvell-GuruPlug-support-2.6.34.patch | |
patch -p1 -d linux-2.6.34.6 < ../0002-Driver-for-Marvell-Libertas-8688-SDIO-micro-AP-suppo.patch | |
patch -p1 -d linux-2.6.34.6 < ../0003-Initial-defconfig.patch | |
patch -p1 -d linux-2.6.34.6 < ../linux-2.6.29-usb-serial-evdo.patch | |
patch -p1 -d linux-2.6.34.6 < ../mvsdio-1-2.6.30.patch | |
patch -p1 -d linux-2.6.34.6 < ../mvsdio-2.patch | |
echo "Setup Cross-Compiler" | |
wget http://www.codesourcery.com/sgpp/lite/arm/portal/package6488/public/arm-none-linux-gnueabi/arm-2010q1-202-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 | |
tar jxf arm-2010q1-202-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 | |
echo "Kernel" | |
cd linux-2.6.34.6 | |
make mrproer | |
wget http://sheeva.with-linux.com/sheeva/2.6.34.6/sheeva-2.6.34.6.config -O .config | |
make ARCH=arm CROSS_COMPILE=$CROSS_COMPILER oldconfig | |
make ARCH=arm CROSS_COMPILE=$CROSS_COMPILER menuconfig | |
make ARCH=arm CROSS_COMPILE=$CROSS_COMPILER | |
make ARCH=arm CROSS_COMPILE=$CROSS_COMPILER uImage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment