- 论坛徽章:
- 0
|
一、目前进展
1.Android已经可以通过NFS在FS2410开发板上运行
二、目前缺陷
1.触摸屏没有校准
2.Android中时钟停止,结束zygote进程,系统重启,时钟更新,但再次停止不动
3.串口无法与GPRS模块通讯
三、移植步骤
一、移植Android内核到FS2410开发板上
1、从
http://code.google.com/p/android/downloads/list
上下载
linux-2.6.25-android-1.0_r1.tar.gz
2、将内核解压到用户目录,如/home/wangan/kernel.git
3、进入kernel.git文件夹,如cd ~/kernel.git/
4、修改arch/arm/plat-s3c24xx/common-smdk.c文件中的nand flash分区设置,如gedit arch/arm/plat-s3c24xx/common-smdk.c
修改static struct mtd_partition smdk_default_nand_part[]结构体为:
static struct mtd_partition smdk_default_nand_part[] = {
[0] = {
.name = "Boot Agent",
.size = SZ_256K,
.offset = 0,
},
[1] = {
.name = "Linux Kernel",
.offset = SZ_256K,
.size = SZ_2M - SZ_256K,
},
[2] = {
.name = "File System",
.offset = SZ_2M,
.size = SZ_32M - SZ_2M,
},
[3] = {
.name = "Other",
.offset = SZ_32M,
.size = SZ_32M,
}
};
5、在
http://www.codesourcery.com/gnu_toolchains/arm/portal/release644
网站上下载
IA32 GNU/Linux TAR
。
6、将文件解压到用户目录,如/home/wangan/arm-2008q3
7、进入arm-2008q3/bin文件夹,如cd ~/arm-2008q3/bin/
8、添加当前路径进入环境变量,如export PATH=$PWD:$PATH,或修改~/.bashrc文件并重新登录
9、进入内核文件夹,如cd ~/kernel.git/
10、修改Makefile文件,如gedit Makefile
更改ARCH和CROSS_COMPILE
#ARCH ?= $(SUBARCH)
ARCH ?= arm
#CROSS_COMPILE ?= arm-eabi-
CROSS_COMPILE ?= arm-none-eabi-
11、从华清远见Linux-2.6.8.1内核压缩包中提取.config文件(注意:config前面有个“.”)放入kernel.git文件夹
12、运行make menuconfig
(1) 确保System Type ---> ARM system type ()中的内容为Samsung S3C2410, S3C2412, S3C2413, S3C2440, S3C2442, S3C2443
(2) 确保System Type ---> S3C2410 Machines ---> SMDK2410/A9M2410被勾选
(3) 取消选择与Goldfish相关的内容
Device Drivers ---> Character devices ---> Goldfish TTY Driver
Device Drivers ---> Power supply class support ---> Goldfish battery driver (NEW)
Device Drivers ---> Real Time Clock ---> GOLDFISH (NEW)
Device Drivers ---> Graphics support ---> Support for frame buffer devices ---> Goldfish Framebuffer
(4) 选择S3C2410 LCD相关的内容
Device Drivers ---> Graphics support ---> Support for frame buffer devices ---> S3C2410 LCD framebuffer support
Device Drivers ---> Graphics support ---> Bootup logo ---> Standard black and white Linux logo
Device Drivers ---> Graphics support ---> Bootup logo
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/90973/showart_1908236.html |
|