网络启动

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


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值