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 ...
随机推荐
- [Aaronyang] 写给自己的WPF4.5 笔记21 [3d课 2/4]
1. 当然复杂的3d模型我们是可以通过更专业的工具做出来,然后导入项目中,我们只是方便演示,选择简单的图形. Tip: 关于摄像机的NearPlaneDistance和FarPlaneDistance ...
- Xshell中文乱码问题
1. 先查看当前使用的语言: echo $LANG 2. 查看系统的语言安装包: locale 3. 如果没有中文安装包(包含zh_CN字样),需要网络或者自己上传安装包,安装 4. 有了中文 ...
- [转]Android 超高仿微信图片选择器 图片该这么加载
快速加载本地图片缩略图的方法: 原文地址:Android 超高仿微信图片选择器 图片该这么加载 其示例代码下载: 仿微信图片选择器 ImageLoader
- github 使用记录
安装客户端tortoiseGit 是服务端,要想在自己电脑上使用git我们还需要一个git客户端,我这里选用TortoiseGit,他给我们提供了图形界面的操作.在安装之前首先需要安装git,下载地址 ...
- iOS梦想之路-最新消息
查看博客请转到 iCocos梦工厂 个人微信:18370997821 QQ:790806573 weibo:18370998721 谢谢:
- SharedPreference注册OnSharedPreferenceChangeListener一直无法回调问题
注册代码如下: SharedPreferences sp = getSharedPreferences("AndroidDemo", Context.MODE_PRIVATE); ...
- Tips for thrift
Introduction I have designed and developed game servers successfully with thrift (http://thrift.apac ...
- MYSQL 的一些文件及说明
1.MySQL库目录下db.opt文件的作用 http://my.oschina.net/u/1462678/blog/232719 2.复制MySQL数据库A到另外一个MySQL数据库B(仅仅针对i ...
- JS - IE中没有console定义
由于IE中没有Console相关定义,所以不能使用它输出打印信息,且会出现脚本中断. 所以在IE中务必去掉(注释掉)console相关脚本代码.
- [转]Android开发最佳实践
——欢迎转载,请注明出处 http://blog.csdn.net/asce1885 ,未经本人同意请勿用于商业用途,谢谢—— 原文链接:https://github.com/futurice/and ...