- 论坛徽章:
- 0
|
本帖最后由 tamujin 于 2011-08-19 14:11 编辑
想在开发板启动的时候加载nfs。
在linux主机编辑的/etc/exports 文件,添加了如下内容:
/home/<useracct>/workdir/filesys *(rw,no_root_squash,no_all_squash,sync)
linux主机我开启了portmap和nfs服务,也关闭了防火墙。在主机挂载设置的nfs目录:mount –t nfs 211.71.69.97:/home/useracct/workdir/filesys /mnt,然后在/mnt下可以看到挂载目录的内容。
启动开发板后在u-boot设置自动加载nfs文件系统,
U-Boot>setenv bootargs bootargs=men=64M console=ttyS0,115200 root=/dev/nfs rw nfsroot=211.71.69.97:/home/useracct/workdir/filesys ip=211.71.69.184:211.71.69.2:255.255.255.0
重启板子,然后依次加载u-boot、内核成功,然后无法加载上nfs文件系统:
把启动的最后几行贴上来:
ALSA device list:
#0: DaVinci DM6467 EVM (tlv320aic3x)
TCP cubic registered
NET: Registered protocol family 17
Clocks: disable unused uart1
Clocks: disable unused emac
Clocks: disable unused timer1
emac-mii: probed
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
eth0: attached PHY driver [ET1011C] (mii_bus:phy_addr=1:01, id=282f013)
Sending DHCP requests .
PHY: 1:01 - Link is Up - 100/Full
..... timed out!
IP-Config: Retrying forever (NFS root)...
eth0: attached PHY driver [ET1011C] (mii_bus:phy_addr=1:01, id=282f013)
Sending DHCP requests .
PHY: 1:01 - Link is Up - 100/Full
....
请教大侠怎么解决这个问题呢?
我在linux主机 #tail -f /var/log/messages
显示如下内容:
[root@localhost yx]# tail -f /var/log/messages
Aug 19 19:49:38 localhost kernel: e1000e: eth0 NIC Link is Up 100 Mbps Full Duplex, Flow Control: RX/TX
Aug 19 19:49:38 localhost kernel: e1000e 0000:00:19.0: eth0: 10/100 speed: disabling TSO
Aug 19 19:49:38 localhost NetworkManager[1247]: <info> (eth0): carrier now ON (device state 8 )
Aug 19 19:49:38 localhost lldpad[1198]: vdp_ifup:eth0 vdp data already exists !
Aug 19 21:55:56 localhost rpcbind: rpcbind terminating on signal. Restart with "rpcbind -w"
Aug 19 21:56:03 localhost rpc.mountd[3646]: Caught signal 15, un-registering and exiting.
Aug 19 21:56:03 localhost kernel: nfsd: last server has exited, flushing export cache
Aug 19 21:56:04 localhost kernel: NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
Aug 19 21:56:04 localhost kernel: NFSD: starting 90-second grace period
Aug 19 21:56:04 localhost rpc.mountd[5211]: Version 1.2.3 starting |
|