empty_linux 发表于 2006-6-3 17:25:31

NFS问题搞好久,请高手帮帮忙

我的环境是RH9+skyeye0.9.8+uclinux-20030522
在uclinux下输入:
mount -t nfs 10.0.0.1:/opt/target /tmp
出现列下错误:
RPC:sendmsg returned error 101
portmap:RPC call returned error 101
RPC: sendmsg returned error 101
postmap:RPC call returned error 101
lockd_up:makesock failed, error=-101
PRC: sendmsg returned error 101
portmap:RPC call returned error 101
mount: /etc/mtab:Read-only file system
以上是出错的信息
nfs,portmap,network服务都启动了,并且防火墙也关了.

hcllh 发表于 2006-6-4 06:47:02

加一个 -o nolock就没RPC的错误了!

empty_linux 发表于 2006-6-5 09:04:38

谢谢 hcllh 没有RPC错误了.
但是
mount -t nfs -o nolock 10.0.0.1:/opt/target /tmp
还有一个错误:
mount: /etc/mtab:Read-only file system

empty_linux 发表于 2006-6-5 17:28:14

:-(

大家没有遇到这样的问题吗? 这个问题解决不了就不能向下面走了.
帮帮忙! 顶一下!

empty_linux 发表于 2006-6-5 20:07:42

有没有可能是skyeye.conf的配置问题

ksh 发表于 2006-6-8 00:07:15

你的根文件系统是只读的,运行一下mount 命令,重新把根文件系统挂载成可读写的就可以了

empty_linux 发表于 2006-6-8 19:35:08

你的根文件系统是只读的,运行一下mount 命令,重新把根文件系统挂载成可读写的就可以了谢谢版主回帖
我没有搞明白:你是指主机上的(/)根目录下是只读还是指uclinux上的/根目录只读
然后怎样运行mount 加什么参数??
请版主帮我看回一下.

hcllh 发表于 2006-6-16 05:02:13

主要的问题是你的NFS能否使用?我用skyeye NFS的时候,也有这些告警,但是NFS 使用是正常的。如果有时间,你可以参考我以前用NFS boot 根文件的帖子。

give 发表于 2006-10-18 18:38:11

你的根文件系统是只读的,运行一下mount 命令,重新把根文件系统挂载成可读写的就可以了谢谢版主回帖
我没有搞明白:你是指主机上的(/)根目录下是只读还是指uclinux上的/根目录只读
然后怎样运行mount 加什么参数??
请版主帮我看回一下.
KSH版主能详细解答一下吗?我也遇到这样的问题。

ksh 发表于 2006-10-19 08:37:23

可以尝试着运行:
mount -n -o remount,rw /

give 发表于 2006-10-20 10:22:17

我试过了,还是不行呢.
我的配置:redhat9.0 skyeye0.9.8 uclinux20030305
在uclinux配置的时候选上了 nfs nfsv3 busybox 里也选上了mount的命令
主机的nfs测试过可以用的.
skyeye.conf如下
cpu: arm7tdmi
mach: at91
mem_bank: map=M, type=RW, addr=0x00000000, size=0x00004000
mem_bank: map=M, type=RW, addr=0x01000000, size=0x00400000
mem_bank: map=M, type=R, addr=0x01400000, size=0x00400000, file=images/romfs.img
mem_bank: map=M, type=RW, addr=0x02000000, size=0x00400000
mem_bank: map=M, type=RW, addr=0x02400000, size=0x00008000
mem_bank: map=M, type=RW, addr=0x04000000, size=0x00400000
mem_bank: map=I, type=RW, addr=0xf0000000, size=0x10000000
#set nic info state=on/off mac=xx:xx:xx:xx:xx:xx ethmod=tuntap/vnet hostip=dd.dd.dd.dd
net: state=on, mac=0:4:3:2:1:f, ethmod=tuntap, hostip=10.0.0.1


uclinux仿真输出
# skyeye linux-2.4.x/linux
***********************************************************************
****                                                               ****
****   SkyEyeSimulator Ver 0.9.8 withGDB/Insight 5.3 Interface ****
****                                                               ****
***********************************************************************
GNU gdb 5.3
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.Type "show warranty" for details.
This SkyEye was configured as "--host=i686-pc-linux-gnu --target=arm-elf"...
(SkyEye) tar s
cpu info: armv3, arm7tdmi, 41007700, fff8ff00, 0
mach info: name at91, mach_init addr 0x8161574
nic info: state=1, ethmod num=1, mac addr=0:4:3:2:1:f, hostip=10.0.0.1
nic_init_begin
tapif_init begin
tapif_init: fd 6
tapif_init: system("ifconfig tap0 inet 10.0.0.1");
tapif_init end
nic_init_end
SKYEYE: use arm7100 mmu ops
Loaded ROM   images/romfs.img
Connected to the simulator.
(SkyEye) lo
Loading section .init, size 0xb000 vma 0x1000000
Loading section .text, size 0xd0360 vma 0x100b000
Loading section .data, size 0x9154 vma 0x10dc000
Start address 0x1000000
Transfer rate: 7480736 bits in <1 sec.
(SkyEye) r
Starting program: /usr/src/uClinux-dist/linux-2.4.x/linux
Linux version 2.4.20-uc0 (root@localhost) (gcc version 2.95.3 20010315 (release)(ColdFire patches - 20010318 from http://fiddes.net/coldfire/)(uClinux XIP and shared lib patches from http://www.snapgear.com/)) #2 三 10月 18 13:59:30 CST 2006
Processor: Atmel AT91M40xxx revision 0
Architecture: EB01
On node 0 totalpages: 1024
zone(0): 0 pages.
zone(1): 1024 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/rom0
Calibrating delay loop... 12.97 BogoMIPS
Memory: 4MB = 4MB total
Memory: 2984KB available (832K code, 177K data, 44K init)
Dentry cache hash table entries: 512 (order: 0, 4096 bytes)
Inode cache hash table entries: 512 (order: 0, 4096 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 1024 (order: 0, 4096 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Atmel USART driver version 0.99
ttyS0 at 0xfffd0000 (irq = 2) is a builtin Atmel APB USART
ttyS1 at 0xfffcc000 (irq = 3) is a builtin Atmel APB USART
Blkmem copyright 1998,1999 D. Jeff Dionne
Blkmem copyright 1998 Kenneth Albanowski
Blkmem 1 disk images:
0: 1400000-14D13FF (RO)
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
SkyEye NE2k Ethernet driver version 0.2 (2003-04-27)
sene2k dev name: eth0: <6>NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 512 bind 512)
IP-Config: Incomplete network configuration information.
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Mounted root (romfs filesystem) readonly.
Shell invoked to run file: /etc/rc
Command: hostname GDB-ARMulator
Command: /bin/expand /etc/ramfs.img /dev/ram0
Command: mount -t proc proc /proc
mount: /etc/mtab: Read-only file system
Command: mount -t ext2 /dev/ram0 /var
mount: /etc/mtab: Read-only file system
Command: mkdir /var/tmp
Command: mkdir /var/log
Command: mkdir /var/run
Command: mkdir /var/lock
Command: cat /etc/motd
Welcome to
          ____ __
         /__| ||_|
    _   _| || | _ _____   ___
   | | | | || || |_ \| | | |\ \/ /
   | |_| | |__| || | | | | |_| |/    \
   |___\____|_||_|_| |_|\____|\_/\_/
   | |
   |_|

GDB/ARMulator support by <[email protected]>
For further information check:
http://www.uclinux.org/

Command: /bin/ifconfig eth0 up 10.0.0.2
Execution Finished, Exiting

Sash command shell (version 1.1.1)
/> ls
bin
dev
etc
home
lib
mnt
proc
sbin
tmp
usr
var
/> mount -t nfs 10.0.0.1:/tmp/nfs /proc -o nolock
mount: /etc/mtab: No such file or directory
mount: /etc/mtab: Read-only file system
/> mount -n -o remount,rw /
mount:
Cannot read /etc/fstab: No such file or directory
pid 16: failed 256
/> ls -l /etc
-rw-r--r--1 0      0            44Jan1 00:00 inetd.conf
-rw-r--r--1 0      0            46Jan1 00:00 inittab
-rw-r--r--1 0      0             343Jan1 00:00 motd
-rw-r--r--1 0      0             117Jan1 00:00 passwd
-rw-r--r--1 0      0            2874Jan1 00:00 ramfs.img
-rw-r--r--1 0      0             221Jan1 00:00 rc
-rw-r--r--1 0      0            8205Jan1 00:00 services
-rw-r--r--1 0      0            61Jan1 00:00 version
/> sim_info called

怎么让uclinux启动时的文件系统就是可读写的呢?是在skyeye可以配置的还是要在uclinux里面配置的呢?
是不是一定要用nfs做跟文件系统skyeye才能mount呢?
页: [1]
查看完整版本: NFS问题搞好久,请高手帮帮忙