【已解决】NFS挂载出现 Unable to mount root fs via NFS, trying floppy

本帖最后由 百问网-杨老师 于 2018-11-20 21:07 编辑 内核版本linux-3.4.2,开发板ip地址为192.168.1.201 Ubuntu IP地址为192.168.1.108 TCP: cubic registered NET: Registered protocol family 17 drivers/rtc/hctosys.c: unable to open rtc device (rtc0) ALSA device list: No soundcards found. VFS: Unable to mount root fs via NFS, trying floppy. VFS: Cannot open root device "nfs" or unknown-block(2,0): error -6 Please append a correct "root=" boot option; here are the available partitions: 1f00 256 mtdblock0 (driver?) 1f01 128 mtdblock1 (driver?) 1f02 2048 mtdblock2 (driver?) 1f03 259712 mtdblock3 (driver?) Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0) 在u-boot能够ping通 SMDK2410 # ping 192.168.1.100 ERROR: resetting DM9000 -> not responding dm9000 i/o: 0x20000000, id: 0x90000a46 DM9000: running in 16 bit mode MAC: 00:0c:29:4d:e4:f4 could not establish link Using dm9000 device host 192.168.1.100 is alive 参数设置 set bootargs noinitrd root=/dev/nfs nfsroot=192.168.1.108:/home/hj/work/nfs_root/sys ip=192.168.1.201:192.168.1.108:192.168.1.1:255.255.255.0::eth0:off init=/linuxrc console=ttySAC0,115200 @ubuntu:~/work/system/linux-3.4.2$ showmount -e Export list for ubuntu: /home/hj/work/nfs_root/sys * 在本地能够挂载 @ubuntu:~$ sudo mount -t nfs 192.168.1.108:/home/hj/work/nfs_root/sys /home/hj/Downloads/ @ubuntu:~$ cd ~/Downloads/ @ubuntu:~/Downloads$ ls bin dev etc lib linuxrc proc sbin usr 有人知道这是什么原因吗
请先 登录 后评论

2 个回答

hj0787
应该是打了这个补丁linux-3.4.2_100ask.patch后,内核并没有网卡驱动,装上网卡驱动测试ok
请先 登录 后评论
z_zt

请问具体怎么装网卡呢?

查看make menuconfig,dm9000已经打*了,还有什么步骤要做?

请先 登录 后评论
  • 1 关注
  • 0 收藏,1637 浏览
  • hj0787 提出于 2018-11-20 20:05

相似问题