2012-10-29 32 views
0

我嘗試在我的設備上加載嵌入式Linux。Root-NFS:安裝rootfs時返回錯誤-5

內核命令行:

setenv bootcmd 'nfs 10.0.0.1:/home/master/rootfs3/boot/uImage;bootm;' 
setenv bootargs console=ttyTX0,57600n8 root=/dev/nfs rw nfsroot=10.0.0.1:/home/master/rootfs3 ip=dhcp init=/sbin/init 

系統加載失敗:

VFP support v0.3: implementor 41 architecture 1 part 10 variant 9 rev 1 
rtc-lpc32xx rtc-lpc32xx: setting system clock to 1970-01-06 00:47:10 UTC (434830) 
Sending DHCP requests .., OK 
IP-Config: Got DHCP answer from 0.0.0.0, my address is 10.0.0.10 
IP-Config: Complete: 
    device=eth0, addr=10.0.0.10, mask=255.255.255.0, gw=10.0.0.1, 
    host=10.0.0.10, domain=, nis-domain=(none), 
    bootserver=0.0.0.0, rootserver=10.0.0.1, rootpath= 
Waiting 4sec before mounting root device... 
Looking up port of RPC 100005/1 on 10.0.0.1 
Root-NFS: Unable to get mountd port number from server, using default 
Root-NFS: Server returned error -5 while mounting /home/master/rootfs2 
VFS: Unable to mount root fs via NFS, trying floppy. 
VFS: Cannot open root device "nfs" or unknown-block(2,0) 
Please append a correct "root=" boot option; here are the available partitions: 
1f00  768 mtdblock0 (driver?) 
1f01  2048 mtdblock1 (driver?) 
1f02  2048 mtdblock2 (driver?) 
1f03  15360 mtdblock3 (driver?) 
1f04  87040 mtdblock4 (driver?) 
1f05  23808 mtdblock5 (driver?) 
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0) 

Server returned error -5 - 這是什麼意思,我從哪裏可以知道這個錯誤?

+0

好的,我發現'error-5'的意思是'NFSERR_IO'(看'include/linux/nfs.h')。這也可能是一個磁盤錯誤(請看http://www.ietf.org/rfc/rfc1094.txt)。但是我怎樣才能解決這個錯誤? – ymn

回答

0

1.停用防火牆 在我的Fedora 18 systemctl停止firewalld systemctl禁用firewalld

2.停用SELinux的 VI的/ etc/SELinux的/配置

- 評SELINUX =執行 - - 添加#SELINUX =禁用

重新啓動您的linux。