您尚未登录。

楼主 #1 2018-04-10 14:52:09

Cheney
会员
注册时间: 2018-04-04
已发帖子: 5
积分: 5

GM8135S挂载nfs网络文件系统不能成功

GM # boot
SF: Got idcodes
00000000: c2 20 17 c2    . ..
flash is 3byte mode
MXIC chip
SF: Detected MX25L6405D with page size 64 KiB, total 8 MiB
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   gm8136
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1520784 Bytes = 1.5 MiB
   Load Address: 02000000
   Entry Point:  02000040
   Verifying Checksum ... OK
   XIP Kernel Image ... OK
OK
: noinitrd mem=64M gmmem=34M console=ttyS0,115200 user_debug=31 init=/linuxrc root=/dev/nfs rw nfsroot=192.168.0.15:/home/ubuntu/rootfs ip=192.168.0.66:192.168.0.15:192.168.0.1:255.255.255.0:eth0:off

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0
Linux version 3.3.0 (ubuntu@system) (gcc version 4.4.0 20100318 (experimental) (Buildroot 2012.02) ) #3 PREEMPT Tue Apr 10 11:22:39 CST 2018
CPU: FA6 [66056263] revision 3 (ARMv5TE), cr=0000397f
CPU VIPT aliasing data cache, VIPT aliasing instruction cache
Machine: Grain-Media GM8136 series
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: noinitrd mem=64M gmmem=34M console=ttyS0,115200 user_debug=31 init=/linuxrc root=/dev/nfs rw nfsroot=192.168.0.15:/home/ubuntu/rootfs ip=192.168.0.66:192.168.0.15:192.168.0.1:255.255.255.0:eth0:off
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 60960k/60960k available, 4576k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    vmalloc : 0x84800000 - 0xff000000   (1960 MB)
    lowmem  : 0x80000000 - 0x84000000   (  64 MB)
    modules : 0x7f000000 - 0x80000000   (  16 MB)
      .text : 0x80008000 - 0x803987d4   (3650 kB)
      .init : 0x80399000 - 0x803b1000   (  96 kB)
      .data : 0x803b2000 - 0x803ce6c0   ( 114 kB)
       .bss : 0x803ce6e4 - 0x803df824   (  69 kB)
