天嵌 ARM开发社区

 找回密码
 注册
查看: 5264|回复: 8

210的nfs挂载不上啊?

[复制链接]
六斤太郎 发表于 2012-12-20 10:07:42 | 显示全部楼层 |阅读模式
这是打开开发板在uboot里的显示:
##### EmbedSky BIOS for SKY210/TQ210 #####
Kernel command line: noinitrd init=/init console=ttySAC0 root=/dev/nfs nfsroot=192.168.1.165:/forlinx/root1/rootf ip=192.168.1.185:192.168.1.165:192.168.1.185:255.255.255.0:www.embedsky.com:eth0:off lcd=X800Y480
user X800Y480 lcd.
IP-Config: Complete:
     device=eth0, addr=192.168.1.185, mask=255.255.255.0, gw=192.168.1.185,
     host=www, domain=, nis-domain=embedsky.com,
     bootserver=192.168.1.165, rootserver=192.168.1.165, rootpath=
DBUG_PORT must not use AFC!
Looking up port of RPC 100003/2 on 192.168.1.165
Looking up port of RPC 100005/1 on 192.168.1.165
VFS: Mounted root (nfs filesystem) on device 0:15.
Freeing init memory: 188K
Failed to execute /init.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
Backtrace:
[<c003c184>] (dump_backtrace+0x0/0x110) from [<c05eb078>] (dump_stack+0x18/0x1c)
r7:00000013 r6:c0069c00 r5:c0030ff0 r4:c0857e64
[<c05eb060>] (dump_stack+0x0/0x1c) from [<c05eb0f4>] (panic+0x78/0xf0)
[<c05eb07c>] (panic+0x0/0xf0) from [<c00375d8>] (init_post+0xb4/0xdc)
r3:c0864fb8 r2:00000000 r1:00000000 r0:c079e572
[<c0037524>] (init_post+0x0/0xdc) from [<c0008500>] (kernel_init+0x12c/0x170)
r5:c0030ff0 r4:c0898340
[<c00083d4>] (kernel_init+0x0/0x170) from [<c0069c00>] (do_exit+0x0/0x6f4)
Rebooting in 5 seconds..
开发板一直在重启

不知道为什么?
Enter your selection: 1

Enter the PC IP address:(xxx.xxx.xxx.xxx)

*192.168.1.165

Enter the SKY210/TQ210 IP address:(xxx.xxx.xxx.xxx)

*192.168.1.185

Enter the Mask IP address:(xxx.xxx.xxx.xxx)

*255.255.255.0

Enter NFS directory:(eg: /opt/EmbedSky/root_nfs)

*/forlinx/root1/rootf

bootargs: noinitrd init=/init console=ttySAC0 root=/dev/nfs nfsroot=192.168.1.165:/forlinx/root1/rootf ip=192.168.1.185:192.168.1.165:192.168.1.185:255.255.255.0:www.embedsky.com:eth0:off
这是我在设置nfs时的提示内容?
我感觉第二192.168.1.185应该是网关吧?我的网关是192.168.1.1。是不是这里出的问题啊?
TQ-ZQL 发表于 2012-12-20 10:13:31 | 显示全部楼层
本帖最后由 TQ-ZQL 于 2012-12-20 10:18 编辑

setenv gatewayip 192.168.xx.xx   //设置网关
saveenv //保存
重启一下用print看下对应的项有没有修改成功。
不过那边看上去应该是已经 挂上了,只是init执行不成功。建议先用我们的文件系统与内核试下,还有文件系统权限应该修改权限chmod 777 xxx -R这种方式。
 楼主| 六斤太郎 发表于 2012-12-20 10:19:52 | 显示全部楼层
我是不是得先让开发板用板子的文件系统正常启动啊
 楼主| 六斤太郎 发表于 2012-12-20 10:26:01 | 显示全部楼层
