ok6410 android driver(4)
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)的更多相关文章
- ok6410 android driver(5)
Test the android driver by JNI (Java Native Interface), In the third article, we know how to compile ...
- ok6410 android driver(11)
This essay, I go to a deeply studying to android HAL device driver program. According to the android ...
- 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 ...
- ok6410 android driver(8)
In the past, we know how to create and run a simple character device driver on pc, goldfish and ok64 ...
- ok6410 android driver(3)
This article discusses the Makefile and how to port the module to different platform (localhost and ...
- ok6410 android driver(12)
In this essay, I will talk about how to write the service libraries. TIPS : I won't discuss the name ...
- ok6410 android driver(10)
From this essay, we go to a new discussion "Android Hardware Abstraction Layer". In this e ...
- ok6410 android driver(7)
This article talk about how to test device driver on JNI. There are two ways to test the device driv ...
- ok6410 android driver(6)
This is a short essay about the mistakes in compiling ok6410 android-2.3 source codes. If there is n ...
- ok6410 android driver(1)
target system : Android (OK6410) host system : Debian Wheezy AMD64 1.Set up android system in ok6410 ...
随机推荐
- HDU 4762 Cut the Cake(公式)
Cut the Cake Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Tota ...
- ABAP报表中负值展示问题的处理方法
现象描述 在使用ABAP报表展示数据的时候会涉及到金额类字段,在手动计算金额的时候,有时会发生存在负值而无法正常展示的情况. 处理过程 ABAP报表的数据展示常用的方法有两种,分别是表控制和ALV ...
- webpack处理Img标签路径的几种情况
在使用webpack过程中遇到这个问题,各种搜索遇到此问题的还真不少,但都没有一个完整的说明. 后来研究下,图片除了路径替换还是就是图片做优化主是小于一定大小的通过转 base64 inline方式减 ...
- Difference between LET and LET* in Common LISP
Difference between LET and LET* in Common LISP LET Parallel binding which means the bindings com ...
- 手动安装 atom 扩展包 packages
由于某些原因, 我们下载 atom 扩展时发现速度特别慢, 或者根本无法下载, 那我们可以尝试手动安装 首先, 从 github 上下载(或其它地方) 扩展包, 解压 进入该文件夹, 找到 packa ...
- volley二次封装
产品中使用Volley框架已有多时,本身已有良好封装的Volley确实给程序开发带来了很多便利与快捷.但随着产品功能的不断增加,服务器接口的不断复杂化,直接使用Volley原生的JSONObjectR ...
- Windows Phone 8.1 Update1 支持中文“小娜”及开发者模拟器更新
千呼万唤的 Windows Phone 8.1 Update1 在 developer Perview 发布了还没有升级的朋友随我先睹为快吧.升级了的朋友们来看看 WP8.1 update1 还有哪些 ...
- Ext JS 6 入门学习资料大全(2016-12-14)
现在 sencha touch已经升级为 Ext JS 6 了重新整理下资料 官方网站:https://www.sencha.com/ 在线文档:http://docs.sencha.com/extj ...
- Java Collection好文章
Java Collection好文章 http://my.oschina.net/xiaomaoandhong/blog/78394
- jquery $.proxy使用
在某些情况下,我们调用Javascript函数时候,this指针并不一定是我们所期望的那个.例如: //正常的this使用 $('#myElement').click(function() { // ...