TI中文支持网
TI专业的中文技术问题搜集分享网站

ubifs 失败,

从SD卡启动已经OK了,按照《ubifs文件系统制作与启动.pdf》制作了ubi.img,我的nand flash是 MT29F4G08ABA,

修改了uboot和kernel配置,还是不行。uboot里面 ubifsmount 提示错误 -19。

下面是参数:

U-Boot# echo $bootargs

console=ttyO0,115200n8 noinitrd ip=off mem=256M rootwait=1 rw ubi.mtd=7,2048 roo
tfstype=ubifs root=ubi0:rootfs init=/init

这里是启动信息:

[ 1.209991] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0)
[ 1.217473] Please append a correct "root=" boot option; here are the availab
le partitions:
[ 1.226313] Kernel panic – not syncing: VFS: Unable to mount root fs on unkno
wn-block(0,0)
[ 1.235027] Backtrace:
[ 1.237647] [<c0017dbc>] (dump_backtrace+0x0/0x10c) from [<c03bf610>] (dump_s
tack+0x18/0x1c)
[ 1.246547] r6:00008000 r5:c04922c0 r4:c05c1d48 r3:c058388c
[ 1.252535] [<c03bf5f8>] (dump_stack+0x0/0x1c) from [<c03bf84c>] (panic+0x64/
0x194)
[ 1.260625] [<c03bf7e8>] (panic+0x0/0x194) from [<c0526c88>] (mount_block_roo
t+0x174/0x228)
[ 1.269427] r3:00000000 r2:00000000 r1:cf01df68 r0:c04922c0
[ 1.275414] r7:c0552930
[ 1.278089] [<c0526b14>] (mount_block_root+0x0/0x228) from [<c0526fa4>] (prep
are_namespace+0x94/0x1c0)
[ 1.287916] [<c0526f10>] (prepare_namespace+0x0/0x1c0) from [<c05268fc>] (ker
nel_init+0xf4/0x120)
[ 1.297267] r5:c055eb80 r4:c055eb80
[ 1.301060] [<c0526808>] (kernel_init+0x0/0x120) from [<c0041d18>] (do_exit+0
x0/0x65c)
[ 1.309404] r5:c0526808 r4:00000000

然后就停止了,有看到有些类似的情况,但未看到处理的方法。

请问下一步该从哪方便查找问题:uboot?kernel?还是文件系统的制作过程?

启动信息中 here are the available partitions: 没有找到分区,是不是说分区有问题?

U-Boot# mtdparts

device nand0 <omap2-nand.0>, # parts = 8
#: name size offset mask_flags
0: SPL 0x00020000 0x00000000 0
1: SPL.backup1 0x00020000 0x00020000 0
2: SPL.backup2 0x00020000 0x00040000 0
3: SPL.backup3 0x00020000 0x00060000 0
4: u-boot 0x001e0000 0x00080000 0
5: u-boot-env 0x00020000 0x00260000 0
6: kernel 0x00500000 0x00280000 0
7: rootfs 0x1f880000 0x00780000 0

active partition: nand0,0 – (SPL) 0x00020000 @ 0x00000000

defaults:
mtdids : nand0=omap2-nand.0
mtdparts: mtdparts=omap2-nand.0:128k(SPL),128k(SPL.backup1),128k(SPL.backup2),12
8k(SPL.backup3),1920k(u-boot),128k(u-boot-env),5m(kernel),-(rootfs)

lin leo:

回复 Steven Liu1:

非常感谢 Steven Liu ,,就是kernel 配置nand flash出错,现在已经正常了。

另外,我想试一试TI提供的 tisdk-rootfs-image-am335x-evm.tar.gz,生成的img是350多M,有什么办法可以烧到nandflash里面?

我的DDR只有256M,然后usb口硬件做错了,没有网口,等于说现在只有uart和SD卡。

有什么方式可以把这300多M的image文件烧到nandflash里面?

lin leo:

回复 WTMEC-Fone Chang:

非常感谢!

赞(0)
未经允许不得转载:TI中文支持网 » ubifs 失败,
分享到: 更多 (0)