- 共通テーマ:
- Android テーマに参加中!
出来るようにした。
環境作成手順
ソースコード取得
kernel のビルド
Android のビルド
ビルドしたイメージの書き込み
補足
android-4.0.3_r1 から変更したリポジトリ
https://bitbucket.org/sola/android_4.0.3_pandaboard_device_ti_panda
https://bitbucket.org/sola/android_4.0.3_pandaboard_hardware_ti_wlan
https://bitbucket.org/sola/android_4.0.3_pandaboard_external_wpa_supplicant_8
本環境を作成した時点では master の 4.0.3 環境が安定してないので、
これも安定してない。(画面がチラつく等)
改善されたら、この環境も追従していく。
ソースコード取得
$ mkdir -p /home/sola/work/panda_4.0.3
$ cd /home/sola/work/panda_4.0.3
$ export ANDROID_ROOT=$PWD
$ repo init -u https://bitbucket.org/sola/android_4.0.3_pandaboard_manifest
$ repo sync -j8
$ wget https://dl.google.com/dl/android/aosp/imgtec-panda-iml74k-cfb7bdad.tgz
$ tar zxvf imgtec-panda-iml74k-cfb7bdad.tgz
$ ./extract-imgtec-panda.sh
kernel のビルド
$ cd $ANDROID_ROOT
$ git clone https://android.googlesource.com/kernel/omap kernel
$ cd kernel
$ git checkout -b android-omap-panda-3.0 origin/android-omap-panda-3.0
$ export ARCH=arm
$ export CROSS_COMPILE=$ANDROID_ROOT/prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-
$ make panda_defconfig
$ make uImage -j8
$ cp -a arch/arm/boot/zImage $ANDROID_ROOT/device/ti/panda/kernel
Android のビルド
$ cd $ANDROID_ROOT
$ source build/envsetup.sh
$ lunch full_panda-eng
$ make -j8
ビルドしたイメージの書き込み
$ wget http://android-development-environment.googlecode.com/files/mksdcard_pandaboard.sh [PandaBoard]/dev/sdx の x の部分は環境によって異なるので、確認すること。
$ wget http://android-development-environment.googlecode.com/files/mksdcard_pandaboard_es.sh [PandaBoard ES]
$ chmod a+x mksdcard_pandaboard.sh [PandaBoard]
$ chmod a+x mksdcard_pandaboard_es.sh [PandaBoard ES]
$ sudo ./mksdcard_pandaboard.sh /dev/sdx $ANDROID_ROOT [PandaBoard]
$ sudo ./mksdcard_pandaboard_es.sh /dev/sdx $ANDROID_ROOT [PandaBoard ES]
補足
android-4.0.3_r1 から変更したリポジトリ
https://android.googlesource.com/device/ti/panda.git変更内容
https://android.googlesource.com/platform/hardware/ti/wlan.git (※追加)
https://android.googlesource.com/platform/external/wpa_supplicant_8.git
https://bitbucket.org/sola/android_4.0.3_pandaboard_device_ti_panda
https://bitbucket.org/sola/android_4.0.3_pandaboard_hardware_ti_wlan
https://bitbucket.org/sola/android_4.0.3_pandaboard_external_wpa_supplicant_8
本環境を作成した時点では master の 4.0.3 環境が安定してないので、
これも安定してない。(画面がチラつく等)
改善されたら、この環境も追従していく。
わたしはこの指示に従い、ビルドできました。
そして、イメージの書き込み、起動する
でも、そのときはUIはできない
わたしの環境はpandaboard ES
build 環境はubuntu 10.10 64bit
下記はメッセージが表示されています
[ 9.286621] adb_release
[ 9.287109] adb_bind_config
[ 9.293090] adb_open
shell@android:/ $ [ 12.057067] misc dsscomp: [ee5f7000] ignoring set failure 2
[ 20.747283] warning: `zygote' uses 32-bit capabilities (legacy support in us)
[ 20.783569] alarm_set_rtc: no RTC, time will be lost on reboot
[ 27.519836] request_suspend_state: wakeup (3->0) at 27513580325 (1970-01-02 )
[ 27.881134] init: no such service 'dhcpcd_eth0:-h android-6041883a917daaef e'
[ 27.890747] init: no such service 'dhcpcd_eth0:-h android-6041883a917daaef e'
[ 28.032196] acc_open
[ 28.032226] acc_release
[ 93.746032] request_suspend_state: sleep (0->3) at 93739593509 (1970-01-02 0)
[ 93.757141] DSSCOMP: dsscomp_early_suspend
[ 93.771911] DSSCOMP: blanked screen
。。。。
これで
[ 93.746032] request_suspend_state: sleep (0->3) at 93739593509 (1970-01-02 0)
[ 93.757141] DSSCOMP: dsscomp_early_suspend
[ 93.771911] DSSCOMP: blanked screen
繰り返し