摘要: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...
阅读全文
摘要: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++. ...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要:I will paste and anlaysis a small character device driver in this paragraph.#include #include #include #include #include #include #include #define DEVICE_NAME "wordcount2"#define TRUE -1#define FALSE 0static unsigned char mem[1024];static int word_count = 0;static char is_spacewhite(char c
阅读全文
摘要:target system : Android (OK6410) host system : Debian Wheezy AMD64 1、Set up android system in ok6410 More details check the forlinx OK6410 UserGuide pdf. 2、There are two different ways to control the android system on ok6410 (1) minicom and USB-to-serial More details check the following webs...
阅读全文
摘要:1、error messenge:frameworks/base/telephony/java/android/telephony/NeighboringCellInfo.java:104: error 101: Unresolved link/see tag "TelephonyManager#NETWORK_TYPE_DCHSPAP TelephonyManager.NETWORK_TYPE_DCHSPAP" in android.telephony.NeighboringCellInfoframeworks/base/telephony/java/android/te
阅读全文