UBIFS error CRC calculation on avr32 CPU

Eirik Aanonsen eaa at wprmedical.com
Wed Dec 3 02:55:45 EST 2008


> It looks like you indeed have corrupted data. Where the 'wpr_004.wfp'
> file comes from? You wrote it previously? Or you used mkfs.ubifs?
> 

The file is a binary file from my system. And the file has been checked for integrity before being copied over to the ubifs file system.
Wpr_004.wfp originates from a vfat partition, and was moved along with 10 other files, and then when I try to move the file back out from ubifs the read error occurs.

> > UBIFS warning (pid 500): mount_ubifs: 'LZO' compressor is set by
> superblock, but not compiled in 
> Hmm. Why you do not enable LZO compressor? How did you
> create your file-system?

The partition/filsystem is created inside my system.
ubimkvol /dev/ubi0 -N wpr_slave -s 250MiB
mount -t ubifs ubi0:wpr_slave /mnt/slave
( first done format -> ubiformat /dev/mtd5 -> modprobe ubi mtd=5 )

> Also, did you try to enable UBIFS and UBI extra self-checks? Please,
> try. Things will become very slow then, though, but this may give
> some useful information.

Here are the result after enabling these two options.
How do I do cleaning in ubifs?


Mounting results from the partition
------------------------------------

/mnt # mount -t ubifs ubi0:wpr_slave /mnt/slave/
UBIFS warning (pid 394): mount_ubifs: 'LZO' compressor is set by superblock, but not compiled in
UBIFS: background thread "ubifs_bgt0_1" started, PID 395
UBIFS: recovery needed
UBIFS error (pid 394): ubifs_check_node: bad CRC: calculated 0x88d15cef, read 0xde2fc2d5
UBIFS error (pid 394): ubifs_check_node: bad node at LEB 55:238016
Call trace:
 [<90010694>] dump_stack+0x18/0x20
 [<c0a65de8>] ubifs_check_node+0x210/0x23c [ubifs]
 [<c0a6bc14>] ubifs_scan_a_node+0x124/0x268 [ubifs]
 [<c0a6bf8a>] ubifs_scan+0x6e/0x220 [ubifs]
 [<c0a7a75e>] scan_check_cb+0x126/0x554 [ubifs]
 [<c0a79ade>] ubifs_lpt_scan_nolock+0x1be/0x3d4 [ubifs]
 [<c0a7abfe>] dbg_check_lprops+0x72/0x218 [ubifs]
 [<c0a6f678>] do_commit+0x8c/0x7e0 [ubifs]
 [<c0a6fe2e>] ubifs_run_commit+0x62/0x78 [ubifs]
 [<c0a7e13e>] ubifs_rcvry_gc_commit+0x412/0x45c [ubifs]
 [<c0a6318c>] ubifs_fill_super+0xaf0/0x1208 [ubifs]
 [<c0a63ac0>] ubifs_get_sb+0x21c/0x284 [ubifs]
 [<9004c640>] vfs_kern_mount+0x30/0x58
 [<9004c69c>] do_kern_mount+0x20/0x90
 [<90059e36>] do_new_mount+0x3a/0x58
 [<9005a446>] do_mount+0x122/0x14a
 [<9005a4ca>] sys_mount+0x5c/0x92
 [<9000c132>] syscall_return+0x0/0x12

UBIFS error (pid 394): ubifs_scan: bad node
UBIFS error (pid 394): ubifs_scanned_corruption: corrupted data at LEB 55:238016
UBIFS error (pid 394): ubifs_scanned_corruption: first 4096 bytes from LEB 55:238016
UBIFS error (pid 394): ubifs_scan: LEB 55 scanning failed
UBIFS error (pid 394): scan_check_cb: scan errors were in freeable LEB - continuing checking
UBIFS error (pid 394): ubifs_check_node: bad node length 160
UBIFS error (pid 394): ubifs_check_node: bad node at LEB 56:504576
Call trace:
 [<90010694>] dump_stack+0x18/0x20
 [<c0a65de8>] ubifs_check_node+0x210/0x23c [ubifs]
 [<c0a6bc14>] ubifs_scan_a_node+0x124/0x268 [ubifs]
 [<c0a6bf8a>] ubifs_scan+0x6e/0x220 [ubifs]
 [<c0a7a75e>] scan_check_cb+0x126/0x554 [ubifs]
 [<c0a79ade>] ubifs_lpt_scan_nolock+0x1be/0x3d4 [ubifs]
 [<c0a7abfe>] dbg_check_lprops+0x72/0x218 [ubifs]
 [<c0a6f678>] do_commit+0x8c/0x7e0 [ubifs]
 [<c0a6fe2e>] ubifs_run_commit+0x62/0x78 [ubifs]
 [<c0a7e13e>] ubifs_rcvry_gc_commit+0x412/0x45c [ubifs]
 [<c0a6318c>] ubifs_fill_super+0xaf0/0x1208 [ubifs]
 [<c0a63ac0>] ubifs_get_sb+0x21c/0x284 [ubifs]
 [<9004c640>] vfs_kern_mount+0x30/0x58
 [<9004c69c>] do_kern_mount+0x20/0x90
 [<90059e36>] do_new_mount+0x3a/0x58
 [<9005a446>] do_mount+0x122/0x14a
 [<9005a4ca>] sys_mount+0x5c/0x92
 [<9000c132>] syscall_return+0x0/0x12

