Netwalker PC-Z1

Build Android 4.0.3


編譯步驟:
1. Download android source

$ export ANDROID_ROOT=/home/kanamaru/ics-netwalker
$ mkdir -p $ANDROID_ROOT
$ cd $ANDROID_ROOT
$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.3_r1.1
$ repo sync -j8

2. Download kernel source

$ cd $ANDROID_ROOT
$ wget http://netbook-remix.archive.canonical.com/updates/pool/public/l/linux-fsl-imx51/linux-fsl-imx51_2.6.28-15.50fsl1araneo19.tar.gz
$ tar zxf linux-fsl-imx51_2.6.28-15.50fsl1araneo19.tar.gz

3. Apply androidzaurus patch

$ cd $ANDROID_ROOT
$ wget https://github.com/androidzaurus/droidwalker/archive/master.zip
$ unzip master.zip
$ tar zxf androidzaurus-droidwalker-61b2290.tar.gz
$ cd jaunty-arm
$ patch -p1 < ../androidzaurus-droidwalker-61b2290/diff-araneo-android-2.6.28.patch
$ patch -p1 < ../androidzaurus-droidwalker-61b2290/disable_double_buffering.patch
$ patch -p1 < ../androidzaurus-droidwalker-61b2290/fbmem_8m.patch
$ patch -p1 < ../androidzaurus-droidwalker-61b2290/build-wifi-defconfig.patch

4. Apply another patch

$ cd $ANDROID_ROOT
$ wget http://brain.cc.kogakuin.ac.jp/research/files/ics/device_tk-netwalker-ics4.0.3-20120102.tgz
$ tar zxf device_tk-netwalker-ics4.0.3-20120102.tgz
$ $ANDROID_ROOT/device/tk/netwalker/patch/tk_patch.sh

5. Build kernel

$ cd $ANDROID_ROOT/jaunty-arm
$ export ARCH=arm
$ export CROSS_COMPILE=$ANDROID_ROOT/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-
$ export PATH=$ANDROID_ROOT/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin:$PATH
$ make netwalker_android_defconfig
$ make zImage modules

6. Build android

$ cd $ANDROID_ROOT/
$ export ARCH=arm
$ export CROSS_COMPILE=$ANDROID_ROOT/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-
$ export PATH=$PATH:$ANDROID_ROOT/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin
$ source build/envsetup.sh
$ lunch full_netwalker-eng
$ make -j8
$ $ANDROID_ROOT/device/tk/netwalker/image/netwalker-image.sh

P.S. 結果將存放在$ANDROID_ROOT/device/tk/netwalker/image/ics


返回上一頁