4378|3

72

帖子

0

TA的资源

纯净的硅(初级)

楼主
 

uCLinux 挂载NFS文件系统出错 [复制链接]

宿主机系统配置:VMWare虚拟机,安装FC8,
目标板:LPC2478  32MSDRAM

uboot通过TFTP从宿主机启动Linux,ROMfs文件系统:
启动信息如下:

**********************************************
*                LPC-2478-STK                *
*    www.olimex.com/dev/lpc-2478stk.html     *
**********************************************
..
..


U-Boot 1.3.2 (Jun  2 2010 - 22:29:26)

CPU:   LPC2478 (ARM7tdmi-s from NXP)
       running at 57.6 MHz (12 MHz crystal)
DRAM:  32 MB
Flash: 500 kB
*** Warning - bad CRC, using default environment

Video: Drawing the logo ...
Done.
In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
emac: link status = 100Mbps, full duplex
emac: MAC address =  0:de:ad:b0: 5: 2
NetOurIP=192.168.0.3
NetOurGatewayIP=192.168.0.1
NetOurSubnetMask=255.255.255.0
TFTP from server 192.168.0.4; our IP address is 192.168.0.3
Filename 'vmlinux.bin'.
Load address: 0xa0008000
Loading: #################################################################
         #################################################################
         #################################
done
Bytes transferred = 2384208 (246150 hex)
NetOurIP=192.168.0.3
NetOurGatewayIP=192.168.0.1
NetOurSubnetMask=255.255.255.0
TFTP from server 192.168.0.4; our IP address is 192.168.0.3
Filename 'romfs_5.img'.
Load address: 0xa0800000
Loading: ########################################
done
Bytes transferred = 586752 (8f400 hex)
## Starting application at 0xA0008000 ...

CPU: NXP-LPC2468 [24680000] revision 0 (ARMvundefined/unknown), cr=a024e160
Machine: Olimex LPC-2478-STK
Warning: bad configuration page, trying to continue
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: root=/dev/ram initrd=0xA0800000,4096K console=ttyS0,115200N8
PID hash table entries: 128 (order: 7, 512 bytes)
LPC22XX Clocking Fin=12000000Hz Fcco=288000000Hz M=11 N=0
Fcclk=57600000 PCLKSEL=55515555 11555455
Console: colour dummy device 80x30
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 32MB = 32MB total
Memory: 25928KB available (2132K code, 214K data, 104K init)
Mount-cache hash table entries: 512
net_namespace: 64 bytes
NET: Registered protocol family 16
lpc22xx_set_periph(P0.2,1,0) => already configured
lpc22xx_set_periph e002c000=00055550 e002c040=00000000
lpc22xx_set_periph(P0.3,1,0) => already configured
lpc22xx_set_periph e002c000=00055550 e002c040=00000000
lpc22xx_set_periph(P3.16,3,0) => already configured
lpc22xx_set_periph e002c01c=30003fff e002c05c=00000000
lpc22xx_set_periph(P3.17,3,0) => already configured
lpc22xx_set_periph e002c01c=30003fff e002c05c=00000000
lpc22xx_set_periph(P3.18,3,0) => already configured
lpc22xx_set_periph e002c01c=30003fff e002c05c=00000000
lpc22xx_set_periph(P3.19,3,0) => already configured
lpc22xx_set_periph e002c01c=30003fff e002c05c=00000000
lpc22xx_set_periph(P3.20,3,0) => already configured
lpc22xx_set_periph e002c01c=30003fff e002c05c=00000000
lpc22xx_set_periph(P3.21,3,0) => already configured
lpc22xx_set_periph e002c01c=30003fff e002c05c=00000000
lpc22xx_set_periph(P3.22,3,0) => already configured
lpc22xx_set_periph e002c01c=30003fff e002c05c=00000000
lpc22xx_set_periph(P3.30,3,0) => already configured
lpc22xx_set_periph e002c01c=30003fff e002c05c=00000000
lpc22xx_set_periph(P1.2,2,0) => 00000020
lpc22xx_set_periph e002c008=50150125 e002c048=00000000
lpc22xx_set_periph(P1.3,2,0) => 00000080
lpc22xx_set_periph e002c008=501501a5 e002c048=00000000
lpc22xx_set_periph(P0.22,2,0) => 00002000
lpc22xx_set_periph e002c004=00002000 e002c044=00000000
lpc22xx_set_periph(P1.6,2,0) => 00002000
lpc22xx_set_periph e002c008=501521a5 e002c048=00000000
lpc22xx_set_periph(P1.7,2,0) => 00008000
lpc22xx_set_periph e002c008=5015a1a5 e002c048=00000000
lpc22xx_set_periph(P1.11,2,0) => 00800000
lpc22xx_set_periph e002c008=5095a1a5 e002c048=00000000
lpc22xx_set_periph(P1.12,2,0) => 02000000
lpc22xx_set_periph e002c008=5295a1a5 e002c048=00000000
lpc22xx_set_periph(P1.5,2,0) => 00000800
lpc22xx_set_periph e002c008=5295a9a5 e002c048=00000000
lpc22xx_set_periph(P1.0,1,0) => already configured
lpc22xx_set_periph e002c008=5295a9a5 e002c048=00000000
lpc22xx_set_periph(P1.1,1,0) => already configured
lpc22xx_set_periph e002c008=5295a9a5 e002c048=00000000
lpc22xx_set_periph(P1.4,1,0) => already configured
lpc22xx_set_periph e002c008=5295a9a5 e002c048=00000000
lpc22xx_set_periph(P1.8,1,0) => already configured
lpc22xx_set_periph e002c008=5295a9a5 e002c048=00000000
lpc22xx_set_periph(P1.9,1,0) => already configured
lpc22xx_set_periph e002c008=5295a9a5 e002c048=00000000
lpc22xx_set_periph(P1.10,1,0) => already configured
lpc22xx_set_periph e002c008=5295a9a5 e002c048=00000000
lpc22xx_set_periph(P1.14,1,0) => already configured
lpc22xx_set_periph e002c008=5295a9a5 e002c048=00000000
lpc22xx_set_periph(P1.15,1,0) => already configured
lpc22xx_set_periph e002c008=5295a9a5 e002c048=00000000
lpc22xx_set_periph(P1.16,1,0) => already configured
lpc22xx_set_periph e002c00c=00000005 e002c04c=00000000
lpc22xx_set_periph(P1.17,1,0) => already configured
lpc22xx_set_periph e002c00c=00000005 e002c04c=00000000
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
checking if image is initramfs...it isn't (bad gzip magic numbers); looks like an initrd
Freeing initrd memory: 4096K
No NAND device found!!!
NetWinder Floating Point Emulator V0.97 (double precision)
JFFS2 version 2.2. (NAND) ? 2001-2006 Red Hat, Inc.
fuse init (API version 7.9)
io scheduler noop registered (default)
lpc2478fb_alloc_videomem - enter
   fb_log_addres = 0xa1580000
   fb_phys_address = 0xa1580000
   fb_size = 155648
