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 ...
随机推荐
- javaweb 学习总结
http://www.cnblogs.com/xdp-gacl/category/574705.html 这个总结很好,以前看书没搞懂的,这里基本上都清楚了,赞一个,推荐. Servlet与普通Jav ...
- 解决Visual Studio 调试时候不能直接访问.json后缀文件的问题
Web.config中作如下配置: <system.webServer> <staticContent> <mimeMap fileExtension=".js ...
- Scala 深入浅出实战经典 第76讲:模式匹配下的赋值语句
王家林亲授<DT大数据梦工厂>大数据实战视频 Scala 深入浅出实战经典(1-87讲)完整视频.PPT.代码下载: 百度云盘:http://pan.baidu.com/s/1c0noOt ...
- 根据第三方提供的wsdl报文(axis2开发),进行的webservice应用的开发实例
接口应用名称:NgCallService 入参和出参信息 入参和出参报文信息 入参: <?xml version="1.0" encoding="UTF-8&quo ...
- RabbitMQ学习笔记3-使用topic交换器
topic的路由规则里使用[.]号分隔单词,使用[*]号匹配1个单词,使用[#]匹配多个.和多个*. 在下面的例子中: logger.*可以匹配logger.error和logger.warning, ...
- D3 & Data Visualization in Ext JS
通过适配器可以在ExtJs中轻松的集成D3的展示能力 http://video.sencha.com/watch/zvUjnFJ91xVvuwdTh2zjqP?mkt_tok=eyJpIjoiWm1a ...
- 在 Excel 中使用公式拆分字符串日期
如图所示,分别使用 LEFT.MIDB.RIGHT 来拆分再拼接字符串即可: =LEFT(A1,4)&"-"&MIDB(A1,5,2)&"-&qu ...
- JMir——Java版热血传奇2之资源文件与地图
我虽然是90后,但是也很喜欢热血传奇2(以下简称“传奇”)这款游戏. 进入程序员行业后自己也对传奇客户端实现有所研究,现在将我的一些研究结果展示出来,如果大家有兴趣的话不妨与我交流. 项目我托管到co ...
- Python基本语句
x = 1 y = 1 dataf = 1.0 def fun1(): print("fun1") class ClassB(): def __init__(self): prin ...
- 从javascript一道闭包面试题说开去
这道题目比较经典了: var a = 1; function test(){ a = 2; return function(){ console.log(a); } var a = 3; } test ...