摘要: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.
阅读全文
摘要: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
阅读全文
摘要: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、add the apt-key as 'root' (! don't do this as 'sudo' )$ su root$ wget -O - http://suwako.nomanga.net/suwako.asc | apt-key add - 2、add therepository to source.list$ sudo vim /etc/apt/source.list# bumblebeedeb http://suwako.nomanga.net/debian sid main contribdeb-src http://suwako
阅读全文
摘要:1、check the kernel version$ uname -r3.2.0-4-amd64 2、install the source code$ sudo apt-get install linux-source-3.2 then there would be a file in /usr/src$ ls /usr/src | grep linux-sourcelinux-source-3.2.tar.bz2 3、decompress the .bz2$ sudo tar xvf linux-source-3.2.tat.bz2 4、configure the files....
阅读全文
摘要:准备阶段: 1、download debian-amd64.ios cd1http://cdimage.debian.org/debian-cd/7.0.0/amd64/iso-cd/ 2、制作启动U盘 In linux : (别选错了盘符)# dd if=./debian-amd64.ios of=/dev/sdb In windows :UltraISO 3、重启安装 4、如果安装时提示无法安装wifi,可以到下面的网址下载,进入系统后手动安装http://packages.debian.org/wheezy/firmware-iwlwifi 成功安装系统后: 1、换源...
阅读全文
摘要:1、转换文件内容编码 Windows下生成的纯文本文件,其中文编码为GBK,在Ubuntu下显示为乱码,可以使用iconv命令进行转换:iconv -f gbk -t utf8 source_file > target_file 2、转换文件名编码 Windows下压缩的zip文件,在 Ubuntu下解开时,中文文件名会显示乱码,可以用convmv解决。 安装convmv:sudo apt-get install convmv 转换文件或目录:convmv -f gbk -t utf8 -r --notest * 3、解压rar文件乱码 在ubuntu下解压Windows环境...
阅读全文
摘要:http://0nly.me/post/15197d_5063b7
阅读全文
摘要:参考连接:http://wenku.baidu.com/view/ae78a00390c69ec3d5bb75ce.html?st=1 链接上已经指明了我之前一直2013.01版本uboot产生错误的原因,2010.3版本到2010.6版本是uboot的一个分界,而2010.3版本的uboot是最接近samsung定制的s3c-u-boot-1.1.6版本uboot的一个版本号,所以在此选择版本2010.3 1、download the uboot from ftphttp://ftp.denx.de/pub/u-boot/download u-boot-2010.03.tar.bz2...
阅读全文
摘要:1、下载uboothttp://ftp.denx.de/pub/u-boot/ 2、解压文件tar xvf u-boot-latest.tar.bz2 3、进入uboot根目录、接着开始修改文件 4、创建板级文件目录cd /borad/samsungmkdir smdk6410 5、复制smdk6400文件到创建的文件目录cp smdk6400/* smdk6410/ 6、修改目录下的文件名cd smdk6410mv smdk6400.c smdk6410.cmv smdk6400_nand_spl.c smdk6410_nand_spl.c 7、修改板级文件内容vim smd...
阅读全文
摘要:由于学校的校园网服务器比较旧,开发板无法直接使用DHCP。 所以有两种解决思路: 1、在接入开发板之前,先接入一个交换机,接出来的接口再接开发板。 2、可能由于开发板内核版本旧导致的驱动版本比较旧(因为开发板OK6410买来的时候,配给的是3.01,而12.04版本的ubuntu的内核版本是3.2,在接入时,PC是可以适配这个校园网并获得ip),所以现在进行对开发板内核进行更新,目标版本3.6.3。 过程参考:http://blog.csdn.net/lwfbibi/article/details/7471877 步骤一:解压# tar xvf linux-3.6.3.tar.b...
阅读全文