0

我正在尝试在我的设备上加载嵌入式 linux。

内核命令行:

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- 这是什么意思,我在哪里可以知道这个错误?

4

1 回答 1

0

1.在我的 Fedora 18 上禁用防火墙 systemctl stop firewalld systemctl disable firewalld

2.禁用selinux vi /etc/selinux/config

-- 注释 SELINUX=enforcing -- 添加#SELINUX=disabled

重启你的linux。

于 2014-04-30T05:24:37.953 回答