dlmusjh 发表于 2012-7-27 17:07:59

nfs挂载网络文件系统问题

我用的是ok6410A板256Mnandflash的板子,都是按照光盘里OK6410-A开发板LINUX3.0.1用户手册操作,用的文件也都是光盘里带的,就是挂载不成功
U-Boot 1.1.6 (Feb4 2012 - 18:07:29) for SMDK6410


****************************************

**    u-boot 1.1.6                  **

**    Updated for OK6410TE6410 Board**

**    Version (2012-02-04)          **

**    OEM: Forlinx Embedded         **

**    Web: http://www.witech.com.cn   **

****************************************


CPU:   S3C6410 @532MHz

         Fclk = 532MHz, Hclk = 133MHz, Pclk = 66MHz, Serial = CLKUART (SYNC Mode)

Board:   SMDK6410

DRAM:    256 MB

Flash:   0 kB

NAND:    2048 MB

In:      serial

Out:   serial

Err:   serial

Hit any key to stop autoboot:0


NAND read: device 0 offset 0x100000, size 0x500000

5242880 bytes read: OK

Boot with zImage


Starting kernel ...


Uncompressing Linux... done, booting the kernel.
Linux version 3.0.1 (root@forlinx) (gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72) ) #348 Fri Feb 10 09:58:08 CST 2012
S3C24XX Clocks, Copyright 2004 Simtec Electronics
camera: no parent clock specified
S3C64XX: PLL settings, A=532000000, M=532000000, E=24000000
S3C64XX: HCLK2=266000000, HCLK=133000000, PCLK=66500000
mout_apll: source is fout_apll (1), rate is 532000000
mout_epll: source is epll (1), rate is 24000000
mout_mpll: source is mpll (1), rate is 532000000
mmc_bus: source is mout_epll (0), rate is 24000000
mmc_bus: source is mout_epll (0), rate is 24000000
mmc_bus: source is mout_epll (0), rate is 24000000
usb-bus-host: source is clk_48m (0), rate is 48000000
uclk1: source is dout_mpll (1), rate is 66500000
spi-bus: source is mout_epll (0), rate is 24000000
spi-bus: source is mout_epll (0), rate is 24000000
audio-bus: source is mout_epll (0), rate is 24000000
audio-bus: source is mout_epll (0), rate is 24000000
audio-bus: source is mout_epll (0), rate is 24000000
irda-bus: source is mout_epll (0), rate is 24000000
camera: no parent clock specified
Kernel command line: root=/dev/nfs nfsroot=172.18.123.110:/forlinx/root ip=172.18.123.123:172.18.123.110:172.18.123.1:255.255.255.0:witech.com.cn:eth1:off console=ttySAC0,115200
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 256MB = 256MB total
Memory: 197672k/197672k available, 64472k reserved, 0K highmem
Virtual kernel memory layout:
    vector: 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap: 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA   : 0xff600000 - 0xffe00000   (   8 MB)
    vmalloc : 0xd0800000 - 0xf4000000   ( 568 MB)
    lowmem: 0xc0000000 - 0xd0000000   ( 256 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (14 MB)
      .init : 0xc0008000 - 0xc0033000   ( 172 kB)
      .text : 0xc0033000 - 0xc06f570c   (6922 kB)
      .data : 0xc06f6000 - 0xc0736fc8   ( 260 kB)
       .bss : 0xc0736fec - 0xc07b4848   ( 503 kB)
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:246 nr_irqs:246 246
VIC @f4000000: id 0x00041192, vendor 0x41
VIC @f4010000: id 0x00041192, vendor 0x41
Console: colour dummy device 80x30
console enabled
Calibrating delay loop... 528.79 BogoMIPS (lpj=2643968)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
hw perfevents: enabled with v6 PMU driver, 3 counters available
devtmpfs: initialized
NET: Registered protocol family 16
hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 4 bytes.
s3c64xx_dma_init: Registering DMA channels
PL080: IRQ 73, at d0804000, channels 0..8
PL080: IRQ 74, at d0806000, channels 8..16
bio: create slab <bio-0> at 0
SCSI subsystem initialized
------------[ cut here ]------------
WARNING: at drivers/gpio/gpiolib.c:101 gpio_ensure_requested+0x58/0x124()
---[ end trace da227214a82491b7 ]---

中间省略

VFS: Unable to mount root fs via NFS, trying floppy.
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
[<c0039ca8>] (unwind_backtrace+0x0/0xfc) from [<c04a044c>] (dump_stack+0x18/0x1c)
[<c04a044c>] (dump_stack+0x18/0x1c) from [<c04a04b0>] (panic+0x60/0x1ac)
[<c04a04b0>] (panic+0x60/0x1ac) from [<c0008fd0>] (mount_block_root+0x204/0x25c)
[<c0008fd0>] (mount_block_root+0x204/0x25c) from [<c00090b0>] (mount_root+0x88/0xd0)
[<c00090b0>] (mount_root+0x88/0xd0) from [<c0009204>] (prepare_namespace+0x10c/0x1a8)
[<c0009204>] (prepare_namespace+0x10c/0x1a8) from [<c00084c4>] (kernel_init+0xf0/0x130)
[<c00084c4>] (kernel_init+0xf0/0x130) from [<c0034a34>] (kernel_thread_exit+0x0/0x8)
本人菜鸟,望大家多多赐教!

飞凌-chongzi 发表于 2012-7-28 09:06:10

能ping通吗?看一下网络能不能通,然后检查nfs服务启动没有,再查参数设置是不是正确

dlmusjh 发表于 2012-7-28 12:10:03

多谢!挂上了,是因为设置Uboot时,指令少了个空格

zdyanshi 发表于 2012-7-30 09:10:15

飞凌-chongzi 发表于 2012-7-30 13:06:16

能打开的,设置好串口就可以了

dlmusjh 发表于 2012-8-4 10:04:15

我挂载根文件系统到宿主机已经完成,但是挂载目录文件到宿主机总是不成
我先将/etc/exports的最后一行改成/ *(rw,sync,no_root_squash)了,然后重新启动了nfs执行语句和报错如下,之前看到有人问同样问题,版主让下个新版本的linux3.0.1,可我昨天刚下了新版本(5月版)还是不行
mount -t nfs -o nolock 172.18.123.110:/mnt/share /temp/shared
mount: cannot read /etc/fstab: No such file or directory
求版主赐教呀!

dlmusjh 发表于 2012-8-4 10:23:13

我到FileSystem-Yaffs2/etc下确实找不到fstab这个文件,从别处考个fstab到FileSystem-Yaffs2/etc也都不好用,不过错误变成了mount: can't find 172.1d in /etc/fstab

dlmusjh 发表于 2012-8-4 14:07:44

解决了,很奇怪,不知咋的就好了,啥也没改!哎!

飞凌-chongzi 发表于 2012-8-6 08:35:46

以前不成功可能与网络或者nfs服务设置有问题

dlmusjh 发表于 2012-10-5 20:56:30

今天重新挂载网络文件系统遇到同样问题,不过这次找到原因了,写出了给大家分享下,原因竟然是PC机上的Yaffs2文件系统有问题,换了个文件系统重新解压就好用了。
页: [1]
查看完整版本: nfs挂载网络文件系统问题