使用的uboot 是从这里http://blog.csdn.net/liukun321/article/details/8558425那过来的,需要根据其提升修改内核,文件系统是使用友善提供的。
我的启动参数
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