- 設定環境
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.2
TARGET_PRODUCT=imx51_bbg
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=FRF85B
============================================
- add busybox to /out/target/product/dependonyourplatform/system/bin
> make snod
將system內容打包成system.img (內容大小從原本的108863488變成110743552)
這樣子的方式可以讓你不用在重新build android就加入你已經build的程式
將產生出來的system.img mount起來
> mkdir system-another
> mount -o loop system.img system-another
> ls system-another
alsa_amixer busybox dhcpcd getprop iptables mke2fs pand renice servicemanager surfaceflinger vold
alsa_aplay cat dispd gzip keystore monkey ping resize2fs setconsole svc watchprops
alsa_ctl check_prereq dmesg hciattach keystore_cli mount pm rild setprop sync wipe
am chmod dnsmasq hd kill mtpd pppd rm sh system_server wpa_cli
applypatch chown dumpstate id linker mv printenv rmdir showlease tc wpa_supplicant
applypatch_static cmp dumpsys ifconfig ln nandread ps rmmod skia_test testid3
app_process dalvikvm dvz iftop log ndc qemud route sleep toolbox
audioloop date e2fsck ime logcat netcfg qemu-props run-as smd top
bash dbus-daemon flash_image input logwrapper netd racoon schedtest stagefright tune2fs
bluetoothd dd fsck_msdos insmod ls netstat radiooptions schedtop stapio umount
bmgr debuggerd gdbjithelper installd lsmod newfs_msdos reboot sdptool staprun updater
bootanimation dexopt gdbserver ioctl mediaserver notify record sendevent start vdc
bugreport df getevent ionice mkdir omx_tests recovery service stop vmstat
果然看到busybox
將system.img放到sd卡上
開機執行 可以直接run
busybox
以前是放到data folder下要執行需要
cd data
./busybox ls .....
現在
busybox ls....
1 則留言:
有更好的方式嗎?
張貼留言