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. Android Studio 中关于NDK编译及jni header生成的问题

    之前由于工作原因使用grails这个基于groovy的框架做项目,对groovy感觉很好. 基于groovy的gradle构建系统对我而言自然也是好的没得说. Android Studio 正式版出来 ...

  2. java利用透明的图片轮廓抠图

    需要处理的图片: 1.png(空白区域为透明) 2.png 处理后的结果图片:result.png 代码如下: import java.awt.Graphics2D; import java.awt. ...

  3. java生成解析xml的另外两种方法JAXB

     JAXB(Java Architecture for XML Binding) 是一个业界的标准,是一项可以根据XML Schema产生Java类的技术.该过程中,JAXB也提供了将XML实例文档反 ...

  4. 一台服务器部署多个tomcat

    bin 目录下两文件 catalina.sh.startup.sh conf  目录下一个文件 server.xml

  5. Spring3系列12- Spring AOP AspectJ

    Spring3系列12- Spring AOP AspectJ 本文讲述使用AspectJ框架实现Spring AOP. 再重复一下Spring AOP中的三个概念, Advice:向程序内部注入的代 ...

  6. Web服务器性能监控分析与优化

    Web服务器性能监控分析与优化 http://www.docin.com/p-759040698.html

  7. TP-Link路由器刷dd-wrt的linux,无线信号增强不少

    家里面TP-LINK WR841ND v3老路由器各方面都不错,双天线,300M,用了好几年了,但摆在客厅里面,最远的卧室处无线就不是很稳定了,想了各种增强解决办法: 1.更换天线.        一 ...

  8. 2012年中国科学技术信息研究所发布自然科学SCI(E)论文期刊分区列表

    分区 期刊名称 ISSN 学科名称 学科名称(中文) 总被引频次 影响因子 5年影响因子 即年影响因子 被引半衰期 特征因子 论文影响指标 1区 ACM COMPUT SURV 0360-0300 C ...

  9. Win7上Git安装及配置过程

    Win7上Git安装及配置过程 文档名称 Win7上Git安装及配置过程 创建时间 2012/8/20 修改时间 2012/8/20 创建人 Baifx 简介(收获) 1.在win7上安装msysgi ...

  10. asp.net 客户端上传文件全路径获取方法

    asp.net  获取客户端上传文件全路径方法: eg:F:\test\1.doc 基于浏览器安全问题,浏览器将屏蔽获取客户端文件全路径的方法,只能获取到文件的文件名,如果需要获取全路径则需要另想其他 ...