您的位置:首页 > 移动开发 > Android开发

tiny210 uboot nfs 启动android

2013-05-04 11:54 302 查看
使用的uboot 是从这里/article/1392098.html那过来的,需要根据其提升修改内核,文件系统是使用友善提供的。

我的启动参数

setenv bootcmd "tftp 21000000 uImage;bootm 21000000"

setenv bootargs 'root=/dev/nfs rw nfsroot=192.168.1.102:/nfsroot/rootfs_dir ip=192.168.1.105:::::eth0:off init=/linuxrc console=ttySAC0,115200 lcd=H43'


需要注意的是LCD参数,默认的是lcd=S70, 文档描述支持三种lcd 我的是lcd=H43,还有就是lcd=W50',如果搞错了可能是触摸屏校准的时候会出问题。


编译内核可能遇到问题
1.

"mkimage" command not found - U-Boot images will not be built

安装即可

sudo apt-get install uboot-mkimage

2.启动时候

1Wire touchscreen OK

/init: line 103: can't open /r/dev/console: no such file

[ 4.547327] Kernel panic - not syncing: Attempted to kill init!

[ 4.547386] Backtrace:

需要内核配置支持NFS

内核的配置: File systems --->

[*] Network File Systems --->

--- Network File Systems

<*> NFS client support

│ │ [*] NFS client support for NFS version 3

│ │ [ ] NFS client support for the NFSv3 ACL protocol extension

│ │ [ ] NFS client support for NFS version 4 (EXPERIMENTAL)

│ │ [*] Root file system on NFS

3.UBUNTU12.04编译Android源码<命令行>:0:0: 错误: “_FORTIFY_SOURCE”重定义 [-Werror]

Ubuntu 11.10的gcc版本是4.6.1,版本太高,编译Android时出错,

build/core/combo/HOST_linux-x86.mk line 41:

-HOST_GLOBAL_CFLAGS += -D_FORTIFY_SOURCE=0

+HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: