Install busybox for goldfish/phone

  1. Download busybox source code

http://www.busybox.net/

  2. Decompress busybox

$ tar xvf busybox-1.21.0.tar.bz2 -C ~/Android/
$ cd ~/Android/busybox-1.21.0

  3. Correct the cross compiler

$ vim Makefile
// add the compiler following CROSS_COMPILE
CROSS_COMPILE ?= arm-linux-

  TIPS : You must got an cross compiler already.

  4. configure busybox

$ make menuconfig

  If we would like to use the busybox on other platform, we should choose the following option :

Busybox Setting --> Build Options -->
[*] Build Busybox as a static binary (no shared libs)

  And we don't want the busybox install in our localhost system :

General Configuration -->
[*] Don't use /usr

  Cross Compiler prefix

Busybox Setting --> Build Option -->
(arm-linux-) Cross Compiler prefix

  TIPS : Check your cross compiler export path, if not, you should enter the complete path into Cross Compiler prefix.

  Save configurations.

  5. Compile the busybox

$ make     

  Wait a minute, there would be a new executable file : busybox

  6. Push busybox to you emulator/phone

$ adb push busybox /data/busybox

  7. Export the path to busybox

$ export PATH=$PATH:/data/busybox

  TIPS: /data/busybox directory must already exist

  8. Install busybox

  (1) make install in localhost

$ pwd
~/Android/busybox-1.21.0
$ make install

  (2) push the /bin to emulator/phone

// adb shell
/# mkdir /data/busybox/bin
// local host
$ adb push _install/bin/ /data/busybox/bin/
 (3) export the PATH in init.rc
 TIPS:
 This part we shoult not edit the init.rc directly, the init.rc was loaded by ramdisk.img.
 It is no use to change init.rc on the rootfs.
 We can change the init.rc by gunziping the ramdisk.img and rebuild it.
 More details check :
http://blog.csdn.net/pansing/article/details/7565923

 Or just copy the file to "/system/sbin/".

ok6410 android driver(4)的更多相关文章

  1. ok6410 android driver(5)

    Test the android driver by JNI (Java Native Interface), In the third article, we know how to compile ...

  2. ok6410 android driver(11)

    This essay, I go to a deeply studying to android HAL device driver program. According to the android ...

  3. ok6410 android driver(9)

    In this essay, I will write the JNI to test our leds device. If you don't know how to create a jni p ...

  4. ok6410 android driver(8)

    In the past, we know how to create and run a simple character device driver on pc, goldfish and ok64 ...

  5. ok6410 android driver(3)

    This article discusses the Makefile and how to port the module to different platform (localhost and ...

  6. ok6410 android driver(12)

    In this essay, I will talk about how to write the service libraries. TIPS : I won't discuss the name ...

  7. ok6410 android driver(10)

    From this essay, we go to a new discussion "Android Hardware Abstraction Layer". In this e ...

  8. ok6410 android driver(7)

    This article talk about how to test device driver on JNI. There are two ways to test the device driv ...

  9. ok6410 android driver(6)

    This is a short essay about the mistakes in compiling ok6410 android-2.3 source codes. If there is n ...

  10. ok6410 android driver(1)

    target system : Android (OK6410) host system : Debian Wheezy AMD64 1.Set up android system in ok6410 ...

随机推荐

  1. DataGridView隔行显示不同的颜色

      如果该dataGridView是跟数据库绑定的,则可以触发DataBindingComplete事件:  1private   void   dataGridView1_DataBindingCo ...

  2. phpStorm无法使用svn1.8的解决办法

    1.安装SVN的Command Lines Tools. 2.在phpStorm的SVN属性中,将Use Command Line Client填入:C:\Program Files\Tortoise ...

  3. Azure SoftEther VPN

    装个vs2015,想装全组建还得爬墙… 曾经的 Azure OpenVPN 项目 (http://azure-openvpn.github.io/) 好几年木有更新 改用 SoftEther VPN ...

  4. 关于在mac 配置eclipse c开发

    新建一个c 项目,如下 勾选hello world ANSL project ,勾选右边的MacOSX GCC 安装插件CDT - http://download.eclipse.org/tools/ ...

  5. 【面经】Epic: 数据库去重

    题目是:有2个10G的数据库,存储了一些string. 2者之间有一些重复的数据.请把它们合并为一个数据库,并且去除重复. 限制:内存是4G 例如: DB1: cmu, ucb, stanford, ...

  6. struts2:遍历自定义字符串数组,遍历Action实例所引用对象中的数组

    在struts2:OGNL表达式,遍历List.Map集合:投影的使用一文中已经讲述了OGNL遍历List.Map集合等功能. 本文简单写一个遍历数组的示范程序. 1. 遍历自定义字符串数组 < ...

  7. Excel的一些常用设置

    1. Freeze表头 (1) 下拉Worksheet的Pane,让该sheet有2个工作区,将该pane下拉到某一特定的行. (2)Window->Freeze Panes.此时会将pane智 ...

  8. Window中调试HBase问题小结

    1.好久没用log4j了,转到logback好多年了,hbase程序运行时,报缺少log4j配置,那么,就转去logback吧(以下的XXX表示版本号). 原先lib包里面有log4j-XXX.jar ...

  9. easyui plugin——etreegrid:CRUD Treegrid

    昨天写了一个ko+easyui的同样的实现,感觉写的太乱,用起来十分麻烦,于是今天照着edatagrid,写了一个etreegrid,这样再用ko绑定就方便多了. 使用很简单,$(tableId).e ...

  10. [转]UML八大误解

    潘加宇 本文删节版发表于<程序员>2013年11期 UML(统一建模语言)是软件建模的表示法标准.我从2002年开始专门从事研究和推广UML的工作,在为软件组织提供UML相关需求和设计技能 ...