OpenEdv-开源电子网
标题: u-boot网络文件系统不启用 [打印本页]
作者: woshi520laoxie 时间: 2019-12-27 17:33
标题: u-boot网络文件系统不启用
1、前提,
可以在进入根文件系统之后 再进行挂接网络文件系统
mount -t nfs -o nfsvers=3,vers=3 192.168.1.102:/home/sambaShare/rootfs/yehuo_rootfs /mnt
umount /mnt
2、uboot中设定参数无法直接进入网络文件系统,
还是进入正常的文件系统
setenv bootargs 'console=ttymxc0,115200 root=/dev/nfs rw nfsroot=192.168.1.102:/home/sambaShare/rootfs/yehuo_rootfs ip=192.168.1.56:192.168.1.102:192.168.1.1:255.255.255.0::eth0
ff'
root=/dev/nfs nfsroot=[<server-ip>:]<root-dir>[,<nfs-options>] ip=<client-ip>:<server-ip>:<gwip>:<netmask>:<hostname>:<device>:<autoconf>:<dns0-ip>:<dns1-ip>
server-ip 192.168.1.102
root-dir /home/sambaShare/rootfs/yehuo_rootfs
nfs-options rw
client-ip 192.168.1.55
gwip 192.168.1.1
netmask 255.255.255
hostname 不填
dns0-ip eth0
dns1-ip off
报异常:
作者: 仰望星空之云 时间: 2019-12-27 17:33
本帖最后由 仰望星空之云 于 2019-12-31 22:30 编辑
教程里是用ubuntu 16.04的来讲的,其它版本的是会有差异的。
下面的链接您也可以参考
https://www.openedv.com/forum.php ... etag=s_pctim_aiomsg
文末后面提到:
(, 下载次数: 0)