UBIFS Corruption
Reginald Perrin
reggyperrin at yahoo.com
Wed Dec 7 12:19:43 EST 2011
>> 1. You enabled all UBIFS debugging messages which are too verbose and
>> not needed. Do not enable them because they "push out" the
> interesting
>> diagnostic messages from the kernel printk ring buffer.
>>
Artem,
I'm trying to get a good log, but seem to have issues getting the right configuration. Currently, I have these config settings:
CONFIG_MTD_UBI=y
CONFIG_MTD_UBI_WL_THRESHOLD=4096
CONFIG_MTD_UBI_BEB_RESERVE=1
CONFIG_UBIFS_FS=y
CONFIG_UBIFS_FS_XATTR=y
CONFIG_UBIFS_FS_LZO=y
CONFIG_UBIFS_FS_ZLIB=y
CONFIG_UBIFS_FS_DEBUG=y
CONFIG_UBIFS_FS_DEBUG_MSG_LVL=0
Booting shows:
[ 4.860000] UBI: background thread "ubi_bgt1d" started, PID 355
UBI device number 1, total 749 LEBs (96638976 bytes, 92.2 MiB), available 0 LEBs (0 bytes), LEB size 129024 bytes (126.0 KiB)
[ 5.004000] UBIFS: recovery needed
[ 5.580000] UBIFS error (pid 357): ubifs_recover_leb: garbage
[ 5.584000] UBIFS error (pid 357): ubifs_scanned_corruption: corruption at LEB 498:81920
[ 5.588000] UBIFS error (pid 357): ubifs_scanned_corruption: first 8192 bytes from LEB 498:81920
[ 5.616000] UBIFS error (pid 357): ubifs_recover_leb: LEB 498 scanning failed
When I do a dmesg, I get:
root:/> dmesg
fffffff ffffffff ffffffff ffffffff ffffffff ffffffff ................................
[ 5.608000] 00001460: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ................................
(snip)
[ 5.616000] 00001fe0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ................................
[ 5.616000] UBIFS error (pid 357): ubifs_recover_leb: LEB 498 scanning failed
[ 5.620000] UBIFS DBG (pid 359): ubifs_bg_thread: background thread "ubifs_bgt1_0" stops
This is pretty much the start of the log:
root:/> head -n 20 /var/log/messages
Jan 1 12:38:28 syslogd started: BusyBox v1.16.2
Jan 1 12:38:28 kernel: [ 5.608000] 00001480: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ................................
I can actually pull the image off the flash (using JTAG), it's about 20MB. When I've tried to mount this in the past on my PC, I get a mount error and can't get more information. We would be willing to share (under NDA), and contract assistance, if required.
Is this any better?
More information about the linux-mtd
mailing list