我应该在哪里输入这个setenv gatewayip 192.168.xx.xx   //设置网关?
是在dnw里[root@EmbedSky /]# 这个里输入吗?
TQ-ZQL 发表于 2012-12-20 10:28:44 | 显示全部楼层
不是,在uboot界面中按q,会进入到 控制台了,不用启动系统。
 楼主| 六斤太郎 发表于 2012-12-20 10:57:19 | 显示全部楼层
哦了!好使了!谢谢您!
fengc234 发表于 2014-4-29 19:25:26 | 显示全部楼层
我也遇到了NFS挂载不了,系统启动完就停在那了
fengc234 发表于 2014-4-29 19:26:08 | 显示全部楼层
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.9.250, mask=255.255.255.0, gw=192.168.9.250,
     host=www, domain=, nis-domain=embedsky.net,
     bootserver=192.168.9.93, rootserver=192.168.9.93, rootpath=
VFS: Mounted root (nfs filesystem) on device 0:14.
Freeing init memory: 248K
Failed to execute /init.  Attempting defaults...
can not open device: No such file or directory
Kernel panic - not syncing: Attempted to kill init!
Backtrace:
[<c00181e0>] (dump_backtrace+0x0/0x10c) from [<c05ada10>] (dump_stack+0x18/0x1c)
r7:df82bc00 r6:c08156c8 r5:c084d650 r4:c084d650
[<c05ad9f8>] (dump_stack+0x0/0x1c) from [<c05ada78>] (panic+0x64/0x198)
[<c05ada14>] (panic+0x0/0x198) from [<c003fb5c>] (do_exit+0x680/0x69c)
r3:df82bd24 r2:df82df28 r1:df82df64 r0:c070c51c
[<c003f4dc>] (do_exit+0x0/0x69c) from [<c003fbc8>] (do_group_exit+0x50/0xac)
[<c003fb78>] (do_group_exit+0x0/0xac) from [<c003fc3c>] (sys_exit_group+0x18/0x20)
r5:4031c774 r4:00000001
[<c003fc24>] (sys_exit_group+0x0/0x20) from [<c0014340>] (ret_fast_syscall+0x0/0x30)
eth0: no IPv6 routers present
fengc234 发表于 2014-4-29 19:27:06 | 显示全部楼层
我也遇到了NFS挂载不了,系统启动完就停在那了
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.9.250, mask=255.255.255.0, gw=192.168.9.250,
     host=www, domain=, nis-domain=embedsky.net,
     bootserver=192.168.9.93, rootserver=192.168.9.93, rootpath=
VFS: Mounted root (nfs filesystem) on device 0:14.
Freeing init memory: 248K
Failed to execute /init.  Attempting defaults...
can not open device: No such file or directory
Kernel panic - not syncing: Attempted to kill init!
Backtrace:
[<c00181e0>] (dump_backtrace+0x0/0x10c) from [<c05ada10>] (dump_stack+0x18/0x1c)
r7:df82bc00 r6:c08156c8 r5:c084d650 r4:c084d650
[<c05ad9f8>] (dump_stack+0x0/0x1c) from [<c05ada78>] (panic+0x64/0x198)
[<c05ada14>] (panic+0x0/0x198) from [<c003fb5c>] (do_exit+0x680/0x69c)
r3:df82bd24 r2:df82df28 r1:df82df64 r0:c070c51c
[<c003f4dc>] (do_exit+0x0/0x69c) from [<c003fbc8>] (do_group_exit+0x50/0xac)
[<c003fb78>] (do_group_exit+0x0/0xac) from [<c003fc3c>] (sys_exit_group+0x18/0x20)
r5:4031c774 r4:00000001
[<c003fc24>] (sys_exit_group+0x0/0x20) from [<c0014340>] (ret_fast_syscall+0x0/0x30)
eth0: no IPv6 routers present
但是我试了设置setenv gatewayip 192.168.9.1还是这种现象,请问这是为啥呢?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-5-17 16:54 , Processed in 1.062500 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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