UBIFS error (pid 394): ubifs_scan: bad node
UBIFS error (pid 394): ubifs_scanned_corruption: corrupted data at LEB 56:504576
UBIFS error (pid 394): ubifs_scanned_corruption: first 4096 bytes from LEB 56:504576
UBIFS error (pid 394): ubifs_scan: LEB 56 scanning failed
UBIFS error (pid 394): scan_check_cb: scan errors were in freeable LEB - continuing checking
UBIFS error (pid 394): ubifs_check_node: bad CRC: calculated 0x8ba9d381, read 0xb70c3855
UBIFS error (pid 394): ubifs_check_node: bad node at LEB 173:193824
Call trace:
 [<90010694>] dump_stack+0x18/0x20
 [<c0a65de8>] ubifs_check_node+0x210/0x23c [ubifs]
 [<c0a6bc14>] ubifs_scan_a_node+0x124/0x268 [ubifs]
 [<c0a6bf8a>] ubifs_scan+0x6e/0x220 [ubifs]
 [<c0a7a75e>] scan_check_cb+0x126/0x554 [ubifs]
 [<c0a79ade>] ubifs_lpt_scan_nolock+0x1be/0x3d4 [ubifs]
 [<c0a7abfe>] dbg_check_lprops+0x72/0x218 [ubifs]
 [<c0a6f678>] do_commit+0x8c/0x7e0 [ubifs]
 [<c0a6fe2e>] ubifs_run_commit+0x62/0x78 [ubifs]
 [<c0a7e13e>] ubifs_rcvry_gc_commit+0x412/0x45c [ubifs]
 [<c0a6318c>] ubifs_fill_super+0xaf0/0x1208 [ubifs]
 [<c0a63ac0>] ubifs_get_sb+0x21c/0x284 [ubifs]
 [<9004c640>] vfs_kern_mount+0x30/0x58
 [<9004c69c>] do_kern_mount+0x20/0x90
 [<90059e36>] do_new_mount+0x3a/0x58
 [<9005a446>] do_mount+0x122/0x14a
 [<9005a4ca>] sys_mount+0x5c/0x92
 [<9000c132>] syscall_return+0x0/0x12

UBIFS error (pid 394): ubifs_scan: bad node
UBIFS error (pid 394): ubifs_scanned_corruption: corrupted data at LEB 173:193824
UBIFS error (pid 394): ubifs_scanned_corruption: first 4096 bytes from LEB 173:193824
UBIFS error (pid 394): ubifs_scan: LEB 173 scanning failed
UBIFS error (pid 394): do_commit: commit failed, error -117
UBIFS warning (pid 394): ubifs_ro_mode: switched to read-only mode, error -117
Call trace:
 [<90010694>] dump_stack+0x18/0x20
 [<c0a6fda8>] do_commit+0x7bc/0x7e0 [ubifs]
 [<c0a6fe2e>] ubifs_run_commit+0x62/0x78 [ubifs]
 [<c0a7e13e>] ubifs_rcvry_gc_commit+0x412/0x45c [ubifs]
 [<c0a6318c>] ubifs_fill_super+0xaf0/0x1208 [ubifs]
 [<c0a63ac0>] ubifs_get_sb+0x21c/0x284 [ubifs]
 [<9004c640>] vfs_kern_mount+0x30/0x58
 [<9004c69c>] do_kern_mount+0x20/0x90
 [<90059e36>] do_new_mount+0x3a/0x58
 [<9005a446>] do_mount+0x122/0x14a
 [<9005a4ca>] sys_mount+0x5c/0x92
 [<9000c132>] syscall_return+0x0/0x12 
UBIFS DBG (pid 395): ubifs_bg_thread: background thread "ubifs_bgt0_1" stops
UBI DBG (pid 394): ubi_close_volume: close volume 1, mode 2
UBI DBG (pid 394): ubi_close_volume: close volume 1, mode 1

mount: mounting ubi0:wpr_slave on /mnt/slave/ failed: Structure needs cleaning
/mnt #



More information about the linux-mtd mailing list