我正在尝试通过 USB 启动 nfs。到目前为止,我可以加载内核并使用以太网 USB 上的 tftp 使用 dtb 运行它。我路过
setenv bootargs console=ttyO0,115200n8 root=/dev/nfs rw rootfstype=ext4 rootwait fixrtc nfsroot=192.168.2.1:/home/mahathug/tftp/fs ip=192.168.2.2:192.168.2.1:192.168.2.1:255.255.255.0 nfsrootdebug earlyprintk
net eth0: initializing cpsw version 1.12 (0)
[ 4.045127] net eth0: phy found : id is : 0x7c0f1
[ 4.050156] libphy: PHY 4a101000.mdio:01 not found
[ 4.055215] net eth0: phy 4a101000.mdio:01 not found on slave 1
[ 4.068127] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 14.064781] Waiting up to 110 more seconds for network.
[ 24.064774] Waiting up to 100 more seconds for network.
[ 34.064773] Waiting up to 90 more seconds for network.
[ 44.064774] Waiting up to 80 more seconds for network.
[ 54.064774] Waiting up to 70 more seconds for network.
[ 64.064773] Waiting up to 60 more seconds for network.
[ 74.064773] Waiting up to 50 more seconds for network.
[ 84.064773] Waiting up to 40 more seconds for network.
[ 94.064773] Waiting up to 30 more seconds for network.
[ 104.064773] Waiting up to 20 more seconds for network.
[ 114.064773] Waiting up to 10 more seconds for network.
[ 124.064775] Waiting up to 0 more seconds for network.
[ 124.084994] IP-Config: Complete:
[ 124.088391] device=eth0, hwaddr=c8:df:84:d6:06:9c, ipaddr=192.168.2.2, mask=255.255.255.0, gw=192.168.2.1
[ 124.098930] host=192.168.2.2, domain=, nis-domain=(none)
[ 124.104988] bootserver=192.168.2.1, rootserver=192.168.2.1, rootpath=
这无论如何都行不通。
这不起作用,因为我没有连接以太网电缆,它会搜索 phy 以太网,但我尝试::usb0
在上面的命令中附加 ip 参数,它不会搜索以太网,但仍然出现错误
Root-NFS: nfsroot=/home/mahathug/tftp/fs
[ 16.081175] NFS: nfs mount
opts='vers=2,udp,rsize=4096,wsize=4096,nolock,addr=192.168.2.1'
[ 16.089933] NFS: parsing nfs mount option 'vers=2'
[ 16.095210] NFS: parsing nfs mount option 'udp'
[ 16.100145] NFS: parsing nfs mount option 'rsize=4096'
[ 16.105741] NFS: parsing nfs mount option 'wsize=4096'
[ 16.111314] NFS: parsing nfs mount option 'nolock'
[ 16.116537] NFS: parsing nfs mount option 'addr=192.168.2.1'
[ 16.122670] NFS: MNTPATH: '/home/mahathug/tftp/fs'
[ 16.127718] NFS: sending MNT request for 192.168.2.1:/home/mahathug/tftp/fs
[ 16.135554] NFS: failed to create MNT RPC client, status=-101
[ 16.141588] NFS: unable to mount server 192.168.2.1, error -101**
任何提示,或者消除这些的方法。
tftp 传输后,我在主机上没有收到任何日志 /var/log/syslog
我在内核配置中启用了 usb_eth 选项,以及 root_nfs 等所需的所有其他选项。
我不想单独使用以太网电缆。我想通过 USB 来完成
答案1
我知道这已经很旧了。我可能是错的,但我认为 USB 端口只有在操作系统加载后才能完全启动。即使它确实加载得更快,您的状态显示您仍然指向 eth0 作为引导设备。似乎这应该是 uEnv.txt 中的 usb0,但是当我尝试它时,我开始启动 USB... USB0:usb0 不可用。