http://blog.csdn.net/cgzhello1/article/details/7852033
http://welkinchen.pixnet.net/blog/post/5405974-u-boot-%E5%95%9F%E5%8B%95%E5%85%A7%E5%AE%B9%E5%8F%8A%E5%9F%BA%E7%A4%8E%E6%8C%87%E4%BB%A4%E4%BD%BF%E7%94%A8%E4%BB%8B%E7%B4%B9
1,
#setenforce 0
#/etc/init.d/iptables stop#service nfs restart
#/etc/init.d/xinetd restart
2,$pri打印当前的环境变量,并保存备份。
然后开始修改:
target$setenv ipaddr 192.168.0.63
target$setenv serverip 192.168.0.62
host$ifconfig eth0 192.168.0.62
3, 编辑/etc/exports文件,输入文件系统的路径,如:/Pro/dm3730-artilleryViewer/prefix 192.168.2.*(rw,sync,no_root_squash,no_all_squash)
4, 编辑dts中的chosen
/*****************************文件中:zynq-custom.dts文件*****************************/
chosen {
/*bootargs = "console=ttyPS0,115200";*/
/* boot from NFS */
bootargs = "console=ttyPS0,115200 ip=192.168.0.63::::::off' root=/dev/nfs nfsroot=192.168.0.62:/home/tirvideo/work/targetfs/ nolock rw rootwait";
/* boot from tf card */
/*bootargs = "console=ttyPS0,115200 root=/dev/mmcblk0p2 rootwait rw";*/
/* boot from spi flash */
/*bootargs = "console=ttyPS0,115200 root=/dev/mtdblock3 rootfstype=jffs2 rootwait rw"; */
};
编译dts,然后拷贝到主机的tftp_boot目录下。
5,target$setenv bootcmd tftpboot 0x8000 zImage;tftpboot 0x1000000 zynq-custom-nfs.dtb;bootz 0x8000
#set bootcmd tftp vmlinux.img 30007fc0\; bootm 30007fc0