Software/Virtual Platform/Android こちらはCentOS 4 での作業になります。 設定 †Android対応したKernelとuserlandをVirtual Platformで動かすための設定です。 rootfs.arm_nofpu.ext2 †ARM926EJS-CoWareVP-VersatilePB-SingleCore-Free-1.04/skin/Vanilla-Android-320x240/sim以下にある #!/bin/tcsh cd utils - ./fakeroot -l .libs/libfakeroot.so ./genext2fs -b 106481 -D device_table.txt -d ../root ../rootfs.arm_nofpu.ext2 -e 0 -N 32000 + ./fakeroot -l .libs/libfakeroot.so ./genext2fs -b 126481 -D device_table.txt -d ../root ../rootfs.arm_nofpu.ext2 -e 0 -N 32000 cd .. ARM926EJS-CoWareVP-VersatilePB-SingleCore-Free-1.04/other/vanilla/software にあるrootのバックアップし、 mv root root-orig mkdir root これでcreate_rootfs_arm_nofpu_ext2.cshを実行すると約124MBのrootfs.arm_nofpu.ext2が作成されます。 ./create_rootfs_arm_nofpu_ext2.csh ARM926EJS-CoWareVP-VersatilePB-SingleCore-Free-1.04/other/vanilla/software 以下にできたrootfs.arm_nofpu.ext2を cp rootfs.arm_nofpu.ext2 ../../../skins/Vanilla-Android-320x240/sim/ 次にSoftware/Virtual Platform/Android/Kernelにて作成したuserlandの内容をrootfs.arm_nofpu.ext2へコピーします。 # mount -o loop rootfs.arm_nofpu.ext2 ~/myMountDir myMountDirの中身をすべて削除します。 # cd ~/myMountDir # rm -fr * Software/Virtual Platform/Android/userlandにて作成したuserlandの中身をここにコピーします。 $ cp -afr ~/Android_rfs/* . コピーが終わりましたら、アンマウントします。 $ umount myMountDir ATPS2LCD †Virtual PlatformではDisplayもATPS2LCDでシミュレーションされていますが、
display.tclの設定 †ダウンロードしたATPS2LCDを使用するために $ cd ~/ARM926EJS-CoWareVP-VersatilePB-SingleCore-Free-1.04/other/scripts にあるdisplay.tclを編集します。 proc versatile_start_panel {} { global SKIN_DIR global TOOLDIR versatile_print_sdl - ###exec $TOOLDIR/ATPS2LCD > $SKIN_DIR/ATPS2LCD.log & + exec $TOOLDIR/ATPS2LCD --phone-skin > $SKIN_DIR/ATPS2LCD.log & } setup.tclの設定 †VPにてAndroid起動時にADBを使用できるようにあらかじめ5555番ポートをあける設定をします。 $ cd ~/ARM926EJS-CoWareVP-VersatilePB-SingleCore-Free-1.04/other/scripts にあるsetup.tclを編集します。 @@ -143,7 +143,7 @@ proc simulation_init { } { puts "Loading file-system and kernel data." reset_reload i_SMC91C111 sync_time_on # puts "Enabling port re-redirection for Android Debug Bridge (ADB)" - # i_SMC91C111 redirect "tcp 5555 10.0.2.15 5555 " + i_SMC91C111 redirect tcp 5555 10.0.2.15 5555 } vpmconfig †vpmに作成したskinのディレクトリ位置などを設定を読み込ませるために $cd ~/ARM926EJS-CoWareVP-VersatilePB-SingleCore-Free-1.04 <!DOCTYPE VirtualPlatform> <VirtualPlatform CreatorTimeStamp="2009-Mar-13_21::07::00.153" CreatorVersion="2009.1" > <VirtualPlatformList Name="ARM926EJS-CoWareVP-VersatilePB-SingleCore-Free" Version="1.04" > <Skin Description="Buildroot Filesystem, Vanilla Linux Kernel" Executable="skins/Vanilla/launch.csh" Name="Vanilla" Version="2.6.23" WorkDirectory="skins/Vanilla/sim" /> + <Skin Description="Buildroot Filesystem, Android" Executable="skins/Vanilla-Android-320x240/launch.csh" Name="Android" Version="1.5r2"WorkDirectory="skins/Vanilla-Android/sim" /> </VirtualPlatformList> </VirtualPlatform> 以上で設定は終了です。 起動 †Virtual Platformを起動します。 $ cd ~/ARM926EJS-CoWareVP-VersatilePB-SingleCore-Free-1.04 $ source setup.sh $ vpm vpmが起動し設定項目にVanillaとAndroidがあることを確認し、 動作について †マウス、キーボードの十字キーでフォーカスが移動します。 制限事項 †・この方法は4月25日ダウンロード分の無償評価版Virtual Platformのみの動作確認になります、 |