天嵌 ARM开发社区

 找回密码
 注册
查看: 4256|回复: 9

TQ3358 NFS root问题

[复制链接]
xinsh 发表于 2013-9-16 10:19:37 | 显示全部楼层 |阅读模式
我的TQ3358开发板,能够手动添加NFS(用mount命令)。但是不能用nfs root(会报错然后就死机了),是什么原因啊?
我是严格按照手册操作的,是用SD卡启动。


 楼主| xinsh 发表于 2013-9-23 08:51:01 | 显示全部楼层
问题解决了。
出在boot启动参数设置里面,复制/opt/EmbedSky/TQ3358/rootfs_TQ3358_linux_nfs就可以了。
回复 1 0

使用道具 举报

TQ-lkp 发表于 2013-9-16 10:25:47 | 显示全部楼层
亲,你至少帖点出错信息嘛,你这么说谁能知道是啥问题??????????
回复

使用道具 举报

 楼主| xinsh 发表于 2013-9-16 20:22:21 | 显示全部楼层
TQ-lkp 发表于 2013-9-16 10:25
亲,你至少帖点出错信息嘛,你这么说谁能知道是啥问题??????????


Enter your selection: r
resetting ...
Welcome to use TQ3358 Board!
boot from SD card...


##### EmbedSky BIOS for TQ3358 #####
This Board: SDRAM is 512MB; LCD display size is: 0X0
Hit any key to stop autoboot:  0

** Unable to read "images\EmbedSky.ini" from mmc 0:1 **
run command error!
can not find images\\EmbedSky.ini in sd card!

NAND read: device 0 offset 0x280000, size 0x300000
3145728 bytes read: OK
setting bootargs ...
bootargs=console=ttyO0,115200n8 androidboot.console=ttySAC0 root=/dev/nfs nfsroot=192.168.1.110:/opt/EmbedSky/TQ3358/rootfs_TQ3358_linux_nfs rootwait=1 init=/init ip=192.168.1.6:192.168.1.110:192.168.1.6:255.255.255.0:www.embedsky.net:eth0:off lcd=VGA1280X800 uart1_d_can=uart1 uart2_i2c2=uart2
Booting from nand ...

NAND read: device 0 offset 0x580000, size 0x500000
Skipping bad block 0x009c0000
5242880 bytes read: OK
## Booting kernel from Legacy Image at 80007fc0 ...
   Image Name:   Linux-3.2.0-EmbedSky
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4171408 Bytes = 4 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   XIP Kernel Image ... OK
OK

回复

使用道具 举报

 楼主| xinsh 发表于 2013-9-16 20:24:39 | 显示全部楼层
xinsh 发表于 2013-9-16 20:22
Enter your selection: r
resetting ...
Welcome to use TQ3358 Board!

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 3.2.0-EmbedSky (root@luohl-virtual-machine) (gcc version 4.4.6 (for TQ210 EmbedSky Tech) ) #2 Tue Apr 30 13:49:49 CST 2013
CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: tq3358
Memory policy: ECC disabled, Data cache writeback
AM335X ES1.0 (sgx neon )
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
Kernel command line: console=ttyO0,115200n8 androidboot.console=ttySAC0 root=/dev/nfs nfsroot=192.168.1.110:/opt/EmbedSky/TQ3358/rootfs_TQ3358_linux_nfs rootwait=1 init=/init ip=192.168.1.6:192.168.1.110:192.168.1.6:255.255.255.0:www.embedsky.net:eth0:off lcd=VGA1280X800 uart1_d_can=uart1 uart2_i2c2=uart2
user VGA1280X800 lcd.
uart1_d_can, user select uart1.
uart2_i2c2, user select uart2.
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 512MB = 512MB total
Memory: 509964k/509964k available, 14324k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
    lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .text : 0xc0008000 - 0xc07b1000   (7844 kB)
      .init : 0xc07b1000 - 0xc07ef000   ( 248 kB)
      .data : 0xc07f0000 - 0xc084ab60   ( 363 kB)
       .bss : 0xc084ab84 - 0xc098eb88   (1297 kB)
回复

使用道具 举报

 楼主| xinsh 发表于 2013-9-16 20:28:38 | 显示全部楼层
