主题 : 请教:tiny6410利用buildroot生成ubi根文件系统启动失败问题 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 73849
精华: 0
发帖: 4
金钱: 20 两
威望: 4 点
综合积分: 8 分
注册时间: 2012-07-15
最后登录: 2012-08-19
楼主  发表于: 2012-08-12 08:53

 请教:tiny6410利用buildroot生成ubi根文件系统启动失败问题

U-BOOT和内核代码均是使用tiny6410自带光盘里面的资源。板子flash是MLC2型 2GB

buildroot对文件系统的配置如下:

[*] ubifs root filesystem                                                                                       (0xfc000) UBI logical erase block size                                                                      (0x2000) UBI minimum I/O size                                                                               (128) Maximum LEB count                                                                                     ubifs runtime compression (lzo)  --->                                                                 Compression method (no compression)  --->                                                            [*]   Embed into an UBI image                                                                               (0x100000) UBI physical erase block size  (0)     UBI sub-page size 

下载生成的ubi文件到单板后,打印信息如下:

NAND device: Manufacturer ID: 0xec, Chip ID: 0xd5 (Samsung NAND 2GiB 3,3V 8-bit)
Creating 3 MTD partitions on "NAND 2GiB 3,3V 8-bit":
0x000000000000-0x000000400000 : "Bootloader"
0x000000400000-0x000000c00000 : "Kernel"
0x000000c00000-0x000080000000 : "File System"
UBI: attaching mtd2 to ubi0
UBI: physical eraseblock size:   1048576 bytes (1024 KiB)
UBI: logical eraseblock size:    1032192 bytes
UBI: smallest flash I/O unit:    8192
UBI: VID header offset:          8192 (aligned 8192)
UBI: data offset:                16384
UBI warning: process_eb: valid VID header but corrupted EC header at PEB 0
UBI warning: process_eb: valid VID header but corrupted EC header at PEB 1
UBI warning: process_eb: valid VID header but corrupted EC header at PEB 2
UBI error: check_corruption: PEB 13 contains corrupted VID header, and the data does not contain all 0xFF, this may be a non-UBI PEB or a severe VID header corruption which requires manual inspection
UBI error: check_what_we_have: 1 PEBs are corrupted and preserved
Corrupted PEBs are: 13
UBI: max. sequence number:       0
UBI: volume 0 ("rootfs") re-sized from 15 to 2006 LEBs
UBI: attached mtd2 to ubi0
UBI: MTD device name:            "File System"
UBI: MTD device size:            2036 MiB
UBI: number of good PEBs:        2031
UBI: number of bad PEBs:         5
UBI: number of corrupted PEBs:   1
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     1
UBI: available PEBs:             0
UBI: total number of reserved PEBs: 2030
UBI: number of PEBs reserved for bad PEB handling: 20
UBI: max/mean erase counter: 1/0
UBI: image sequence number:  1492634947
UBI: background thread "ubi_bgt0d" started, PID 634

这个问题想问下,大概是什么原因造成的呢?多谢