• «
  • 1
  • 2
  • »
  • Pages: 1/2     Go
主题 : nfs n了一天还是整不出 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 10269
精华: 0
发帖: 22
金钱: 110 两
威望: 22 点
贡献值: 0 点
综合积分: 44 分
注册时间: 2009-10-29
最后登录: 2017-09-13
楼主  发表于: 2009-12-15 12:23

 nfs n了一天还是整不出

我开始装的是虚拟机的fedora 11,然后又装了个真实的fedora 11

fedora 11 先是找不到ip设置,
好吧 我就用
ifconfig eth0 192.168.1.111 broadcast 192.168.1.111(这里有点怪,根据下面设的) netmask 255.255.255.0

是根据手册上的:
第一项(192.168.1.70)是目标板的临时IP(注意不要和局域网内其他IP 冲突);
第二项(192.168.1.111)是开发主机的IP;
第三项(192.168.1.111)是目标板上网关(GW)的设置;
第四项(255.255.255.0)是子网掩码;
第五项是开发主机的名字(一般无关紧要,可随便填写)

设置的。。。。。。


nfs的设置
我的nfs文件夹是  /root/a/root_qtopia
1.修改 /etc/exports 加上
/root/a/root_qtopia *(rw,sync,no_root_squash)
2.起动:#/etc/init.d/nfs start(没有什么异常)

参数是:
param set linux_cmd_line "console=ttySAC0 root=/dev/nfs nfsroot=192.168.1.111:/root/a/root_qtopia ip=192.168.1.70:192.168.1.111:192.168.1.111:255.255.255.0:sbc2440.arm9.net:eth0:off"

然后 boot

防火墙 关了。。。。
电脑的网卡 好像 一直 不通样的


以下 是串口 打印的:
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2440-nand s3c2440-nand: Tacls=3, 29ns Twrph0=7 69ns, Twrph1=3 29ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bi
t)
Scanning device for bad blocks
Bad eraseblock 505 at 0x000003f20000
Creating 4 MTD partitions on "NAND 128MiB 3,3V 8-bit":
0x000000000000-0x000000060000 : "supervivi"
0x000000060000-0x000000260000 : "Kernel"
0x000000260000-0x000040260000 : "root"
mtd: partition "root" extends beyond the end of device "NAND 128MiB 3,3V 8-bit"
-- size truncated to 0x7da0000
0x000000000000-0x000040000000 : "nand"
mtd: partition "nand" extends beyond the end of device "NAND 128MiB 3,3V 8-bit"
-- size truncated to 0x8000000
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: S3C24XX OHCI
usb usb1: Manufacturer: Linux 2.6.29.4-FriendlyARM ohci_hcd
usb usb1: SerialNumber: s3c24xx
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbserial
usbserial: USB Serial Driver core
USB Serial support registered for pl2303
usbcore: registered new interface driver pl2303
pl2303: Prolific PL2303 USB to serial adaptor driver
mice: PS/2 mouse device common for all mice
s3c2410 TouchScreen successfully loaded
input: s3c2410 TouchScreen as /devices/virtual/input/input0
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
s3c2410-rtc s3c2410-rtc: rtc disabled, re-enabling
s3c2410-rtc s3c2410-rtc: rtc core: registered s3c as rtc0
i2c /dev entries driver
s3c2440-i2c s3c2440-i2c: slave address 0x10
s3c2440-i2c s3c2440-i2c: bus frequency set to 98 KHz
s3c2440-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
mapped channel 0 to 0
s3c2440-sdi s3c2440-sdi: powered down.
s3c2440-sdi s3c2440-sdi: initialisation done.
s3c2440-sdi s3c2440-sdi: running at 0kHz (requested: 0kHz).
s3c2440-sdi s3c2440-sdi: running at 198kHz (requested: 197kHz).
s3c2440-sdi s3c2440-sdi: running at 198kHz (requested: 197kHz).
s3c2440-sdi s3c2440-sdi: running at 198kHz (requested: 197kHz).
s3c2440-sdi s3c2440-sdi: powered down.
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.18a.
No device for DAI UDA134X
No device for DAI s3c24xx-i2s
S3C24XX_UDA134X SoC Audio driver
UDA134X SoC Audio Codec
asoc: UDA134X <-> s3c24xx-i2s mapping ok
ALSA device list:
  #0: S3C24XX_UDA134X (UDA134X)
TCP cubic registered
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
lib80211: common routines for IEEE802.11 drivers
s3c2410-rtc s3c2410-rtc: setting system clock to 2009-12-15 12:10:50 UTC (126087
9050)
eth0: link down
IP-Config: Complete:
     device=eth0, addr=192.168.1.70, mask=255.255.255.0, gw=192.168.1.111,
     host=sbc2440, domain=, nis-domain=arm9.net,
     bootserver=192.168.1.111, rootserver=192.168.1.111, rootpath=
