开发环境:红帽企业版6.3+虚拟机9.0.1
内核版本:友善移植好的2.6.35.7,源码在友善光盘中有压缩包
交叉编译版本:4.5.1 (来自友善光盘)
uboot:http://www.arm9home.net/read.php?tid-28451.html 烧写到SD卡(烧写方法见http://blog.csdn.net/liukun321/article/details/7438880)如有侵权请告知
nfs文件系统:解压自tiny210v2 A盘Linux\rootfs_qtopia_qt4-20130222.tar.gz
1.内核制作:
修改内核源码的
arch/arm/mach-s5pv210/include/mach/memory.h 文件 26,27 行内容,将 Maximum of 256MiB in one bank 的限制改为 Maximum of 512MiB in one bank 作如下修改:
#defineSECTION_SIZE_BITS 29
#defineNODE_MEM_SIZE_BITS 29
此处使用uboot启动,所以我选择制作uImage,然后使用bootm命令启动内核,linux的配置文件直接选择mini210_linux_config,拷贝为.config即可,然后make uImage
编译好的内核在arch/arm/boot目录下,名称:uImage
2.烧写uboot到SD卡上之后,设置bootargs参数
bootargs root=/dev/nfs nfsroot=192.168.1.105:/nfs/rootfs ip=192.168.1.230:192.168.1.105:192.168.1.105:255.255.255.0::eth0:off console=ttySAC0,115200 mem=512M
特别注意:192.168.1.105(nfs的服务器IP写了两遍)
3.bootcmd设置
set bootm "tftp uImage;bootm"