摘要:
In this essay, I will talk about how to write the service libraries. TIPS :I won't discuss the name rules about HAL libraries, but it's quite important to our understanding.You can check the source file :android_source/hardware/libhardware/hardware.cOr google with key word :android hardware. 阅读全文
2013年8月4日
摘要:
This essay, I go to a deeply studying to android HAL device driver program. According to the android architecture we disscus in last essay, when we are designing a android device driver, we should follow the steps below : (1) linux device driver In this driver, we should try our best to cut d... 阅读全文
摘要:
From this essay, we go to a new discussion "Android Hardware AbstractionLayer". In this essay, we fisrt talk about the architecture of linux and android. 1、linux If you have got some brief reading about 《Linux Kernel Development》 or 《Linux Device Driver》, you would know the Linux Kernel wo 阅读全文
2013年7月28日
摘要:
In this essay, I will write the JNI to test our leds device. If you don't know how to create a jni project, I suggest you to have a read on the following website :http://www.cnblogs.com/plinx/p/3213824.html 1、string.xml ledsjni Settings String input: Str Input I/O control: I/O ... 阅读全文
摘要:
In the past, we know how to create and run a simple character device driver on pc, goldfish and ok6410. These two essays I will talk about a led device real exists on ok6410. In this essay, we will compile a led device driver and test it. At first, I wanna write some short summary of the diff... 阅读全文
2013年7月27日
摘要:
This article talk about how to test device driver on JNI. There are two ways to test the device driver : (1) Create methods to control devices in .c/.cpp file, the .java call the methods in .c/.cpp : This way is call JNI (Java Native Interface), means java works via native interface in C/C++. ... 阅读全文
2013年7月25日
摘要:
This is a short essay about the mistakes in compiling ok6410 android-2.3 source codes. If there is nothing happen when you compiling forlinx android-2.3, just go past. My local host is 64bit system, but the forlinx android souce code was compiler on 32bit. So we should change the follwing files... 阅读全文
2013年7月24日
摘要:
Test the android driver by JNI (Java Native Interface), In the third article, we know how to compiler the moduler for localhost, ok6410 and goldfish platform.http://www.cnblogs.com/plinx/p/3209500.html But we didn't try to test the driver using by C/C++ program on ok6410 and goldfish. Android w. 阅读全文
摘要:
Install busybox for goldfish/phone 1. Download busybox source codehttp://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_COMPILECROSS_COMPILE ?= arm-l... 阅读全文
2013年7月23日
摘要:
This article discusses the Makefile and how to port the module to different platform (localhost and arm). 1、localhost My localhost system is debian wheezy. If you would like to set up the environment for user-mode, you can follow the website :http://www.cnblogs.com/plinx/p/3149216.html Actur... 阅读全文