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. SAP 系统管理内容

    SAP 系统管理内容包含非常广泛,从底层硬件起到各种操作系统及各种系统软件及SAP软件组件等都会涉及到.SAP系统支持主流的IBM AIX.HP UNIX.Windows.Linux平台及Oracle ...

  2. Codeforces Round #382 (Div. 2)C. Tennis Championship 动态规划

    C. Tennis Championship 题目链接 http://codeforces.com/contest/735/problem/C 题面 Famous Brazil city Rio de ...

  3. [LeetCode] Find Median from Data Stream

    Find Median from Data Stream Median is the middle value in an ordered integer list. If the size of t ...

  4. asp Gridview绑定形式获取行号

    Gridview中使用<%# Container.DataItemIndex %>取得当前行的序号 而在Repeater控件中使用Container.ItemIndex取得当前行的序号 & ...

  5. c++ bind1st 和 bind2nd的用法

    std::bind1st 和 std::bind2nd将二元函数转换为一元函数,具体用法参加下面的代码. 代码介绍了两种使用方式,第一种是使用std::less和std::greater,第二种是使用 ...

  6. 解析Myeclipse项目下的.classpath文件

    <classpathentry kind="src" path="src"/> <classpathentry kind="con& ...

  7. VirtualBox的四种网络连接方式

    VirtualBox中有4中网络连接方式:a. NAT                          网络地址转换模式(Network Address Translation)b. Bridged ...

  8. vim中多标签和多窗口的使用

    用vim进行编辑的时候常常因为要编辑多个文件或者是编辑一个文件要参考其他文件而烦恼,这里介绍两种方法: 1.多标签 直接在编辑的时候输入: vim -p 要编辑的文件名 如vim -p * 就是编辑当 ...

  9. Reflector反编译.NET文件后修复【转】

    反编译后的工程文件用VS2010打开后,在打开窗体时会出现一系列错误提示: 第一种情况: “设计器无法处理第 152 行的代码: base.AutoScaleMode = AutoScaleMode. ...

  10. RestTemplate 使用总结

    场景: 认证服务器需要有个 http client 把前端发来的请求转发到 backend service, 然后把 backend service 的结果再返回给前端,服务器本身只做认证功能. 遇到 ...