xinsh 发表于 2013-9-16 20:24
Starting kernel ...

Uncompressing Linux... done, booting the kernel.

中间一部分无关的打印内容我没贴出来。下面是最后的打印,然后就死机了。

Goodix-TS 2-005d: GT811 Verion:0x2010
Goodix-TS 2-005d: Create proc entry success!
Goodix-TS 2-005d: Start Capacitance_ts in interrupt mode,Driver Modify Date:2012-01-05
Failed to request GPIO:58, ERRNO:-16
gx801: probe of 2-0055 failed with error -16
omap_rtc omap_rtc: setting system clock to 2012-09-12 18:01:47 UTC (1347472907)

CPSW phy found : id is : 0x7c0f1
PHY 0:01 not found
ADDRCONF(NETDEV_UP): eth0: link is not ready
PHY: 0:00 - Link is Up - 100/Full
ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
IP-Config: Complete:
     device=eth0, addr=192.168.1.6, mask=255.255.255.0, gw=192.168.1.6,
     host=www, domain=, nis-domain=embedsky.net,
     bootserver=192.168.1.110, rootserver=192.168.1.110, rootpath=
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; here are the available partitions:
1f00             128 mtdblock0  (driver?)
1f01             128 mtdblock1  (driver?)
1f02             128 mtdblock2  (driver?)
1f03             128 mtdblock3  (driver?)
1f04            1920 mtdblock4  (driver?)
1f05             128 mtdblock5  (driver?)
1f06            3072 mtdblock6  (driver?)
1f07            5120 mtdblock7  (driver?)
1f08          251392 mtdblock8  (driver?)
b300         1931264 mmcblk0  driver: mmcblk
  b301         1931199 mmcblk0p1 00000000-0000-0000-0000-000000000000mmcblk0p1
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
Backtrace:
[<c00181e0>] (dump_backtrace+0x0/0x10c) from [<c05aac44>] (dump_stack+0x18/0x1c)
r7:c06fb778 r6:00008000 r5:c084bad0 r4:c084bad0
[<c05aac2c>] (dump_stack+0x0/0x1c) from [<c05aacac>] (panic+0x64/0x198)
[<c05aac48>] (panic+0x0/0x198) from [<c07b1d8c>] (mount_block_root+0x174/0x228)
r3:00000000 r2:00000000 r1:df82df58 r0:c06fb828
[<c07b1c18>] (mount_block_root+0x0/0x228) from [<c07b1ef0>] (mount_root+0xb0/0xcc)
[<c07b1e40>] (mount_root+0x0/0xcc) from [<c07b2074>] (prepare_namespace+0x168/0x1c0)
r4:c084ac20
[<c07b1f0c>] (prepare_namespace+0x0/0x1c0) from [<c07b12f8>] (kernel_init+0xf0/0x124)
r5:c07edf1c r4:c084abc0
[<c07b1208>] (kernel_init+0x0/0x124) from [<c003f55c>] (do_exit+0x0/0x69c)
r5:c07b1208 r4:00000000
eth0: no IPv6 routers present
回复

使用道具 举报

TQ-ZQL 发表于 2013-9-17 11:06:14 | 显示全部楼层
直接在开发板上用mount 将/opt/EmbedSky/TQ3358/rootfs_TQ3358_linux_nfs 这个目录mount到板子上?
回复

使用道具 举报

 楼主| xinsh 发表于 2013-9-17 15:19:15 | 显示全部楼层
用mount命令是可以手动加NFS的。但是不能用NFS作为root文件系统!
回复

使用道具 举报

twlkengi 发表于 2014-3-17 23:32:51 | 显示全部楼层
xinsh 发表于 2013-9-23 08:51
问题解决了。
出在boot启动参数设置里面,复制/opt/EmbedSky/TQ3358/rootfs_TQ3358_linux_nfs就可以了。

果然可以,我在用的时候业出现这个问题,并且用楼主的方法搞定的。主要是之前在测试的时候改过nfs的boot参数。
回复

使用道具 举报

ap0405209 发表于 2015-9-30 15:21:15 | 显示全部楼层
记录 tq3358 nfs文件系统问题
回复

使用道具 举报

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

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2025-7-1 16:53 , Processed in 2.037329 second(s), 21 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表