Looking up port of RPC 100003/2 on 192.168.1.111
eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
eth0: link down
eth0: link up, 10Mbps, full-duplex, lpa 0x4C61
rpcbind: server 192.168.1.111 not responding, timed out
Root-NFS: Unable to get nfsd port number from server, using default
Looking up port of RPC 100005/1 on 192.168.1.111
级别: 新手上路
UID: 10269
精华: 0
发帖: 22
金钱: 110 两
威望: 22 点
贡献值: 0 点
综合积分: 44 分
注册时间: 2009-10-29
最后登录: 2017-09-13
1楼  发表于: 2009-12-15 12:24
在 加点 打印信息:

eth0: link down
IP-Config: Complete:
     device=eth0, addr=192.168.1.70, mask=255.255.255.0, gw=192.168.1.111,
     host=sbc2440, domain=, nis-domain=arm9.net,
     bootserver=192.168.1.111, rootserver=192.168.1.111, rootpath=
Looking up port of RPC 100003/2 on 192.168.1.111
eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
eth0: link down
eth0: link up, 10Mbps, full-duplex, lpa 0x4C61
rpcbind: server 192.168.1.111 not responding, timed out
Root-NFS: Unable to get nfsd port number from server, using default
Looking up port of RPC 100005/1 on 192.168.1.111
rpcbind: server 192.168.1.111 not responding, timed out
Root-NFS: Unable to get mountd port number from server, using default
Root-NFS: Server returned error -5 while mounting /root/a/root_qtopia
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             384 mtdblock0 (driver?)
1f01            2048 mtdblock1 (driver?)
1f02          128640 mtdblock2 (driver?)
1f03          131072 mtdblock3 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
级别: 新手上路
UID: 10269
精华: 0
发帖: 22
金钱: 110 两
威望: 22 点
贡献值: 0 点
综合积分: 44 分
注册时间: 2009-10-29
最后登录: 2017-09-13
2楼  发表于: 2009-12-15 12:32
# mount -t nfs localhost: /opt/FriendlyARM/mini2440/root_qtopia /mnt/

我用这个的是  可以看见 mnt/与/root/a/root_qtopia 目录一样的
级别: 新手上路
UID: 10269
精华: 0
发帖: 22
金钱: 110 两
威望: 22 点
贡献值: 0 点
综合积分: 44 分
注册时间: 2009-10-29
最后登录: 2017-09-13
3楼  发表于: 2009-12-15 20:18
adsdd
这个阶段正是我事业的上升期,我怎么能走得开呢?
级别: 精灵王
UID: 3197
精华: 3
发帖: 770
金钱: 6995 两
威望: 5398 点
贡献值: 21 点
综合积分: 1600 分
注册时间: 2008-12-30
最后登录: 2010-12-31
4楼  发表于: 2009-12-15 20:25
开发主机的ip是什么?
级别: 新手上路
UID: 11916
精华: 0
发帖: 19
金钱: 95 两
威望: 19 点
贡献值: 0 点
综合积分: 38 分
注册时间: 2009-12-24
最后登录: 2010-03-26
5楼  发表于: 2009-12-25 17:11
我也是n的若干天了,还是不行,给你顶一个,希望有人回答。
级别: 侠客
UID: 38454
精华: 0
发帖: 54
金钱: 270 两
威望: 54 点
贡献值: 0 点
综合积分: 108 分
注册时间: 2011-02-25
最后登录: 2019-08-10
6楼  发表于: 2011-03-02 20:08
我也是这样子啊,有同感,不知道楼主解决了没有?!
级别: 新手上路
UID: 30090
精华: 0
发帖: 36
金钱: 180 两
威望: 36 点
贡献值: 0 点
综合积分: 72 分
注册时间: 2010-10-11
最后登录: 2014-04-13
7楼  发表于: 2011-05-25 15:31
楼主 好了没 我也遇到同样的问题了 求助啊
级别: 新手上路
UID: 33755
精华: 0
发帖: 13
金钱: 75 两
威望: 15 点
贡献值: 0 点
综合积分: 26 分
注册时间: 2010-12-06
最后登录: 2012-03-07
8楼  发表于: 2011-06-11 13:36
同样的问题,有人解决了吗?分享一下吧。谢谢啦
级别: 新手上路
UID: 49421
精华: 0
发帖: 5
金钱: 25 两
威望: 5 点
贡献值: 0 点
综合积分: 10 分
注册时间: 2011-06-11
最后登录: 2011-08-02
9楼  发表于: 2011-06-29 11:49
我用的是F9 一下就成功了。我主机ip:192.168.1.23  虚拟机ip:192.168.1.120 开发板ip:192.168.1.70  没有出现你这种情况。请问一下 :你的虚拟机是设置的桥连接吗?就是虚拟机的上网方式是桥接吗?千万别用NAT的方式。
  • «
  • 1
  • 2
  • »
  • Pages: 1/2     Go