常用命令:
setenv bootargs root=/dev/nfs nfsroot=192.168.0.110:/source/rootfs rw ip=192.168.0.140:192.168.0.110:192.168.0.1:255.255.255.0::eth0:off init=/linuxrc console=ttySAC2,115200
setenv bootargs root=/dev/nfs nfsroot=192.168.1.110:/source/rootfs rw ip=192.168.1.150:192.168.1.110:192.168.1.1:255.255.255.0::eth0:off init=/linuxrc console=ttySAC2,115200
make uImage
make dtbs
cp arch/arm/boot/uImage /tftpboot/uImage_3.14.29
cp arch/arm/boot/dts/exynos4412-fs4412.dtb /tftpboot/
setenv bootargs root=/dev/nfs nfsroot=192.168.1.110:/source/rootfs rw ip=192.168.1.120:192.168.1.110:192.168.1.1:255.255.255.0::eth0:off init=/linuxrc console=ttySAC2,115200
setenv bootargs root=/dev/nfs nfsroot=192.168.0.110:/source/rootfs rw ip=192.168.0.120:192.168.0.110:192.168.0.1:255.255.255.0::eth0:off init=/linuxrc console=ttySAC2,115200
printk("--%s-----%d-----\n",__FUNCTION__,__LINE__);
cp arch/arm/boot/zImage /tftpboot/zImage
tftp 41000000 zImage
movi write kernel 41000000
从flash上启动根文件系统,再用命令挂接NFS
ifconfig eth0 192.168.0.130
mount -t nfs -o nolock,vers=2 192.168.0.110:/source/rootfs
tftp -gr madplay 192.168.1.110
setenv bootcmd tftp 41000000 uImage\;tftp 42000000 exynos4412-fs4412.dtb\;bootm 41000000 - 42000000
setenv bootargs root=/dev/nfs nfsroot=192.168.1.110:/source/rootfs rw