您好:
我采用TFTP boot kernel,并且采用NFS文件系统为根文件系统,参照DM8127网络摄像机的文档,我修改了boot参数,以下是uboot中的打印
TI8148_IPNC#pri
bootdelay=2
baudrate=115200
verify=yes
ramdisk_file=ramdisk.gz
loadaddr=0x81000000
script_addr=0x80900000
loadbootscript=fatload mmc 0 ${script_addr} boot.scr
bootscript= echo Running bootscript from MMC/SD to set the ENV…; source ${script_addr}
ethaddr=84:7e:40:6f:d1:12
ethact=cpsw
filesize=23B038
fileaddr=81000000
bootfile=uImage
gatewayip=10.175.3.1
netmask=255.255.255.0
ipaddr=10.175.3.35
serverip=10.175.3.187
dnsip=10.170.1.3
dnsip2=61.177.7.1
autoload=n
bootcmd=ipnc_ff_init 0;nboot 0x81000000 0 0x280000; bootm
stdin=serial
stdout=serial
stderr=serial
ver=U-Boot 2010.06-00023-g6d4b40c (Dec 21 2012 – 20:03:36) DM8127_IPNC_3.50.00
bootargs=console=ttyO0,115200n8 root=/dev/nfs rw mem=80Mvram=4M notifyk.vpssm3_sva=0xBFD00000nfsroot=10.175.3.196:/home/DM8127/DM8127/Source/ipnc_rdk/
target/filesys,nolock eth=00.0C.0C.02.39.3C ip=10.175.3.211cmemk.phys_start=0x85000000 cmemk.phys_end=0x89000000cmemk.allowOverlap=1 earlyprintk
Environment size: 948/8188 bytes
然后TFTP, bootm 0x81000000;系统显示文件系统错误,麻烦帮忙看一下,一下是相关的信息。
nf_conntrack version 0.5.0 (1103 buckets, 4412 max)
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP cubic registered
NET: Registered protocol family 17
Bridge firewalling registered
lib80211: common routines for IEEE802.11 drivers
Registering the dns_resolver key type
VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
omap_voltage_late_init: Voltage driver support not added
Power Management for TI81XX.
Detected MACID=0:c:c:2:39:3c
tps65911-rtc tps65911-rtc: setting system clock to 2012-11-09 21:44:02 UTC (1352497442)
CPSW phy found : id is : 0x4dd074
PHY 0:01 not found
IP-Config: Guessing netmask 255.0.0.0
IP-Config: Complete:
device=eth0, addr=10.175.3.211, mask=255.0.0.0, gw=255.255.255.255,
host=10.175.3.211, domain=, nis-domain=(none),
bootserver=255.255.255.255, rootserver=10.175.3.196, rootpath=
PHY: 0:00 – Link is Up – 100/Full
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 2304 mtdblock1 (driver?)
1f02 128 mtdblock2 (driver?)
1f03 4352 mtdblock3 (driver?)
1f04 107520 mtdblock4 (driver?)
1f05 12288 mtdblock5 (driver?)
1f06 54272 mtdblock6 (driver?)
1f07 81152 mtdblock7 (driver?)
Kernel panic – not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
Backtrace:[<c004bf70>] (dump_backtrace+0x0/0x110) from [<c038e1f0>] (dump_stack+0x18/0x1c)
r6:00008000 r5:c4778000 r4:c0501058 r3:60000013
[<c038e1d8>] (dump_stack+0x0/0x1c) from [<c038e250>] (panic+0x5c/0x178)
[<c038e1f4>] (panic+0x0/0x178) from [<c0009184>] (mount_block_root+0x1c4/0x204)
r3:00000000 r2:00000000 r1:c4425f58 r0:c0447925
r7:c0447989
[<c0008fc0>] (mount_block_root+0x0/0x204) from [<c0009358>] (mount_root+0xac/0xcc)
[<c00092ac>] (mount_root+0x0/0xcc) from [<c00094e4>] (prepare_namespace+0x16c/0x1cc)
r4:c0500524
[<c0009378>] (prepare_namespace+0x0/0x1cc) from [<c0008d70>] (kernel_init+0x114/0x154)
r5:c002d154 r4:c002d154
[<c0008c5c>] (kernel_init+0x0/0x154) from [<c00730d4>] (do_exit+0x0/0x5d0)
r5:c0008c5c r4:00000000
dmf1986:
有没有朋友能解决一下的啊
simon blak:
回复 dmf1986:
你好 你的这个问题解决了吗?我现在遇到同样的问题,想请教你一下
dmf1986:
回复 simon blak:
我后来是自己重新编译,烧写程序的
simon blak:
回复 dmf1986:
使用nfs作为根文件系统加载(不用ubifs),你修改rules.make了吗?
我猜测可能是某个地方没有设置对。。。
Christian Shen:
回复 simon blak:
如果bootargs错误,或ubuntu上的文件系统没有导出,或到处的路径不匹配,可能会看到上面的错误。
你的路径 用exportfs能看到不?
另外看你是用low power模式?
用ubifs的方式能正常启动不?
dmf1986:
回复 Christian Shen:
用的是low power模式
ubifs文件系统也是正常的
你用nfs文件系统时,将ip改成dhcp方式,看看可不可以用
我记得当时我这边好像就是这个原因
simon blak:
回复 dmf1986:
谢谢兄弟们支持,现在好了。
主要原因是dhcp时没有分配到ip地址,bootarg参数设置等。
enson Steven:
回复 simon blak:
你好,能不能介绍一下你的设置和参数,我也刚买了一个8127相机,其他都还行,就是ubifs文件系统很不稳定,而且nfs启动不了,mount也mount不上
非常感谢
simon blak:
回复 enson Steven:
虚拟机端的NFS服务确保设置对(路径、防火墙关闭等)。
如果是dhcp方式,确保相机分配地址成功。至于bootargs,手册里有
setenv bootargs 'console=ttyO0,115200n8 root=/dev/nfs rw mem=80M vram=4M notifyk.vpssm3_sva=0xBFD00000 nfsroot=192.168.1.151:/home/work/IPNC_RDK/Release_v3.00.00/Source/ipnc_rdk/target/filesys,nolock eth=00:0C:0C:A0:07:66 ip=192.168.1.168 cmemk.phys_start=0x85000000 cmemk.phys_end=0x89000000 cmemk.allowOverlap=1 earlyprintk';saveenv。
setenv bootcmd 'ipnc_ff_init 0;nboot 0x81000000 0 0x280000; bootm';saveenv
注意下划线部分就ok了。
Christian Shen:
回复 enson Steven:
请尽量更新你的RDK到最新版本,我们刚支持ubifs的第一个版本,确实ubifs有点不稳定,
后续的版本有解决。