登录
注册
一键加入QQ群
友善之臂官方网站
首 页
联系我们
淘宝店铺
维基教程
固件下载
资料汇总
搜索帖子!
NanoPC 系列:
NanoPC-T2
NanoPC-T3 Plus
NanoPC-T4
NanoPC-T6
NanoPC-T6 Plus
NanoPi 系列:
NanoPi-NEO
NEO Core
NEO Air
M1 Plus
Duo2
NEO3
NEO4
M4B
M5
M6
M6V2
核心板:
Smart4418
Core4418
Smart6818
Core6818
SOM-RK3399V2
CM3588
CM3588 Plus
迷你R系列:
NanoPi-R1
R1S
R2S
R2S Plus
Zero2
R3S
R76S
R4S
R5S
R5C
R6C
R6S
热门版块:
友善之臂最新动态
开发板实战手册及教程
友善之臂官方客服中心
ROM发布区
NanoPi 玩家交流区
我的论坛我的贴
默认风格
用户中心首页
编辑个人资料
查看个人资料
好友列表
用户权限查看
积分管理
积分转换
特殊组购买
收藏夹
我的主题
基本统计信息
到访IP统计
管理团队
管理统计
在线统计
会员排行
版块排行
帖子排行
个人首页
我的收藏
好友近况
Linux技术交流区
难道redhat9.0虚拟机不能让NFS系统工作吗?
友友粉丝快线
开发板销售中心
嵌入式最新资讯
友善之臂最新动态
友善之臂官方客服中心
开发板实战手册及教程
应用方案和定制开发
NanoPi 交流与讨论
NanoPi 玩家交流区
ROM发布区
硬软DIY及开发
嵌入式交流与讨论
Android技术交流区
Linux技术交流区
U-boot技术交流区
WinCE技术交流区
Ubuntu技术交流区
裸机程序和微型OS
OpenWRT讨论区
开发板硬件讨论区
相关资料下载及使用技巧
站点服务
二手交易区
我的论坛我的贴
站务管理与公告
上一主题
下一主题
新 帖
主题 : 难道redhat9.0虚拟机不能让NFS系统工作吗?
复制链接
|
浏览器收藏
|
打印
undeadde
级别: 新手上路
作者资料
发送短消息
加为好友
UID:
759
精华:
0
发帖:
4
金钱:
30 两
威望:
22 点
综合积分:
8 分
注册时间:
2008-05-26
最后登录:
2014-06-07
楼主
发表于: 2009-04-09 21:12
只看楼主
|
小
中
大
难道redhat9.0虚拟机不能让NFS系统工作吗?
本着解决问题的心态,我将自己的问题详细写出来,还请大家多多指正!
在进入redhat9虚拟机建立的系统后,虚拟机和目标机可以互相Ping通,虚拟机可以回环挂载,可是用QQ2440目标板挂载NFS时候却不行了?
首先引用一下版主的一个帖子回复!
网友问题:
我没用装rethat ,怎么在window xp 下弄linux的开发环境?
qq2440回复:
“可以使用vmware虚拟机,但可能不能正常编译qtopia,也不能使用NFS(网络文件系统),其他的开发基本没有问题。”
但是问题是我想虚拟机下面网桥模式难道不行?把网卡做成混杂模式,然后经过实际操作确实在我这边无法成功挂载nfs系统,但是网上也有人用虚拟机吗,有没有网友用虚拟机成功挂载nfs系统呢?
按照版主kasim的回复好像是可行的,帖子在
http://www.aiothome.com/bbs/read.php?tid=608
,但是我按照那个试过了啊,怎么还是有问题呢?
我的系统是vmware workstation 5.5.3 build-34685 上安装的redhat9,按照友善的光盘上的设置,我的NFS服务端测试均正常,但是在设置完客户端,出现了几个问题,想了几天,终究是解决不了了。
另外,如果sunnydream已经解决了此问题,还请把您的建议告诉我好吗?
我做这个错误报告做了3次,基本上可以确定,portmap好像指定的端口不对,按照debian的protmap配置需要删除 /etc/default/protmap 中的 “-i 127.0.0.1”,但是redhat9中仅仅有/etc/default/adduser,没有找到该文件。这个portmap难道不要设置吗?
配置nfs服务我的顺序是这样:关闭防火墙及iptables等服务------protmap –--/etc/hosts.deny-----/etc/hosts.allow----/etc/exports----重启相关服务项
/etc/hosts.deny设置如下:
portmap:ALL
lcokd:ALL
mountd:ALL
rquotad:ALL
statd:ALL
/etc/hosts.allow设置如下:
portmap:192.168.1.230
lcokd: 192.168.1.230
mountd: 192.168.1.230
rquotad: 192.168.1.230
statd: 192.168.1.230
/etc/exports设置如下:
/opt/FriendlyARM/QQ2440/root_nfs 192.168.1.230(rw,sync,no_root_squash)
完了进入 /etc/init.d/目录下 重启 portmap,nfs 以及用 #exportfs –rv 重新载入 /etc/exprots
进入vivi下,设置如下:
param set linux_cmd_line "console=ttySAC0 root=/dev/nfs nfsroot=192.168.1.100:/opt/FriendlyARM/QQ2440/root_nfs ip=192.168.1.230:192.168.1.100:192.168.1.100:255.255.255.0:QQ2440V3.arm9.net:eth0:off"
说明:
192.168.1.230是临时发配给板子的IP
192.168.1.100是PC机的IP,请根据实际修改成你PC机的IP
第一次挂载nfs失败,错误信息用红色标识
Supervivi> param set linux_cmd_line "console=ttySAC0 root=/dev/nfs nfsroot=192.1
68.1.100:/opt/FriendlyARM/QQ2440/root_nfs ip=192.168.1.230:192.168.1.100:192.168
.1.100:255.255.255.0:QQ2440V3.arm9.net:eth0:off"
Change linux command line to "console=ttySAC0 root=/dev/nfs nfsroot=192.168.1.10
0:/opt/FriendlyARM/QQ2440/root_nfs ip=192.168.1.230:192.168.1.100:192.168.1.100:
255.255.255.0:QQ2440V3.arm9.net:eth0:off"
Supervivi> boot
Copy linux kernel from 0x00050000 to 0x30008000, size = 0x00200000 ... done
zImage magic = 0x016f2818
Setup linux parameters at 0x30000100
linux command line is: "console=ttySAC0 root=/dev/nfs nfsroot=192.168.1.100:/opt
/FriendlyARM/QQ2440/root_nfs ip=192.168.1.230:192.168.1.100:192.168.1.100:255.25
5.255.0:QQ2440V3.arm9.net:eth0:off"
MACH_TYPE = 782
NOW, Booting Linux......
Uncompressing Linux.............................................................
............................................ done, booting the kernel.
Linux version 2.6.13 (
root@localhost.loca
ldomain) (gcc version 3.4.1) #1 Tue Sep
18 06:09:37 CST 2007
CPU: ARM920Tid(wb) [41129200] revision 0 (ARMv4T)
Machine: SBC2440
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
BUG: mapping for 0x19000000 at 0xd0000000 overlaps vmalloc space
S3C2440: core 405.000 MHz, memory 101.250 MHz, peripheral 50.625 MHz
S3C2410 Clocks, (c) 2004 Simtec Electronics
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Built 1 zonelists
Kernel command line: console=ttySAC0 root=/dev/nfs nfsroot=192.168.1.100:/opt/Fr
iendlyARM/QQ2440/root_nfs ip=192.168.1.230:192.168.1.100:192.168.1.100:255.255.2
55.0:QQ2440V3.arm9.net:eth0:off
irq: clearing pending ext status 00000200
irq: clearing subpending status 00000007
irq: clearing subpending status 00000002
PID hash table entries: 512 (order: 9, 8192 bytes)
timer tcon=00000000, tcnt a4ca, tcfg 00000200,00000000, usec 00001e57
Console: colour dummy device 80x30
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 64MB = 64MB total
Memory: 61184KB available (2535K code, 1005K data, 144K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
USB Power Control, (c) 2004 Simtec Electronics
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C2440: Clock Support, UPLL 96.000 MHz
SCSI subsystem initialized
usbcore: registered new driver hub
S3C2410 DMA Driver, (c) 2003-2004 Simtec Electronics
DMA channel 0 at c4800000, irq 33
DMA channel 1 at c4800040, irq 34
DMA channel 2 at c4800080, irq 35
DMA channel 3 at c48000c0, irq 36
NetWinder Floating Point Emulator V0.97 (double precision)
devfs: 2004-01-31 Richard Gooch (
rgooch@atnf.csiro.au
)
devfs: boot_options: 0x1
yaffs Sep 18 2007 06:07:37 Installing.
Initializing Cryptographic API
Console: switching to colour frame buffer device 30x20
S3C24X0 fb0: s3c2410fb frame buffer device initialize done
GPIO L3 bus interface for S3C2440, installed
S3C2410 RTC, (c) 2004 Simtec Electronics
s3c2410-rtc s3c2410-rtc: rtc disabled, re-enabling
leds initialized
s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
nbd: registered device at major 43
Cirrus Logic CS8900A driver for Linux (Modified for SMDK2410)
eth0: CS8900A rev E at 0xd0000300 irq=53, no eeprom , addr: 08: 0:3E:26:0A:5B
Linux video capture interface: v1.00
ovcamchip: v2.27 for Linux 2.6 : OV camera chip I2C driver
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
ide_s3c2440_init
ide0: S3C2410 IDE interface
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2440-nand: mapped registers at c4880000
s3c2440-nand: timing: Tacls 9ns, Twrph0 39ns, Twrph1 9ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit
)
NAND_ECC_NONE selected by board driver. This is not recommended !!
Scanning device for bad blocks
Creating 3 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00030000 : "bootloader"
mtd: Giving out device 0 to bootloader
0x00050000-0x00250000 : "kernel"
mtd: Giving out device 1 to kernel
0x00250000-0x03ffc000 : "root"
mtd: Giving out device 2 to root
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
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.01:USB HID core driver
usbcore: registered new driver ov511
drivers/usb/media/ov511.c: v1.64 for Linux 2.5 : ov511 USB Camera Driver
usbcore: registered new driver gspca
drivers/usb/media/gspca/gspca_core.c: gspca driver 00.60.00 registered
mice: PS/2 mouse device common for all mice
ts: Compaq touchscreen protocol output
s3c2410 TouchScreen successfully loaded
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
mmci-s3c2410: probe: mapped sdi_base=c4d00000 irq=37 irq_cd=60 dma=0.
mmci-s3c2410: initialisation done.
SBC2440 SOUND driver register
SBC2440 SOUND driver probe!
SBC2440 UDA1341 audio driver initialized
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
MMC: sd_app_op_cond: at least one card is busy - trying again.
MMC: sd_app_op_cond: at least one card is busy - trying again.
MMC: sd_app_op_cond: at least one card is busy - trying again.
MMC: sd_app_op_cond: at least one card is busy - trying again.
MMC: sd_app_op_cond: at least one card is busy - trying again.
MMC: sd_app_op_cond: at least one card is busy - trying again.
MMC: sd_app_op_cond: at least one card is busy - trying again.
MMC: sd_app_op_cond: at least one card is busy - trying again.
MMC: sd_app_op_cond: at least one card is busy - trying again.
MMC: sd_app_op_cond: at least one card is busy - trying again.
MMC: sd_app_op_cond locked busy. Probably have broken SD-Card.
IP-Config: Complete:
device=eth0, addr=192.168.1.230, mask=255.255.255.0, gw=192.168.1.100,
host=QQ2440V3, domain=, nis-domain=arm9.net,
bootserver=192.168.1.100, rootserver=192.168.1.100, rootpath=
Looking up port of RPC 100003/2 on 192.168.1.100
Looking up port of RPC 100005/1 on 192.168.1.100
VFS: Mounted root (nfs filesystem).
mount_devfs_fs(): unable to mount devfs, err: -2
Freeing init memory: 144K
Warning: unable to open an initial console.
Kernel panic - not syncing: No init found. Try passing init= option to kernel.
VIVI version 0.1.4 (root@vmwarelinux) (gcc version 2.95.3 20010315 (release)) #0
.1.4 Mon Apr 28 09:55:54 CST 2008
MMU table base address = 0x33DFC000
Succeed memory mapping.
DIVN_UPLL0
MPLLVal [M:7fh,P:2h,S:1h]
CLKDIVN:dh
第二次挂载失败
。。。。。。。。。。。。。。。。。。。。。。。。。。。。
Looking up port of RPC 100003/2 on 192.168.1.100
portmap: server 192.168.1.100 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.100
portmap: server 192.168.1.100 not responding, timed out
Root-NFS: Unable to get mountd port number from server, using default
Root-NFS: Server returned error -5 while mounting /opt/FriendlyARM/QQ2440/root_n
fs
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
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
?
VIVI version 0.1.4 (root@vmwarelinux) (gcc version 2.95.3 20010315 (release))
#0.1.4 Mon Apr 28 09:55:54 CST 2008
MMU table base address = 0x33DFC000
Succeed memory mapping.
DIVN_UPLL0
MPLLVal [M:7fh,P:2h,S:1h]
CLKDIVN:dh
三次在tty1下挂载nfs
之前一直在图形界面下挂载,我因为重新启动了系统,所以这次在tty1下设置nfs服务,但是仍然是错误信息。
。。。。。。。。。。。。。。。。。。。。
Looking up port of RPC 100003/2 on 192.168.1.100
Looking up port of RPC 100005/1 on 192.168.1.100
VFS: Mounted root (nfs filesystem).
mount_devfs_fs(): unable to mount devfs, err: -2
Freeing init memory: 144K
Warning: unable to open an initial console.
Kernel panic - not syncing: No init found. Try passing init= option to kernel.
顶端
回复
引用
分享
kasim
*無鈳取玳
级别: 论坛版主
作者资料
发送短消息
加为好友
QQ联系
UID:
27
精华:
12
发帖:
5398
金钱:
40120 两
威望:
17929 点
综合积分:
11036 分
注册时间:
2008-01-16
最后登录:
2014-11-22
1楼
发表于: 2009-04-09 21:52
只看该作者
|
小
中
大
VFS: Mounted root (nfs filesystem).
mount_devfs_fs(): unable to mount devfs, err: -2
你不是已经挂载成功了吗? devfs的错误是因为nfs目录下没有dev目录, devfs不知道往哪里挂载。你在redhat 9上用mkdir -p /opt/FriendlyARM/QQ2440/root_nfs/dev就可以了
不要再冤枉无辜的vmware了...
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
顶端
回复
引用
分享
undeadde
级别: 新手上路
作者资料
发送短消息
加为好友
UID:
759
精华:
0
发帖:
4
金钱:
30 两
威望:
22 点
综合积分:
8 分
注册时间:
2008-05-26
最后登录:
2014-06-07
2楼
发表于: 2009-04-09 22:26
只看该作者
|
小
中
大
哦 谢谢你了!
我这边还有个文档,友善之臂新出来的nfs文档的介绍。刚问的他们的人员。下载地址在:
http://www.arm9.com.cn/downloads.htm
mizi2440有不少改进!
顶端
回复
引用
分享
lpz
级别: 新手上路
作者资料
发送短消息
加为好友
UID:
9843
精华:
0
发帖:
9
金钱:
90 两
威望:
45 点
综合积分:
18 分
注册时间:
2009-10-15
最后登录:
2009-10-21
3楼
发表于: 2009-10-15 22:19
只看该作者
|
小
中
大
回 1楼(kasim) 的帖子
Please append a correct "root=" boot option
我的一直出现这个错误,该怎么办呢?试过很多次了,其他的配置都没问题的
顶端
回复
引用
分享
kasim
*無鈳取玳
级别: 论坛版主
作者资料
发送短消息
加为好友
QQ联系
UID:
27
精华:
12
发帖:
5398
金钱:
40120 两
威望:
17929 点
综合积分:
11036 分
注册时间:
2008-01-16
最后登录:
2014-11-22
4楼
发表于: 2009-10-15 23:34
只看该作者
|
小
中
大
回 3楼(lpz) 的帖子
老实说我不知道,因为我不知道你的内核上哪儿找的NFS,也不知道你的NFS Server应该在什么地方
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
顶端
回复
引用
分享
lpz
级别: 新手上路
作者资料
发送短消息
加为好友
UID:
9843
精华:
0
发帖:
9
金钱:
90 两
威望:
45 点
综合积分:
18 分
注册时间:
2009-10-15
最后登录:
2009-10-21
5楼
发表于: 2009-10-20 11:20
只看该作者
|
小
中
大
回 4楼(kasim) 的帖子
我发了帖子,里面有完整的信息,麻烦帮忙再看一下
http://www.aiothome.com/bbs/read.php?tid=3370
顶端
回复
引用
分享
上一主题
下一主题
Linux技术交流区
http://121.40.142.80
访问内容超出本站范围,不能确定是否安全
继续访问
取消访问