335x挂载不上ubi一些问题的解决

板子是am335x 

下面是内核打印log 


省略、、、、、、、、、、、 

[    2.700991] UBI error: process_eb: bad image sequence number 1012547571 in PEB 1988, expected 299771203  
[    2.710912] slab error in kmem_cache_destroy(): cache `ubi_scan_leb_slab': Can't free all objects  
[    2.720259] Backtrace: 
[    2.722880] [<c0017978>] (dump_backtrace+0x0/0x110) from [<c03e5ea4>] (dump_stack+0x18/0x1c) 
[    2.731774]  r6:df24b000 r5:df2774c0 r4:df17a0c0 r3:c05a8748 
[    2.737779] [<c03e5e8c>] (dump_stack+0x0/0x1c) from [<c00a5660>] (kmem_cache_destroy+0xd0/0x104) 
[    2.747061] [<c00a5590>] (kmem_cache_destroy+0x0/0x104) from [<c026efa0>] (ubi_scan+0x1b4/0xa24) 
[    2.756301]  r4:000007c4 r3:df2ce000 
[    2.760102] [<c026edec>] (ubi_scan+0x0/0xa24) from [<c0266e94>] (ubi_attach_mtd_dev+0x4a8/0xa0c) 
[    2.769387] [<c02669ec>] (ubi_attach_mtd_dev+0x0/0xa0c) from [<c056ca60>] (ubi_init+0x204/0x2f0) 
[    2.778661] [<c056c85c>] (ubi_init+0x0/0x2f0) from [<c000876c>] (do_one_initcall+0x3c/0x180) 
[    2.787562] [<c0008730>] (do_one_initcall+0x0/0x180) from [<c054b884>] (kernel_init+0x9c/0x130) 
[    2.796748] [<c054b7e8>] (kernel_init+0x0/0x130) from [<c0040cb0>] (do_exit+0x0/0x67c) 
[    2.805075]  r5:c054b7e8 r4:00000000 
[    2.809660] UBI error: ubi_init: cannot attach mtd7 

[    1.760742] Detected MACID=7c:66:9d:1d:6e:69 
[    1.766540] cpsw: Detected MACID = 7c:66:9d:1d:6e:6b 
[    1.774353] rtc-ds1307 1-0068: setting system clock to 2015-07-24 10:05:08 UTC (1437732308) 
[    1.783691] List of all partitions: 
[    1.787445] 1f00             128 mtdblock0  (driver?) 
[    1.792785] 1f01             128 mtdblock1  (driver?) 
[    1.798126] 1f02             128 mtdblock2  (driver?) 
[    1.803436] 1f03             128 mtdblock3  (driver?) 
[    1.808776] 1f04            1920 mtdblock4  (driver?) 
[    1.814117] 1f05             128 mtdblock5  (driver?) 
[    1.819458] 1f06            5120 mtdblock6  (driver?) 
[    1.824768] 1f07          516608 mtdblock7  (driver?) 
[    1.830108] No filesystem could mount root, tried:  ubifs  
[    1.835784] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)  
[    1.844482] Backtrace: 

这是由于UBI error: process_eb: bad image sequence number 1012547571 in PEB 1988, expected 299771203 这个问题才挂载不上ubi的,这是因为在写入ubi文件系统之前擦除nand的空间不够大,擦除的大小要大于等于文件系统的大小加坏块的大小,此时可以把存放整个文件系统的nand空间全部擦除就可以。

你可能感兴趣的:(FileSystem,335X,ubi,process_eb)