lpc2478fb_alloc_videomem - exit
fb0: lpc2478 framebuffer initialized
   0xffe08100 = 0x80680
   lpc2478_fbmem:
   0xe01fc1b8 = 0x8
   0xffe10000 = 0x307034c
   0xffe10004 = 0x10200ef
   0xffe10008 = 0x53f3800
   0xffe1000c = 0x0
   0xffe10010 = 0xa1580000
   0xffe10014 = 0xa1580000
   0xffe10018 = 0x82d
   0xffe1001c = 0x0
   0xffe10020 = 0xc
   0xffe10024 = 0x0
   0xffe10028 = 0x0
   0xffe1002c = 0xa159e8f8
   0xffe10030 = 0xa157fff8
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xe000c000 (irq = 6) is a 16550A
console [ttyS0] enabled
serial8250.0: ttyS1 at MMIO 0xe0010000 (irq = 7) is a 16550A
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: module loaded
lpc22xx_eth_probe
block2mtd: version $Revision: 1.30 $
TCP cubic registered
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RAMDISK: romfs filesystem found at block 0
RAMDISK: Loading 573KiB [1 disk] into ram disk... done.
VFS: Mounted root (romfs filesystem) readonly.
init started:  BusyBox v1.00 (2010.06.01-15:23+0000) multi-call binary
init started:  BusyBox v1.00 (2010.06.01-15:23+0000) multi-call binary
Starting pid 18, console : '/etc/rc'
Welcome to
          ____ _  _
         /  __| ||_|                 
    _   _| |  | | _ ____  _   _  _  _
   | | | | |  | || |  _ \| | | |\ \/ /
   | |_| | |__| || | | | | |_| |/    \
   |  ___\____|_||_|_| |_|\____|\_/\_/
   | |
   |_|

For further information check:
http://www.uclinux.org/
http://www.olimex.com/dev/
Starting pid 30, console : '/bin/sh'


BusyBox v1.00 (2010.06.01-16:26+0000) Built-in shell (msh)
Enter 'help' for a list of built-in commands.

#
//网络配置
# ifconfig
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)


//设置IP及Mask
# ifconfig
lo        Link encap:Local Loopback  
          inet addr:192.168.0.3  Mask:255.255.255.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

# //mount宿主机NFS目录
# mount -t nfs 192.168.0.4:/opt/work/nfsroot /var/tmp
mount: RPC: Unable to receive; errno = Connection refused
mount: nfsmount failed: Bad file descriptor
mount: Mounting 192.168.0.4:/opt/work/nfsroot on /var/tmp failed: Invalid argument
#
mount不上宿主机的NFS目录,
宿主机上的NFS已经配置:都已经启动,没有portmap,FC8已经用rpcbind替代了吧
exports文件已经增加的目标板的ip,也通过图形界面设置!SELinux已经Disabled,防火墙已经信任NFS服务了
目标板ping 192.168.0.4也能ping的通
不知道哪里出了问题,
Thanks a lot!
joey

最新回复

eth驱动在检测PHY时,原来的KSZ801,我的是DP83848,ID不同,增加DP8348支持即可  详情 回复 发表于 2010-6-5 23:25
点赞 关注

回复
举报

86

帖子

0

TA的资源

一粒金砂(初级)

沙发
 
搞定。收工
 
 

回复

77

帖子

0

TA的资源

一粒金砂(初级)

板凳
 
?
?
 
 
 

回复

84

帖子

0

TA的资源

一粒金砂(初级)

4
 
eth驱动在检测PHY时,原来的KSZ801,我的是DP83848,ID不同,增加DP8348支持即可
 
 
 

回复
您需要登录后才可以回帖 登录 | 注册

随便看看
查找数据手册?

EEWorld Datasheet 技术支持

相关文章 更多>>
关闭
站长推荐上一条 1/10 下一条

 
EEWorld订阅号

 
EEWorld服务号

 
汽车开发圈

About Us 关于我们 客户服务 联系方式 器件索引 网站地图 最新更新 手机版

站点相关: 国产芯 安防电子 汽车电子 手机便携 工业控制 家用电子 医疗电子 测试测量 网络通信 物联网

北京市海淀区中关村大街18号B座15层1530室 电话:(010)82350740 邮编:100190

电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved
快速回复 返回顶部 返回列表