我正在使用内核 3.10 的 Powerpc 主板上工作,在安装 rootfs 时遇到了问题。
出现如下问题
NET: Registered protocol family 17
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Sending DHCP requests .., OK
IP-Config: Got DHCP answer from 10.162.0.1, my address is 10.162.103.192
IP-Config: Complete:
device=eth0, hwaddr=00:10:ec:00:5c:5b, ipaddr=10.162.103.192, mask=255.255.0.0, gw=10.162.0.1
host=10.162.103.192, domain=mvista.com, nis-domain=(none)
bootserver=0.0.0.0, rootserver=10.162.103.21, rootpath=
nameserver0=10.162.0.5, nameserver1=10.0.0.5
VFS: Mounted root (nfs filesystem) on device 0:10.
devtmpfs: mounted
Freeing unused kernel memory: 144K (c0393000 - c03b7000)
nfs: server 10.162.103.21 not responding, still trying
nfs: server 10.162.103.21 not responding, still trying
nfs: server 10.162.103.21 OK
nfs: server 10.162.103.21 OK
nfs: server 10.162.103.21 not responding, still trying
nfs: server 10.162.103.21 OK
nfs: server 10.162.103.21 not responding, still trying
nfs: server 10.162.103.21 not responding, still trying
它在这里停止并且没有响应,给出 cmd 行参数
root=/dev/nfs nfsroot=<server ip>:<root path> rw ip=dhcp
并且没有在 /etc/dhcp/dhcpd.conf 中为目标设置/mac 地址提供任何参数。
我已根据 Ubuntu 文档完成了 NFS 服务器设置,并尝试在其他主机 PC 上进行相同的设置,但出现与上述相同的错误。我确认主机设置适用于 NFS 服务器。
答案1
该问题已得到解决,方法是将 MAC 控制器驱动程序从 100MBPS 更改为 10MBps,并将 fs/nfsroot.c 中的协议从 UDP 更改为 TCP,并将用于 NFS 启动的端口号更改为 UDP。
——问候 Satish.G