Netwalker PC-Z1

Build Android 2.3.4


Netwalker PC-Z1除了外型漂亮之外,內部可以研究的東西真是相當多,這些東西包含Bootloader、Kernel、OS等東西,加上官方也釋出Kernel原始碼等資源,因此,算是一台可以讓使用者好好學習、研究嵌入式系統的好機器,雖然該台機器已經停產,不過使用者或許可以到二手拍賣網找尋看看,或許有機會購買到這一台機器,接著司徒要介紹如何編譯Netwalker PC-Z1機器的Android 2.3.4系統,希望讓使用者有機會去研究一下Netwalker PC-Z1機器的Android系統

編譯步驟:
1. Download android source

$ export ANDROID=/home/kanamaru/gingerbread-netwalker
$ mkdir -p $ANDROID
$ cd $ANDROID
$ repo init -u https://android.googlesource.com/platform/manifest -b android-2.3.4_r1
$ repo sync

2. Download kernel source

$ cd $ANDROID
$ 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
$ 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
$ wget http://brain.cc.kogakuin.ac.jp/research/files/vendor_tk-netwalker-gingerbread2.3.4-20110726.tar.gz
$ tar zxf vendor_tk-netwalker-gingerbread2.3.4-20110726.tar.gz
$ $ANDROID/vendor/tk/patch/tk_patch.sh

5. Build kernel

$ cd $ANDROID/jaunty-arm
$ make ARCH=arm CROSS_COMPILE=../prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi- netwalker_android_defconfig
$ make ARCH=arm CROSS_COMPILE=../prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi- zImage modules

6. Build android

$ cd $ANDROID/
$ source build/envsetup.sh
$ lunch netwalker-eng
$ make -j8
$ $ANDROID/vendor/tk/netwalker/image/netwalker-image.sh

P.S. 結果將存放在$ANDROID/vendor/tk/netwalker/image/gingerbread


返回上一頁