NR_IRQS:64
gm_jiffies_init, system HZ: 100, pClk: 100000000 
console [ttyS0] enabled
Calibrating delay loop... 709.42 BogoMIPS (lpj=3547136)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0x2b9780 - 0x2b97c8
devtmpfs: initialized
FMEM: 8704 pages(0x2200000 bytes) from bank0 are reserved for Frammap. 
FMEM: Logical memory ends up at 0x84000000, init_mm:0x80004000(0x4000), PAGE_OFFSET:0x80000000(0x0), 
FMEM: FA726 Test and Debug Register: 0x0 
NET: Registered protocol family 16
PMU: Mapped at 0xfe000000 
FMEM Idle Process Up. 
IC: GM8135, version: 0x1 
iotable: VA: 0xfe000000, PA: 0x90c00000, Length: 4096 
iotable: VA: 0xfe001000, PA: 0x90700000, Length: 4096 
iotable: VA: 0xfe002000, PA: 0x90800000, Length: 4096 
iotable: VA: 0xfe003000, PA: 0x90900000, Length: 4096 
iotable: VA: 0xfe004000, PA: 0x90d00000, Length: 4096 
iotable: VA: 0xfe005000, PA: 0x96000000, Length: 4096 
bio: create slab <bio-0> at 0
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switching to clocksource fttmr010:1
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Video Timer(timer3) Max 42000ms in 0xfa56ea00 HZ.
ftdmac020 ftdmac020.0: DMA engine driver: irq 1, mapped at 0x84804000
GM CPU frequency driver
CPUFREQ support for gm initialized
squashfs: version 4.0 (2009/01/31) Phillip Lougher
nfs4filelayout_init: NFSv4 File Layout Driver Registering...
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
msgmni has been set to 119
io scheduler noop registered
io scheduler deadline registered (default)
gpiochip_add: registered GPIOs 0 to 31 on device: ftgpio010.0
probe ftgpio010.0 OK, at 0x84856000
gpiochip_add: registered GPIOs 32 to 63 on device: ftgpio010.1
probe ftgpio010.1 OK, at 0x84858000
Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
serial8250: ttyS0 at I/O 0xfe001000 (irq = 21) is a 16550A
serial8250: ttyS1 at I/O 0xfe002000 (irq = 22) is a 16550A
serial8250: ttyS2 at I/O 0xfe003000 (irq = 25) is a 16550A
brd: module loaded
loop: module loaded
Not for SPI-NAND pin mux
SPI020 init
SPI020 uses AHB DMA mode
FTSPI020 enable DMA handshake 0x3
SPI020 gets DMA channel 0
ftspi020 ftspi020.0: Faraday FTSPI020 Controller at 0x92300000(0x8485a000) irq 54.
spi spi0.0: setup: bpw 8 mode 0
CLK div field set 1, clock = 30000000Hz
ERASE SECTOR 64K
SPI_FLASH spi0.0: MX25L64 (8192 Kbytes)
Creating 3 MTD partitions on "nor-flash":
0x000000010000-0x000000060000 : "UBOOT"
0x000000060000-0x000000400000 : "LINUX"
0x000000000000-0x000000800000 : "ALL"
Probe FTSPI020 SPI Controller at 0x92300000 (irq 54)
GMAC version 2.2, queue number tx = 128, rx = 128
ftgmac100-0-mdio: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
FOTG2XX Controller Initialization
Enter Device A
Drive Vbus because of ID pin shows Device A
fotg210 fotg210.0: FOTG2XX
fotg210 fotg210.0: new USB bus registered, assigned bus number 1
fotg210 fotg210.0: irq 9, io mem 0x93000000
fotg210 fotg210.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
i2c /dev entries driver
ftiic010 ftiic010.0: irq 18, mapped at 84860000
I2C hangs detection thread started!
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
mmc0: SDHCI controller on ftsdc021.0 [ftsdc021.0] using ADMA
sdhci-pltfm: SDHCI platform and OF driver helper
TCP cubic registered
NET: Registered protocol family 17
Registering the dns_resolver key type
VFS: Cannot open root device "nfs" or unknown-block(0,255)
Please append a correct "root=" boot option; here are the available partitions:
1f00             320 mtdblock0  (driver?)
1f01            3712 mtdblock1  (driver?)
1f02            8192 mtdblock2  (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,255)

请问这是什么原因导致的呢?

离线

楼主 #4 2018-04-10 15:22:24

Cheney
会员
注册时间: 2018-04-04
已发帖子: 5
积分: 5

Re: GM8135S挂载nfs网络文件系统不能成功

晕哥 说:

如果按上面步骤可以,说明你的网卡驱动,nfs文件系统,网卡硬件,有线网络,nfs服务器均正常。
如果不这么做,任何一个环节有问题都可能出现不能进入系统。

好!谢谢您!我将文件系统烧进入试试:D

离线

楼主 #6 2018-04-10 17:00:35

Cheney
会员
注册时间: 2018-04-04
已发帖子: 5
积分: 5

Re: GM8135S挂载nfs网络文件系统不能成功

晕哥 说:

期待好消息!

应该是我的文件系统制作的有些问题,进入Linux直接挂载出现

[root@HOSTNAME:]#mount -t nfs 192.168.0.15:/home/ubuntu/rootfs
mount: can't read '/etc/fstab': No such file or directory

离线

楼主 #9 2018-04-10 17:53:47

Cheney
会员
注册时间: 2018-04-04
已发帖子: 5
积分: 5

Re: GM8135S挂载nfs网络文件系统不能成功

晕哥 说:

还少一个参数,就是挂载到什么地方。
加上试一试

可以了!
使用

mount -t nfs 192.168.0.15:/home/ubuntu/rootfs /mnt

会出现卡死的情况
然后使用

mount -t nfs -o nolock 192.168.0.15:/home/ubuntu/rootfs /mnt

就OK:D=D

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn