diff mbox

[ARM] pxa: explicit #include <mach/dma.h> in various drivers

Message ID f17812d70811301949s6dc4bcddt791822f8d4ff223c@mail.gmail.com
State Not Applicable
Headers show

Commit Message

Eric Miao Dec. 1, 2008, 3:49 a.m. UTC
Where 'pxa_dma_desc' and 'pxa_{request,free}_dma' are referenced.

Signed-off-by: Eric Miao <eric.miao@marvell.com>
---
 drivers/mtd/nand/pxa3xx_nand.c |    2 +-
 drivers/net/smc911x.h          |    3 +++
 sound/arm/pxa2xx-pcm.h         |    2 +-
 3 files changed, 5 insertions(+), 2 deletions(-)

Comments

Eirik Aanonsen Dec. 1, 2008, 12:33 p.m. UTC | #1
Hi

I get this problem running my ubi/ubifs on a partition in my system.
The error occurs when I try to move one file to a new location and there
seems to be something wrong with the file. The file contains binary data
and is 9.3MB large. Can anyone help me locate this error or point me in
the right direction?

My system is a ap7002(arch == avr32) with 32MByte SRAM, 8MByte NOR flash
and 2GByte NAND flash(ubi).

Cmd:
----
/mnt/slave # mv wpr_004.wfp ../master/data/

UBIFS error (pid 471): ubifs_check_node: bad CRC: calculated 0x582d0a64,
read 0x4932021b
UBIFS error (pid 471): ubifs_check_node: bad node at LEB 159:302512
UBIFS error (pid 471): ubifs_read_node: expected node type 1
UBIFS error (pid 471): do_readpage: cannot read page 24 of inode 34213,
error -117
mv: read error: Input/output error


The file causing the problem:
-----------------------------
-rwxr-xr-x    1 root     root      9717632 Nov 28  2008 wpr_004.wfp


Disk space and filesystem:
--------------------------
Filesystem           1k-blocks      Used Available Use% Mounted on
...
ubi0:wpr_slave          222992     71776    146156  33% /mnt/slave
...


Mount point:
------------
ubi0:wpr_slave on /mnt/slave type ubifs (rw)


Parts of my kernel configuration:
---------------------------------

#
# Disk-On-Chip Device Drivers
#
# CONFIG_MTD_DOC2000 is not set
# CONFIG_MTD_DOC2001 is not set
# CONFIG_MTD_DOC2001PLUS is not set
CONFIG_MTD_NAND=y
# CONFIG_MTD_NAND_VERIFY_WRITE is not set
# CONFIG_MTD_NAND_ECC_SMC is not set
# CONFIG_MTD_NAND_MUSEUM_IDS is not set
CONFIG_MTD_NAND_IDS=y
# CONFIG_MTD_NAND_DISKONCHIP is not set
CONFIG_MTD_NAND_ATMEL=y
CONFIG_MTD_NAND_ATMEL_ECC_HW=y
# CONFIG_MTD_NAND_ATMEL_ECC_SOFT is not set
# CONFIG_MTD_NAND_ATMEL_ECC_NONE is not set
# CONFIG_MTD_NAND_NANDSIM is not set
# CONFIG_MTD_NAND_PLATFORM is not set
# CONFIG_MTD_ONENAND is not set

#
# UBI - Unsorted block images
#
CONFIG_MTD_UBI=m
CONFIG_MTD_UBI_WL_THRESHOLD=4096
CONFIG_MTD_UBI_BEB_RESERVE=1
CONFIG_MTD_UBI_GLUEBI=y

#
# UBI debugging options
#
# CONFIG_MTD_UBI_DEBUG is not set
# CONFIG_PARPORT is not set
CONFIG_BLK_DEV=y
# CONFIG_BLK_DEV_COW_COMMON is not set
# CONFIG_BLK_DEV_LOOP is not set
# CONFIG_BLK_DEV_NBD is not set
# CONFIG_BLK_DEV_RAM is not set
# CONFIG_CDROM_PKTCDVD is not set
# CONFIG_ATA_OVER_ETH is not set
CONFIG_MISC_DEVICES=y
# CONFIG_ATMEL_PWM is not set
CONFIG_ATMEL_TCLIB=y
CONFIG_ATMEL_TCB_CLKSRC=y
CONFIG_ATMEL_TCB_CLKSRC_BLOCK=0
# CONFIG_EEPROM_93CX6 is not set
# CONFIG_ATMEL_SSC is not set
# CONFIG_ENCLOSURE_SERVICES is not set
# CONFIG_HAVE_IDE is not set


#
# Miscellaneous filesystems
#
CONFIG_JFFS2_FS=y
CONFIG_JFFS2_FS_DEBUG=0
# CONFIG_JFFS2_FS_WRITEBUFFER is not set
# CONFIG_JFFS2_SUMMARY is not set
# CONFIG_JFFS2_FS_XATTR is not set
# CONFIG_JFFS2_COMPRESSION_OPTIONS is not set
CONFIG_JFFS2_ZLIB=y
# CONFIG_JFFS2_LZO is not set
CONFIG_JFFS2_RTIME=y
# CONFIG_JFFS2_RUBIN is not set
CONFIG_UBIFS_FS=m
# CONFIG_UBIFS_FS_XATTR is not set
CONFIG_UBIFS_FS_ADVANCED_COMPR=y
# CONFIG_UBIFS_FS_LZO is not set
# CONFIG_UBIFS_FS_ZLIB is not set
# CONFIG_UBIFS_FS_DEBUG is not set
Artem Bityutskiy Dec. 2, 2008, 8:44 a.m. UTC | #2
On Mon, 2008-12-01 at 13:33 +0100, Eirik Aanonsen wrote:
> Hi
> 
> I get this problem running my ubi/ubifs on a partition in my system.
> The error occurs when I try to move one file to a new location and there
> seems to be something wrong with the file. The file contains binary data
> and is 9.3MB large. Can anyone help me locate this error or point me in
> the right direction?
> 
> My system is a ap7002(arch == avr32) with 32MByte SRAM, 8MByte NOR flash
> and 2GByte NAND flash(ubi).
> 
> Cmd:
> ----
> /mnt/slave # mv wpr_004.wfp ../master/data/
> 
> UBIFS error (pid 471): ubifs_check_node: bad CRC: calculated 0x582d0a64,
> read 0x4932021b
> UBIFS error (pid 471): ubifs_check_node: bad node at LEB 159:302512
> UBIFS error (pid 471): ubifs_read_node: expected node type 1
> UBIFS error (pid 471): do_readpage: cannot read page 24 of inode 34213,
> error -117
> mv: read error: Input/output error

Hmm,

could you please enable UBIFS debugging and reproduce this. If there is
no interesting/insighting information, could you please also enable
UBIFS messages and send them. Please, glance here:
http://www.linux-mtd.infradead.org/doc/ubifs.html#L_how_send_bugreport
Eirik Aanonsen Dec. 2, 2008, 12:59 p.m. UTC | #3
> > /mnt/slave # mv wpr_004.wfp ../master/data/

> >

> > UBIFS error (pid 471): ubifs_check_node: bad CRC: calculated

> 0x582d0a64,

> > read 0x4932021b

> > UBIFS error (pid 471): ubifs_check_node: bad node at LEB 159:302512

> > UBIFS error (pid 471): ubifs_read_node: expected node type 1

> > UBIFS error (pid 471): do_readpage: cannot read page 24 of inode

> 34213,

> > error -117

> > mv: read error: Input/output error

> 

> could you please enable UBIFS debugging and reproduce this. If there is

> no interesting/insighting information, could you please also enable

> UBIFS messages and send them. Please, glance here:

> http://www.linux-mtd.infradead.org/doc/ubifs.html#L_how_send_bugreport

> 

> --

> Best regards,

> Artem Bityutskiy (Битюцкий Артём)



Here is some more information. On the bottom there is a general printout from the init of the ubi/ubifs on boot with dbg enabled. (Message level 0)

Regards Eirik Aanosnen

Here is the result from the actual move:
----------------------------------------

/mnt/slave # mv wpr_004.wfp ../master/
UBIFS error (pid 529): ubifs_check_node: bad CRC: calculated 0x7dc26ea1, read 0x3f225006
UBIFS error (pid 529): ubifs_check_node: bad node at LEB 184:236208
Call trace:
 [<90010694>] dump_stack+0x18/0x20
 [<c0a5cde8>] ubifs_check_node+0x210/0x23c [ubifs]
 [<c0a5cfe6>] ubifs_read_node+0x1d2/0x2d8 [ubifs]
 [<c0a776bc>] ubifs_tnc_read_node+0x70/0x170 [ubifs]
 [<c0a609a2>] ubifs_tnc_lookup+0x8a/0xb0 [ubifs]
 [<c0a54c64>] do_readpage+0x1c8/0x434 [ubifs]
 [<c0a54edc>] ubifs_readpage+0xc/0x18 [ubifs]
 [<900352a4>] generic_file_aio_read+0x2dc/0x47c
 [<9004b794>] do_sync_read+0x88/0xb4
 [<9004bb4c>] vfs_read+0x62/0x8e
 [<9004bcf2>] sys_read+0x2a/0x48
 [<9000c132>] syscall_return+0x0/0x12

UBIFS error (pid 529): ubifs_read_node: expected node type 1
UBIFS error (pid 529): do_readpage: cannot read page 1074 of inode 34246, error -117
mv: read error: Input/output error
/mnt/slave #

Full detail of error:
---------------------
UBIFS error (pid 529): ubifs_check_node: bad CRC: calculated 0x7dc26ea1, read 0x3f225006
UBIFS error (pid 529): ubifs_check_node: bad node at LEB 184:236208
        magic          0x6101831
        crc            0x3f225006
        node_type      1 (data node)
        group_type     0 (no node group)
        sqnum          359167
        len            4144
        key            (34246, data, 1074)
        size           4096
        compr_typ      0
        data size      4096
        data:
        00000000: f5 7f 27 f9 7f 57 fb 7f 77 f3 7f 47 f2 00 00 01 94 b3 80 03 85 88 4b 84 88 4b 84 f8 4a 84 88 49
        00000020: 84 c8 4d 84 a8 4a 84 c8 4c 84 c8 4d 00 00 01 94 b3 80 04 87 e8 83 88 48 8b 88 98 7b 87 c8 77 87
        00000040: c8 80 87 e8 81 87 f8 7f 88 28 7d 00 00 01 49 5d 20 00 81 12 00 00 00 00 00 00 00 00 00 00 00 00
        00000060: 00 00 01 02 00 00 00 00 00 00 00 00 01 94 b4 80 01 7f a7 fa 7f 67 fa 7f a7 fa 7f a7 fa 7f a7 fa
        00000080: 7f a7 fa 7f 67 f9 7f b7 fa 00 00 01 94 b4 80 02 7f 97 fa 7f 57 fe 80 67 f4 7f 47 f6 7f 77 f4 7f
        000000a0: 27 f4 7f 37 f3 7f 67 fc 00 00 01 94 b4 80 03 84 f8 4c 84 d8 49 84 e8 4b 84 f8 4a 84 88 4c 84 b8
        000000c0: 4f 84 d8 4d 84 f8 59 00 00 01 94 b4 80 04 87 f8 7e 87 f8 80 87 b8 80 87 a8 81 87 88 7a 88 08 7c
        000000e0: 87 a8 7d 88 28 82 00 00 01 94 b4 80 05 22 81 e2 22 62 28 22 72 27 1d e2 24 1d e2 24 1e 12 21 22
        00000100: 41 de 22 22 23 00 00 01 94 b5 80 01 7f c7 fa 7f 97 fb 7f 97 fa 7f a7 fa 7f a7 fa 7f c7 fa 7f 97
        00000120: fc 7f b7 f4 00 00 01 94 b5 80 02 7f 67 fc 7f 37 fb 7f 77 f4 7f 77 f3 7f 77 fc 7f 17 f2 7f 47 f2
        00000140: 7f 77 f4 00 00 01 94 b5 80 03 84 88 4e 84 f8 48 84 d8 4d 84 a8 4e 84 b8 47 84 c8 4d 84 d8 49 84
        00000160: 38 47 00 00 01 94 b5 80 04 87 f8 80 87 c8 7d 87 98 7c 87 a8 77 87 e8 80 88 38 7f 88 18 77 87 a8
        00000180: 7d 00 00 01 49 5e 20 00 81 12 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 02 00 00 00 00 00 00
        000001a0: 00 00 01 94 b6 80 01 80 27 fa 7f 58 0d 7f a7 fa 7f 77 f9 7f a7 f9 7f a7 f9 7f c7 f9 7f a7 fb 00
        000001c0: 00 01 94 b6 80 02 7f 57 f7 7f 77 f4 7f 17 f5 7f 97 f9 7f a7 fb 7f b7 f3 7f 57 f5 7f 37 f3 00 00
        000001e0: 01 94 b6 80 03 84 88 4d 84 f8 50 84 f8 54 85 68 59 84 b8 46 84 98 48 84 b8 4a 84 a8 4a 00 00 01
        00000200: 94 b6 80 04 87 d8 7f 87 e8 7f 88 08 7f 87 e8 7e 88 68 8b 88 88 83 87 d8 7e 87 c8 7d 00 00 01 94
        00000220: b6 80 05 22 22 25 22 62 28 22 92 28 22 71 de 22 72 27 22 61 e4 1e 81 e2 1e 12 26 00 00 01 94 b7
        00000240: 80 01 7f a7 fa 7f 97 f5 7f a7 fb 7f a7 fa 7f e7 fb 7f 97 fb 7f a8 01 7f a7 f9 00 00 01 94 b7 80
        00000260: 02 7f 07 f6 80 67 f5 7f 47 f7 7f 57 f5 7f 97 f5 7f a8 04 7f 17 f1 7f 67 f4 00 00 01 94 b7 80 03
        00000280: 84 b8 48 84 b8 4c 84 78 44 84 88 4e 84 d8 48 84 a8 4e 84 d8 49 84 d8 4e 00 00 01 94 b7 80 04 88
        000002a0: 48 83 88 48 86 88 38 7f 88 08 79 88 48 7f 87 c8 7c 87 68 7b 87 b8 7d 00 00 01 49 5f 20 00 81 12
        000002c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 02 00 00 00 00 00 00 00 00 01 94 b8 80 01 7f e7 fa
        000002e0: 7f 97 f9 7f b7 f9 7f a7 fb 7f 47 f9 7f a7 f9 7f c7 f9 7f a7 f9 00 00 01 94 b8 80 02 7f 27 f6 7f
        00000300: 97 f5 7f 67 f4 7f 67 fb 7f 57 f9 7f 27 f5 7f 77 f7 7f 47 f8 00 00 01 94 b8 80 03 85 28 4a 84 b8
        00000320: 4e 84 e8 49 84 98 4a 84 b8 4d 84 c8 4a 84 a8 4a 84 98 4a 00 00 01 94 b8 80 04 88 78 85 88 98 7e
        00000340: 87 b8 81 87 d8 7d 87 c8 7b 87 a8 7c 88 08 79 87 b8 7a 00 00 01 94 b8 80 05 22 22 24 22 71 e5 1e
        00000360: 61 e7 22 72 24 1e 22 27 22 62 23 22 42 23 22 21 de 00 00 01 94 b9 80 01 7f a8 0a 7f 97 f9 80 07
        00000380: fa 7f 98 06 7f 97 f9 7f 97 fa 7f c7 fb 7f a7 fa 00 00 01 94 b9 80 02 7f 97 fa 7f 18 04 7f 57 f7
        000003a0: 7f 27 f3 7f 57 f2 7f 27 f2 7f 27 f4 7f 47 f7 00 00 01 94 b9 80 03 84 e8 4b 84 f8 4a 84 d8 4c 84
        000003c0: 98 4b 84 98 4c 84 a8 4d 84 e8 4d 84 e8 53 00 00 01 94 b9 80 04 88 18 81 87 c8 7f 87 b8 77 87 98
        000003e0: 7f 87 c8 7d 87 d8 7a 87 f8 80 87 b8 85 00 00 01 49 60 20 00 81 12 00 00 00 00 00 00 00 00 00 00
        00000400: 00 00 00 00 01 02 00 00 00 00 00 00 00 00 01 94 ba 80 01 7f 97 fa 7f 97 fd 7f a7 fa 7f b7 fa 7f
        00000420: a7 fa 80 67 f9 7f 97 fb 7f b7 fa 00 00 01 94 ba 80 02 7f b7 fa 7f 57 fd 7f a7 fb 7f 57 f7 7f 57
        00000440: f8 7f 37 f6 7f 27 f1 7f 27 f5 00 00 01 94 ba 80 03 84 78 58 85 08 4b 84 a8 4d 84 88 4c 84 98 48
        00000460: 84 98 49 84 88 48 84 d8 4d 00 00 01 94 ba 80 04 87 e8 7f 87 a8 81 88 18 81 87 e8 7e 87 f8 81 87
        00000480: f8 7f 88 38 82 88 38 7d 00 00 01 94 ba 80 05 1d e2 24 1e 32 29 22 82 24 1e 11 e2 1e 22 28 22 62
        000004a0: 27 1e 22 27 22 71 e2 00 00 01 94 bb 80 01 7f a7 fa 7f 97 fa 7f a7 fb 7f a7 f9 7f a7 f6 7f b7 f9
        000004c0: 7f c7 f8 7f 97 fa 00 00 01 94 bb 80 02 7f 57 f5 7f 47 f7 7f 57 f8 7f 37 f3 7f 17 f7 7f 67 f6 7f
        000004e0: 37 f7 7f 47 f2 00 00 01 94 bb 80 03 84 b8 48 84 88 4d 84 f8 4e 84 c8 50 84 a8 4a 84 c8 4b 84 88
        00000500: 4b 84 d8 4b 00 00 01 94 bb 80 04 88 28 7a 87 f8 7e 87 e8 7f 88 08 80 87 f8 7d 88 08 83 88 58 88
        00000520: 88 38 7c 00 00 01 49 61 20 00 81 12 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 02 00 00 00 00
        00000540: 00 00 00 00 01 94 bc 80 01 7f 97 fa 7f c7 f7 7f a7 fa 7f a7 fc 7f a7 fa 7f 57 f9 7f b7 fa 7f a7
        00000560: f9 00 00 01 94 bc 80 02 7f 57 f6 7f 87 f7 7f 87 f4 7f 47 f4 7f 57 f5 7f 67 f5 7f 47 f9 7f d8 02
        00000580: 00 00 01 94 bc 80 03 84 f8 48 84 78 49 84 78 46 85 18 4a 85 28 50 84 98 4d 84 b8 46 84 a8 4f 00
        000005a0: 00 01 94 bc 80 04 87 d8 84 87 f8 7e 87 a8 7f 88 18 7b 87 e8 7e 87 e8 80 87 e8 83 88 18 7e 00 00
        000005c0: 01 94 bc 80 05 1e 21 e2 22 22 28 1e 32 28 22 72 24 22 a1 e2 22 42 27 22 92 27 1e 12 27 00 00 01
        000005e0: 94 bd 80 01 7f a7 fb 7f 68 07 7f a7 fa 7f a7 f9 7f a7 f6 7f c7 fa 7f a7 fb 7f a7 fa 00 00 01 94
        00000600: bd 80 02 7f 67 f3 7f a7 f2 7f 77 f3 7f 67 f6 7f 77 f7 7f 87 fc 7f b7 f7 7f e7 fe 00 00 01 94 bd
        00000620: 80 03 85 08 4a 84 88 4a 84 e8 4a 84 e8 49 84 f8 50 85 78 58 84 b8 4b 84 a8 4c 00 00 01 94 bd 80
        00000640: 04 87 a8 78 87 d8 84 88 38 88 88 28 81 87 f8 7d 87 b8 80 87 f8 82 87 b8 83 00 00 01 49 62 20 00
        00000660: 81 12 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 02 00 00 00 00 00 00 00 00 01 94 be 80 01 7f
        00000680: a7 f9 7f a7 f9 80 27 fa 7f a7 fa 7f a7 f5 7f a7 fc 7f a7 fa 7f 87 f5 00 00 01 94 be 80 02 7f 77
        000006a0: f4 7f 27 f9 7f 87 f9 7f 88 00 80 47 f7 7f 67 f3 7f 37 f3 7f 67 f6 00 00 01 94 be 80 03 84 78 50
        000006c0: 84 f8 4c 84 e8 49 84 d8 4a 84 a8 4e 84 78 41 84 58 4e 84 e8 4a 00 00 01 94 be 80 04 87 f8 7f 87
        000006e0: c8 85 88 28 7f 88 18 84 88 98 86 87 e8 7c 87 c8 7e 88 18 85 00 00 01 94 be 80 05 1e 12 24 1d e2
        00000700: 27 22 72 24 1e 11 e2 22 81 e2 1e 01 e6 1e 52 26 22 32 23 00 00 01 94 bf 80 01 7f 98 02 7f a7 f9
        00000720: 7f 97 f9 7f 97 f9 7f 97 f9 7f a7 f9 7f 98 0a 7f 57 fa 00 00 01 94 bf 80 02 7f 57 f0 7f 37 f3 7f
        00000740: 77 fe 7f 97 fc 7f a7 f5 80 07 f5 7f 37 f1 7f 77 f3 00 00 01 94 bf 80 03 84 d8 4b 84 f8 4d 85 a8
        00000760: 56 84 b8 4b 84 98 4d 84 d8 4b 84 88 47 84 98 48 00 00 01 94 bf 80 04 87 d8 7d 88 08 83 87 f8 7e
        00000780: 87 f8 7b 88 58 7f 87 c8 7f 87 a8 7d 87 f8 7f 00 00 01 49 63 20 00 81 12 00 00 00 00 00 00 00 00
        000007a0: 00 00 00 00 00 00 01 02 00 00 00 00 00 00 00 00 01 94 c0 80 01 7f a7 f9 7f 97 fb 7f a7 fa 7f c7
        000007c0: f9 7f 87 fc 7f a7 fb 7f a7 fa 7f b7 fa 00 00 01 94 c0 80 02 7f 47 f7 7f 57 f4 7f 57 f5 7f 57 f6
        000007e0: 7f 67 f1 7f 77 f5 7f 87 f2 7f 37 f3 00 00 01 94 c0 80 03 84 b8 4a 84 68 47 84 68 4e 84 d8 4c 84
        00000800: c8 4a 84 a8 4b 84 88 4c 84 68 4b 00 00 01 94 c0 80 04 87 c8 85 87 a8 87 87 d8 7f 88 18 7c 87 d8
        00000820: 7e 87 d8 7b 88 28 83 88 68 85 00 00 01 94 c0 80 05 22 92 27 22 62 24 1e 42 24 1e 62 27 22 81 e3
        00000840: 22 22 28 22 72 26 22 31 e2 00 00 01 94 c1 80 01 7f a7 f9 7f b7 fa 7f a7 fa 7f 77 f4 7f a7 fa 80
        00000860: b7 f6 7f a7 fb 7f a7 f6 00 00 01 94 c1 80 02 7f 77 f4 7f 77 f7 7f 47 f7 7f 77 f7 7f 47 f4 7f 37
        00000880: f3 7f 77 fa 80 08 05 00 00 01 94 c1 80 03 84 e8 4d 84 c8 48 84 88 47 84 b8 4c 84 d8 4c 84 88 4c
        000008a0: 84 78 4d 84 78 4c 00 00 01 94 c1 80 04 88 78 7f 87 d8 7d 87 e8 82 88 28 7d 88 48 7e 87 d8 7e 88
        000008c0: 18 7e 88 18 7b 00 00 01 49 64 20 00 81 12 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 02 00 00
        000008e0: 00 00 00 00 00 00 01 94 c2 80 01 7f a7 f9 80 a7 f7 7f 97 fa 7f a7 f8 7f 67 fa 7f 87 f9 7f a7 fa
        00000900: 7f a7 f9 00 00 01 94 c2 80 02 7f 27 f8 7f 67 f9 7f 37 f2 7f 37 f7 7f 47 f5 7f 47 fc 7f f7 fe 7f
        00000920: 47 f5 00 00 01 94 c2 80 03 85 38 4a 84 98 4b 84 f8 47 84 a8 4d 84 98 5a 85 18 4f 84 78 4d 84 a8
        00000940: 4b 00 00 01 94 c2 80 04 87 b8 7d 87 e8 83 88 58 81 88 98 83 87 f8 7e 87 c8 77 88 28 80 87 f8 87
        00000960: 00 00 01 94 c2 80 05 22 61 e2 22 32 24 22 72 28 1e 11 e4 1e 31 e6 1e 02 27 22 72 24 22 11 e2 00
        00000980: 00 01 94 c3 80 01 7f a7 fa 7f 47 fa 7f a7 f9 7f b7 f9 7f 97 fb 7f 87 fa 7f a8 08 7f a7 f9 00 00
        000009a0: 01 94 c3 80 02 7f 57 f6 7f 47 f7 7f 57 fb 7f f8 07 7f 97 f4 7f 47 f2 7f 47 f7 7f 67 f4 00 00 01
        000009c0: 94 c3 80 03 84 58 4a 84 b8 4e 84 c8 4d 84 d8 51 84 b8 44 84 68 44 84 c8 4c 84 a8 4d 00 00 01 94
        000009e0: c3 80 04 88 38 7f 87 b8 84 87 f8 7c 87 e8 8b 88 38 80 87 f8 7f 87 88 7a 88 18 86 00 00 01 49 65
        00000a00: 20 00 81 12 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 02 00 00 00 00 00 00 00 00 01 94 c4 80
        00000a20: 01 7f a7 f9 7f 97 fa 7f a7 f9 7f a7 fa 80 77 fa 7f 87 fa 7f a7 fa 7f b7 fa 00 00 01 94 c4 80 02
        00000a40: 7f 27 f7 7f 67 f7 7f 77 fd 7f a7 f9 7f 87 f6 7f c7 ee 7f 37 f5 7f 57 f2 00 00 01 94 c4 80 03 84
        00000a60: a8 4f 85 08 52 85 c8 5b 84 d8 4e 84 c8 4a 84 98 4c 84 88 49 84 38 4a 00 00 01 94 c4 80 04 87 f8
        00000a80: 84 87 b8 80 88 18 7d 87 e8 7c 88 88 7f 87 a8 7f 87 d8 7e 87 b8 7e 00 00 01 94 c4 80 05 22 31 e3
        00000aa0: 1e 42 28 1e 32 26 1d d1 e2 22 82 27 22 21 e4 22 72 23 22 72 27 00 00 01 94 c5 80 01 7f 97 f4 7f
        00000ac0: 97 f9 7f 97 fb 7f 77 f9 7f a7 f9 7f a7 fa 7f b7 fa 7f 97 fa 00 00 01 94 c5 80 02 7f 27 f6 80 57
        00000ae0: f6 7f 47 f2 7f 77 f8 7f a7 f8 7f b7 ef 7f 47 f8 7f 57 f4 00 00 01 94 c5 80 03 84 b8 4c 84 d8 49
        00000b00: 84 68 45 84 c8 4f 84 a8 4a 84 e8 4e 84 c8 4e 85 08 4c 00 00 01 94 c5 80 04 87 e8 7d 88 48 84 88
        00000b20: 08 7e 87 d8 78 87 d8 7e 88 08 7e 87 d8 7e 87 b8 80 00 00 01 49 66 20 00 81 12 00 00 00 00 00 00
        00000b40: 00 00 00 00 00 00 00 00 01 02 00 00 00 00 00 00 00 00 01 94 c6 80 01 5f a7 fa 7f a7 fa 7f a7 fa
        00000b60: 7f a7 fb 7f 77 fa 7f 67 f7 7f a7 fa 7f c7 f9 00 00 01 94 c6 80 02 7f 47 f6 7f c7 f4 7f 37 f6 7f
        00000b80: 57 f7 7f 67 f4 7f 47 f1 7f 87 f6 7f 37 f5 00 00 01 94 c6 80 03 84 d8 4b 84 b8 4a 84 d8 49 84 88
        00000ba0: 47 84 d8 4e 84 d8 4e 84 c8 4d 84 d8 4b 00 00 01 94 c6 80 04 88 18 82 88 88 87 87 c8 7c 87 d8 7c
        00000bc0: 87 d8 7f 87 d8 7b 87 88 80 87 e8 7d 00 00 01 94 c6 80 05 22 42 25 1d d1 e2 1e 31 e4 1e 52 24 22
        00000be0: 32 28 22 22 27 22 82 28 22 32 20 00 00 01 94 c7 80 01 80 c7 fa 7f 47 fe 7f 97 f9 7f b7 f9 7f 87
        00000c00: f9 7f 87 fa 7f 97 fa 7f a7 fa 00 00 01 94 c7 80 02 7f 67 fc 7f 48 03 7f e7 f6 7f 77 f8 7f 47 f9
        00000c20: 7f 47 f3 7f 57 f0 7f 47 f4 00 00 01 94 c7 80 03 84 a8 4b 85 08 4c 84 d8 4b 84 d8 4a 84 a8 4b 84
        00000c40: e8 4d 84 c8 4e 85 18 57 00 00 01 94 c7 80 04 88 08 82 88 08 7b 87 b8 7a 88 08 80 87 f8 7c 87 c8
        00000c60: 7b 87 d8 7f 88 18 81 00 00 01 49 67 20 00 81 12 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 02
        00000c80: 00 00 00 00 00 00 00 00 01 94 c8 80 01 7f c7 f9 7f a7 fb 7f a7 fa 7f a7 f9 7f 97 f9 7f b7 fa 7f
        00000ca0: 97 fb 7f a7 f9 00 00 01 94 c8 80 02 7f a7 fa 7f 47 fb 7f a7 f7 7f 57 f7 7f 57 f6 7f 57 f2 7f 47
        00000cc0: f3 7f 47 f3 00 00 01 94 c8 80 03 84 a8 56 84 a8 4b 84 d8 4c 84 c8 4c 84 88 46 84 88 4c 84 a8 4c
        00000ce0: 84 c8 4b 00 00 01 94 c8 80 04 88 38 7a 87 b8 86 87 f8 83 88 28 78 87 c8 7f 88 18 7f 87 f8 7d 88
        00000d00: 08 7c 00 00 01 94 c8 80 05 22 61 e2 1e 21 e2 22 42 24 1e 42 2a 1e 21 e2 21 f2 23 22 71 df 22 72
        00000d20: 27 00 00 01 94 c9 80 01 7f b7 fa 7f 97 f4 7f 97 f9 7f a7 fb 7f 47 f9 7f a7 f9 7f a7 fa 7f a7 fa
        00000d40: 00 00 01 94 c9 80 02 7f 47 f3 7f 77 f5 7f 47 f5 7f 37 f1 7f 47 f6 7f 67 f5 7f 17 f6 7f 67 f5 00
        00000d60: 00 01 94 c9 80 03 84 c8 41 84 78 4c 84 d8 4d 85 18 4f 84 a8 4a 84 c8 48 84 98 49 84 88 4c 00 00
        00000d80: 01 94 c9 80 04 87 b8 7d 88 18 7b 87 b8 82 87 f8 81 87 d8 7e 87 d8 80 88 28 89 88 98 7b 00 00 01
        00000da0: 49 68 20 00 81 12 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 02 00 00 00 00 00 00 00 00 01 94
        00000dc0: ca 80 01 7f 97 f9 7f 87 f9 7f 87 f9 7f 97 fa 7f 97 f8 7f 97 f9 7f 98 02 7f 97 fa 00 00 01 94 ca
        00000de0: 80 02 7f 37 f3 7f 57 f6 7f 47 f4 7f 37 f6 7f 87 f6 7f 87 f6 7f c7 fd 80 77 f3 00 00 01 94 ca 80
        00000e00: 03 84 d8 4c 84 88 49 84 78 49 84 d8 44 84 f8 4b 84 98 4b 84 d8 4e 84 98 4b 00 00 01 94 ca 80 04
        00000e20: 87 f8 7d 88 38 7b 87 c8 7d 88 68 80 88 28 79 87 f8 7f 88 78 7c 87 b8 7e 00 00 01 94 ca 80 05 1e
        00000e40: 61 e7 22 32 27 22 61 de 22 12 23 22 91 e4 1d e1 e3 22 42 27 22 71 e4 00 00 01 94 cb 80 01 7f a7
        00000e60: fa 80 a7 f4 80 47 f7 7f 97 fa 7f a7 fb 7f a7 fa 7f a7 fa 7f a7 fb 00 00 01 94 cb 80 02 7f 27 f8
        00000e80: 7f 97 f3 7f 57 f3 7f 67 f4 7f 57 f4 7f 17 fe 7f 97 f5 7f 47 f3 00 00 01 94 cb 80 03 85 58 4c 84
        00000ea0: f8 4b 84 e8 4e 84 c8 4c 84 28 4e 84 58 48 84 b8 4c 84 d8 4d 00 00 01 94 cb 80 04 87 b8 81 88 48
        00000ec0: 88 88 88 80 87 f8 7b 87 a8 81 88 18 7f 87 d8 80 88 38 7e 00 00 01 49 69 20 00 81 12 00 00 00 00
        00000ee0: 00 00 00 00 00 00 00 00 00 00 01 02 00 00 00 00 00 00 00 00 01 94 cc 80 01 7f 97 fb 7f a7 fa 7f
        00000f00: a7 fb 7f 77 fa 7f a7 fa 7f 97 fb 7f a7 fa 7f a7 fb 00 00 01 94 cc 80 02 7f 47 f2 7f 67 fb 80 57
        00000f20: fa 7f 37 f7 7f 87 f6 7f 37 f5 7f 37 f4 7f 77 f6 00 00 01 94 cc 80 03 84 d8 4e 84 98 4f 84 d8 4f
        00000f40: 84 c8 4c 84 98 4a 84 b8 4d 85 18 55 85 38 4a 00 00 01 94 cc 80 04 87 a8 82 88 18 7f 87 c8 7e 87
        00000f60: b8 7e 87 e8 80 87 c8 7e 87 f8 80 87 f8 80 00 00 01 94 cc 80 05 1d e1 e2 22 62 24 1e 21 e2 22 62
        00000f80: 24 22 72 22 22 62 27 1d f2 23 22 72 27 00 00 01 94 cd 80 01 7f 97 fa 7f a7 fc 7f a7 f9 7f 67 fa
        00000fa0: 7f 57 fa 7f a7 fa 7f 97 fa 7f a7 fc 00 00 01 94 cd 80 02 7f d7 fb 7f 97 f3 7f 87 f3 7f a7 fe 80
        00000fc0: 47 fe 7f 37 f4 7f 67 f6 7f 57 f4 00 00 01 94 cd 80 03 84 a8 4a 85 18 50 84 b8 4c 84 c8 4e 84 a8
        00000fe0: 44 84 58 4a 84 b8 4b 84 c8 4d 00 00 01 94 cd 80 04 87 f8 80 88 28 7e 88 18 7f 87 f8 87 88 48 7c
Call trace:
 [<90010694>] dump_stack+0x18/0x20
 [<c0a5cde8>] ubifs_check_node+0x210/0x23c [ubifs]
 [<c0a5cfe6>] ubifs_read_node+0x1d2/0x2d8 [ubifs]
 [<c0a776bc>] ubifs_tnc_read_node+0x70/0x170 [ubifs]
 [<c0a609a2>] ubifs_tnc_lookup+0x8a/0xb0 [ubifs]
 [<c0a54c64>] do_readpage+0x1c8/0x434 [ubifs]
 [<c0a54edc>] ubifs_readpage+0xc/0x18 [ubifs]
 [<900352a4>] generic_file_aio_read+0x2dc/0x47c
 [<9004b794>] do_sync_read+0x88/0xb4
 [<9004bb4c>] vfs_read+0x62/0x8e
 [<9004bcf2>] sys_read+0x2a/0x48
 [<9000c132>] syscall_return+0x0/0x12

UBIFS error (pid 529): ubifs_read_node: expected node type 1
UBIFS error (pid 529): do_readpage: cannot read page 1074 of inode 34246, error -117
/mnt/slave #

UBIFS warning (pid 500): mount_ubifs: 'LZO' compressor is set by superblock, but not compiled in
UBIFS: background thread "ubifs_bgt0_1" started, PID 503
UBIFS: recovery needed
UBIFS: recovery completed
UBIFS: mounted UBI device 0, volume 1
UBIFS: minimal I/O unit size:   4096 bytes
UBIFS: logical eraseblock size: 516096 bytes (504 KiB)
UBIFS: file system size:        257531904 bytes (251496 KiB, 245 MiB, 499 LEBs)
UBIFS: journal size:            12902400 bytes (12600 KiB, 12 MiB, 25 LEBs)
UBIFS: data journal heads:      1
UBIFS: default compressor:      no compression
UBIFS: media format 4, latest format 4
UBIFS DBG (pid 500): mount_ubifs: compiled on:            Dec  2 2008 at 12:45:22
UBIFS DBG (pid 500): mount_ubifs: UUID:                   09274DA3-E292-44AA-86A0-8A21B349861F
UBIFS DBG (pid 500): mount_ubifs: fast unmount:           0
UBIFS DBG (pid 500): mount_ubifs: big_lpt                 0
UBIFS DBG (pid 500): mount_ubifs: log LEBs:               3 (3 - 5)
UBIFS DBG (pid 500): mount_ubifs: LPT area LEBs:          2 (6 - 7)
UBIFS DBG (pid 500): mount_ubifs: orphan area LEBs:       1 (8 - 8)
UBIFS DBG (pid 500): mount_ubifs: main area LEBs:         499 (9 - 507)
UBIFS DBG (pid 500): mount_ubifs: index LEBs:             3
UBIFS DBG (pid 500): mount_ubifs: total index bytes:      76768 (74 KiB, 0 MiB)
UBIFS DBG (pid 500): mount_ubifs: key hash type:          0
UBIFS DBG (pid 500): mount_ubifs: tree fanout:            8
UBIFS DBG (pid 500): mount_ubifs: reserved GC LEB:        189
UBIFS DBG (pid 500): mount_ubifs: first main LEB:         9
UBIFS DBG (pid 500): mount_ubifs: dead watermark:         4096
UBIFS DBG (pid 500): mount_ubifs: dark watermark:         8192
UBIFS DBG (pid 500): mount_ubifs: max. dark space:        4087808 (3992 KiB, 3 MiB)
UBIFS DBG (pid 500): mount_ubifs: maximum bud bytes:      11354112 (11088 KiB, 10 MiB)
UBIFS DBG (pid 500): mount_ubifs: BG commit bud bytes:    9225216 (9009 KiB, 8 MiB)
UBIFS DBG (pid 500): mount_ubifs: current bud bytes       614400 (600 KiB, 0 MiB)
UBIFS DBG (pid 500): mount_ubifs: max. seq. number:       395944
UBIFS DBG (pid 500): mount_ubifs: commit number:          146
UBIFS warning (pid 500): mount_ubifs: 'LZO' compressor is set by superblock, but not compiled in
UBIFS: background thread "ubifs_bgt0_2" started, PID 504
UBIFS: recovery needed
UBIFS: recovery completed
UBIFS: mounted UBI device 0, volume 2
UBIFS: minimal I/O unit size:   4096 bytes
UBIFS: logical eraseblock size: 516096 bytes (504 KiB)
UBIFS: file system size:        100638720 bytes (98280 KiB, 95 MiB, 195 LEBs)
UBIFS: journal size:            5160960 bytes (5040 KiB, 4 MiB, 10 LEBs)
UBIFS: data journal heads:      1
UBIFS: default compressor:      no compression
UBIFS: media format 4, latest format 4
UBIFS DBG (pid 500): mount_ubifs: compiled on:            Dec  2 2008 at 12:45:22
UBIFS DBG (pid 500): mount_ubifs: UUID:                   4B0D4755-35DB-4E8F-BF07-6EF132343A4E
UBIFS DBG (pid 500): mount_ubifs: fast unmount:           0
UBIFS DBG (pid 500): mount_ubifs: big_lpt                 0
UBIFS DBG (pid 500): mount_ubifs: log LEBs:               3 (3 - 5)
UBIFS DBG (pid 500): mount_ubifs: LPT area LEBs:          2 (6 - 7)
UBIFS DBG (pid 500): mount_ubifs: orphan area LEBs:       1 (8 - 8)
UBIFS DBG (pid 500): mount_ubifs: main area LEBs:         195 (9 - 203)
UBIFS DBG (pid 500): mount_ubifs: index LEBs:             1
UBIFS DBG (pid 500): mount_ubifs: total index bytes:      48 (0 KiB, 0 MiB)
UBIFS DBG (pid 500): mount_ubifs: key hash type:          0
UBIFS DBG (pid 500): mount_ubifs: tree fanout:            8
UBIFS DBG (pid 500): mount_ubifs: reserved GC LEB:        12
UBIFS DBG (pid 500): mount_ubifs: first main LEB:         9
UBIFS DBG (pid 500): mount_ubifs: dead watermark:         4096
UBIFS DBG (pid 500): mount_ubifs: dark watermark:         8192
UBIFS DBG (pid 500): mount_ubifs: max. dark space:        1597440 (1560 KiB, 1 MiB)
UBIFS DBG (pid 500): mount_ubifs: maximum bud bytes:      3612672 (3528 KiB, 3 MiB)
UBIFS DBG (pid 500): mount_ubifs: BG commit bud bytes:    2935296 (2866 KiB, 2 MiB)
UBIFS DBG (pid 500): mount_ubifs: current bud bytes       0 (0 KiB, 0 MiB)
UBIFS DBG (pid 500): mount_ubifs: max. seq. number:       241
UBIFS DBG (pid 500): mount_ubifs: commit number:          63
Artem Bityutskiy Dec. 2, 2008, 3:15 p.m. UTC | #4
On Tue, 2008-12-02 at 13:59 +0100, Eirik Aanonsen wrote:
> Here is the result from the actual move:
> ----------------------------------------
> 
> /mnt/slave # mv wpr_004.wfp ../master/
> UBIFS error (pid 529): ubifs_check_node: bad CRC: calculated 0x7dc26ea1, read 0x3f225006
> UBIFS error (pid 529): ubifs_check_node: bad node at LEB 184:236208
> Call trace:
>  [<90010694>] dump_stack+0x18/0x20
>  [<c0a5cde8>] ubifs_check_node+0x210/0x23c [ubifs]
>  [<c0a5cfe6>] ubifs_read_node+0x1d2/0x2d8 [ubifs]
>  [<c0a776bc>] ubifs_tnc_read_node+0x70/0x170 [ubifs]
>  [<c0a609a2>] ubifs_tnc_lookup+0x8a/0xb0 [ubifs]
>  [<c0a54c64>] do_readpage+0x1c8/0x434 [ubifs]
>  [<c0a54edc>] ubifs_readpage+0xc/0x18 [ubifs]
>  [<900352a4>] generic_file_aio_read+0x2dc/0x47c
>  [<9004b794>] do_sync_read+0x88/0xb4
>  [<9004bb4c>] vfs_read+0x62/0x8e
>  [<9004bcf2>] sys_read+0x2a/0x48
>  [<9000c132>] syscall_return+0x0/0x12
> 
> UBIFS error (pid 529): ubifs_read_node: expected node type 1
> UBIFS error (pid 529): do_readpage: cannot read page 1074 of inode 34246, error -117
> mv: read error: Input/output error
> /mnt/slave #
> 

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?

> 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?

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.
Eirik Aanonsen Dec. 3, 2008, 7:55 a.m. UTC | #5
> 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 #
Artem Bityutskiy Dec. 3, 2008, 9:25 a.m. UTC | #6
On Wed, 2008-12-03 at 08:55 +0100, Eirik Aanonsen wrote:
> > 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.

OK.

> 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.

OK, this means that the file had not been correctly written to UBIFS.
Your NAND driver may have problems. The fact that you use NAND flash
with 4KiB page size also suggests this, because AFAIK MTD does not
really support 4KiB per page NANDs. You probably have some custom MTD
diver/modifications.

Could you please verify your NAND driver before trying to use UBIFS?
Here you may get NAND tests which should do this:

git://git.infradead.org/users/ahunter/nand-tests.git

The tests are kernel modules. Compile them properly, then just insert
them, may be with some parameters. Use modinfo to see the parameters,
or look at the source code. All tests are harmless, except of torture
test - be careful with it.

Note, these tests has not been run on 4KiB-page NANDs, but they should
work fine anyway.

Could you please tell which NAND hardware you have? Is it SLC or MLC?

> > 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.

I see. Basically, you have broken nodes on your flash media, which means
your files have not been written correctly for some reasons. For now I
suspect buggy NAND driver.

> How do I do cleaning in ubifs?

Well, in _normal_ situations you should not need this at all, and UBIFS
is self-recoverable. In your case you have some severe problems so you
have data corruptions which you cannot recover anyway. You may only
delete the corrupted files.

But yes, an ckfs.ubifs user-space utility would be nice to have, and we
were thinking to create it. At the moment, it does not exist.
Eirik Aanonsen Dec. 5, 2008, 10:46 a.m. UTC | #7
...
> Could you please verify your NAND driver before trying to use UBIFS?

> Here you may get NAND tests which should do this:

> 

> git://git.infradead.org/users/ahunter/nand-tests.git

> 

> The tests are kernel modules. Compile them properly, then just insert

> them, may be with some parameters. Use modinfo to see the parameters,

> or look at the source code. All tests are harmless, except of torture

> test - be careful with it.

> 

> Note, these tests has not been run on 4KiB-page NANDs, but they should

> work fine anyway.

> 

> Could you please tell which NAND hardware you have? Is it SLC or MLC?

> 

...
> --

> Best regards,

> Artem Bityutskiy (Битюцкий Артём)


It was correct that there was some faulty implementation of the oob/ecc handling.
This is ran on a SLC Samsung NAND flash(2GByte).

Thank you for all the help so far.

After fixing ( I think ) I ran the tests and I am adding the results from the pagetest and subpagetest.
Here where the only test with some errors.

Any hint to what to look into next would be great.

Regards
____________________________________________________
 
Eirik Aanonsen
SW Developer
E-mail: eaa@wprmedical.com 
Phone: +47 90 68 11 92
Fax: +47 37 03 56 77
____________________________________________________


Pagetest
------------------------------------------------------------------------------------
/mnt/slave # modprobe pagetest dev=5

=========================================================================================
pagetest: dev = 5
pagetest: scanning for bad blocks
pagetest: scanned 0
pagetest: Block 31 is bad
pagetest: scanned 256
pagetest: scanned 512
pagetest: scanned 768
pagetest: scanned 1024
pagetest: scanned 1280
pagetest: scanned 1536
pagetest: Block 1579 is bad
pagetest: scanned 1792
pagetest: scanned 2048
pagetest: scanned 2304
pagetest: scanned 2560
pagetest: scanned 2816
pagetest: Block 2921 is bad
pagetest: Block 2931 is bad
pagetest: scanned 3072
pagetest: scanned 3328
pagetest: Block 3359 is bad
pagetest: scanned 3584
pagetest: scanned 3840
pagetest: scanned 4096
pagetest: erasing
pagetest: erased 0
pagetest: erased 256
pagetest: erased 512
pagetest: erased 768
pagetest: erased 1024
pagetest: erased 1280
pagetest: erased 1536
pagetest: erased 1792
pagetest: erased 2048
pagetest: erased 2304
pagetest: erased 2560
pagetest: erased 2816
pagetest: erased 3072
pagetest: erased 3328
pagetest: erased 3584
pagetest: erased 3840
pagetest: erased 4096
pagetest: writing
pagetest: written 0
pagetest: written 256
pagetest: written 512
pagetest: written 768
pagetest: written 1024
pagetest: written 1280
pagetest: written 1536
pagetest: written 1792
pagetest: written 2048
pagetest: written 2304
pagetest: written 2560
pagetest: written 2816
pagetest: written 3072
pagetest: written 3328
pagetest: written 3584
pagetest: written 3840
pagetest: written 4096
pagetest: verifying
pagetest: verified 0
pagetest: error: verify failed at 0x006ea000
pagetest: error: verify failed at 0x006eb000
pagetest: error: verify failed at 0x07408000
pagetest: error: verify failed at 0x07409000
pagetest: verified 256
pagetest: error: verify failed at 0x089a8000
pagetest: error: verify failed at 0x089a9000
pagetest: verified 512
pagetest: verified 768
pagetest: error: verify failed at 0x1c871000
pagetest: error: verify failed at 0x1c872000
pagetest: verified 1024
pagetest: error: verify failed at 0x260ea000
pagetest: error: verify failed at 0x260eb000
pagetest: error: verify failed at 0x26518000
pagetest: error: verify failed at 0x26519000
pagetest: error: verify failed at 0x27af1000
pagetest: error: verify failed at 0x27af2000
pagetest: verified 1280
pagetest: error: verify failed at 0x2f0a3000
pagetest: error: verify failed at 0x2f0a4000
pagetest: verified 1536
pagetest: error: verify failed at 0x30717000
pagetest: error: verify failed at 0x30718000
pagetest: verified 1792
pagetest: error: verify failed at 0x3bcec000
pagetest: error: verify failed at 0x3bced000
pagetest: error: verify failed at 0x3f798000
pagetest: error: verify failed at 0x3f799000
pagetest: verified 2048
pagetest: error: verify failed at 0x4161f000
pagetest: error: verify failed at 0x41620000
pagetest: verified 2304
pagetest: error: verify failed at 0x4b6a4000
pagetest: error: verify failed at 0x4b6a5000
pagetest: error: verify failed at 0x4e34b000
pagetest: error: verify failed at 0x4e34c000
pagetest: error: verify failed at 0x4f167000
pagetest: error: verify failed at 0x4f168000
pagetest: verified 2560
pagetest: verified 2816
pagetest: error: verify failed at 0x59f08000
pagetest: error: verify failed at 0x59f09000
pagetest: error: verify failed at 0x5b5e4000
pagetest: error: verify failed at 0x5c123000
pagetest: error: verify failed at 0x5c124000
pagetest: verified 3072
pagetest: error: verify failed at 0x670d3000
pagetest: error: verify failed at 0x670d4000
pagetest: verified 3328
pagetest: error: verify failed at 0x6a1e4000
pagetest: error: verify failed at 0x6a1e5000
pagetest: error: verify failed at 0x6a3f2000
pagetest: error: verify failed at 0x6a3f3000
pagetest: verified 3584
pagetest: error: verify failed at 0x7505f000
pagetest: error: verify failed at 0x75060000
pagetest: error: verify failed at 0x779db000
pagetest: error: verify failed at 0x779dc000
pagetest: verified 3840
pagetest: error: verify failed at 0x790b1000
pagetest: error: verify failed at 0x790b2000
pagetest: error: verify failed at 0x790b7000
pagetest: error: verify failed at 0x790b8000
pagetest: error: verify failed at 0x7a8e7000
pagetest: error: verify failed at 0x7a8e8000
pagetest: error: verify failed at 0x7c537000
pagetest: error: verify failed at 0x7c538000
pagetest: verified 4096
pagetest: crosstest
pagetest: reading page at 0x00000000
pagetest: reading page at 0x7ffff000
pagetest: reading page at 0x00000000
pagetest: verifying pages read at 0x00000000 match
pagetest: crosstest ok
pagetest: erasecrosstest
pagetest: erasing block 0
pagetest: writing 1st page of block 0
pagetest: reading 1st page of block 0
pagetest: verifying 1st page of block 0
pagetest: erasing block 0
pagetest: writing 1st page of block 0
pagetest: erasing block 4095
pagetest: reading 1st page of block 0
pagetest: verifying 1st page of block 0
pagetest: erasecrosstest ok
pagetest: erasetest
pagetest: erasing block 0
pagetest: writing 1st page of block 0
pagetest: erasing block 0
pagetest: reading 1st page of block 0
pagetest: verifying 1st page of block 0 is all 0xff
pagetest: erasetest ok
pagetest: pagetest finished with 53 errors
=========================================================================================
insmod: cannot insert '/lib/modules/2.6.25.6.atmel.1/kernel/arch/avr32/boards/wpr-rec3/nand_test/pagetest.ko': Operation not permitted
modprobe: failed to load module pagetest



Subpagetest
------------------------------------------------------------------------------------
/mnt/slave # modprobe subpagetest dev=5

=========================================================================================
subpagetest: dev = 5
sub-page size is: 4096
subpagetest: scanning for bad blocks
subpagetest: scanned 0
subpagetest: Block 31 is bad
subpagetest: scanned 256
subpagetest: scanned 512
subpagetest: scanned 768
subpagetest: scanned 1024
subpagetest: scanned 1280
subpagetest: scanned 1536
subpagetest: Block 1579 is bad
subpagetest: scanned 1792
subpagetest: scanned 2048
subpagetest: scanned 2304
subpagetest: scanned 2560
subpagetest: scanned 2816
subpagetest: Block 2921 is bad
subpagetest: Block 2931 is bad
subpagetest: scanned 3072
subpagetest: scanned 3328
subpagetest: Block 3359 is bad
subpagetest: scanned 3584
subpagetest: scanned 3840
subpagetest: scanned 4096
subpagetest: erasing
subpagetest: erased 0
subpagetest: erased 256
subpagetest: erased 512
subpagetest: erased 768
subpagetest: erased 1024
subpagetest: erased 1280
subpagetest: erased 1536
subpagetest: erased 1792
subpagetest: erased 2048
subpagetest: erased 2304
subpagetest: erased 2560
subpagetest: erased 2816
subpagetest: erased 3072
subpagetest: erased 3328
subpagetest: erased 3584
subpagetest: erased 3840
subpagetest: erased 4096
subpagetest: writing
subpagetest: written 0
subpagetest: written 256
subpagetest: written 512
subpagetest: written 768
subpagetest: written 1024
subpagetest: written 1280
subpagetest: written 1536
subpagetest: written 1792
subpagetest: written 2048
subpagetest: written 2304
subpagetest: written 2560
subpagetest: written 2816
subpagetest: written 3072
subpagetest: written 3328
subpagetest: written 3584
subpagetest: written 3840
subpagetest: written 4096
subpagetest: verifying
subpagetest: verified 0
subpagetest: verified 256
subpagetest: verified 512
subpagetest: verified 768
subpagetest: verified 1024
subpagetest: verified 1280
subpagetest: verified 1536
subpagetest: verified 1792
subpagetest: verified 2048
subpagetest: verified 2304
subpagetest: verified 2560
subpagetest: verified 2816
subpagetest: verified 3072
subpagetest: verified 3328
subpagetest: verified 3584
subpagetest: verified 3840
subpagetest: verified 4096
subpagetest: erasing
subpagetest: erased 0
subpagetest: erased 256
subpagetest: erased 512
subpagetest: erased 768
subpagetest: erased 1024
subpagetest: erased 1280
subpagetest: erased 1536
subpagetest: erased 1792
subpagetest: erased 2048
subpagetest: erased 2304
subpagetest: erased 2560
subpagetest: erased 2816
subpagetest: erased 3072
subpagetest: erased 3328
subpagetest: erased 3584
subpagetest: erased 3840
subpagetest: erased 4096
subpagetest: verifying 0xff
subpagetest: verified 0
subpagetest: verified 256
subpagetest: verified 512
subpagetest: verified 768
subpagetest: verified 1024
subpagetest: verified 1280
subpagetest: verified 1536
subpagetest: verified 1792
subpagetest: verified 2048
subpagetest: verified 2304
subpagetest: verified 2560
subpagetest: verified 2816
subpagetest: verified 3072
subpagetest: verified 3328
subpagetest: verified 3584
subpagetest: verified 3840
subpagetest: verified 4096
subpagetest: writing
subpagetest: written 0
subpagetest: written 256
subpagetest: written 512
subpagetest: written 768
subpagetest: written 1024
subpagetest: written 1280
subpagetest: written 1536
subpagetest: written 1792
subpagetest: written 2048
subpagetest: written 2304
subpagetest: written 2560
subpagetest: written 2816
subpagetest: written 3072
subpagetest: written 3328
subpagetest: written 3584
subpagetest: written 3840
subpagetest: written 4096
subpagetest: verifying
subpagetest: verified 0
subpagetest: error: verify failed at 0x006e9000
subpagetest: error: verify failed at 0x04f69000
subpagetest: verified 256
subpagetest: verified 512
subpagetest: verified 768
subpagetest: error: verify failed at 0x1e786000
subpagetest: error: verify failed at 0x1e78a000
subpagetest: verified 1024
subpagetest: error: verify failed at 0x260e9000
subpagetest: error: verify failed at 0x274b7000
subpagetest: verified 1280
subpagetest: error: verify failed at 0x2c769000
subpagetest: error: verify failed at 0x2e3db000
subpagetest: verified 1536
subpagetest: verified 1792
subpagetest: error: verify failed at 0x3abce000
subpagetest: error: verify failed at 0x3f51c000
subpagetest: verified 2048
subpagetest: verified 2304
subpagetest: error: verify failed at 0x4d224000
subpagetest: error: verify failed at 0x4fddb000
subpagetest: verified 2560
subpagetest: verified 2816
subpagetest: error: verify failed at 0x5a99c000
subpagetest: verified 3072
subpagetest: error: verify failed at 0x66adb000
subpagetest: verified 3328
subpagetest: error: verify failed at 0x6a0db000
subpagetest: verified 3584
subpagetest: error: verify failed at 0x71c0f000
subpagetest: error: verify failed at 0x71c15000
subpagetest: error: verify failed at 0x76937000
subpagetest: error: verify failed at 0x779db000
subpagetest: verified 3840
subpagetest: error: verify failed at 0x7dece000
subpagetest: error: verify failed at 0x7f269000
subpagetest: verified 4096
subpagetest: erasing
subpagetest: erased 0
subpagetest: erased 256
subpagetest: erased 512
subpagetest: erased 768
subpagetest: erased 1024
subpagetest: erased 1280
subpagetest: erased 1536
subpagetest: erased 1792
subpagetest: erased 2048
subpagetest: erased 2304
subpagetest: erased 2560
subpagetest: erased 2816
subpagetest: erased 3072
subpagetest: erased 3328
subpagetest: erased 3584
subpagetest: erased 3840
subpagetest: erased 4096
subpagetest: verifying 0xff
subpagetest: verified 0
subpagetest: verified 256
subpagetest: verified 512
subpagetest: verified 768
subpagetest: verified 1024
subpagetest: verified 1280
subpagetest: verified 1536
subpagetest: verified 1792
subpagetest: verified 2048
subpagetest: verified 2304
subpagetest: verified 2560
subpagetest: verified 2816
subpagetest: verified 3072
subpagetest: verified 3328
subpagetest: verified 3584
subpagetest: verified 3840
subpagetest: verified 4096
subpagetest: subpagetest finished with 21 errors
=========================================================================================
insmod: cannot insert '/lib/modules/2.6.25.6.atmel.1/kernel/arch/avr32/boards/wpr-rec3/nand_test/subpagetest.ko': Operation not permitted
modprobe: failed to load module subpagetest
Artem Bityutskiy Dec. 5, 2008, 10:58 a.m. UTC | #8
On Fri, 2008-12-05 at 11:46 +0100, Eirik Aanonsen wrote:
> It was correct that there was some faulty implementation of the oob/ecc handling.
> This is ran on a SLC Samsung NAND flash(2GByte).

It is weird that you do not have sub-pages if this is SLC. You waste
4KiB per eraseblock because of this. Here you may find what is sub-page:
http://www.linux-mtd.infradead.org/faq/ubi.html#L_find_min_io_size

If your flash allows sub-pages, I'd recommend to support them.

> Any hint to what to look into next would be great.

No, not really. You should dig your NAND driver.
diff mbox

Patch

diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_nand.c
index c0fa9c9..64b3be1 100644
--- a/drivers/mtd/nand/pxa3xx_nand.c
+++ b/drivers/mtd/nand/pxa3xx_nand.c
@@ -20,8 +20,8 @@ 
 #include <linux/mtd/partitions.h>
 #include <linux/io.h>
 #include <linux/irq.h>
-#include <asm/dma.h>

+#include <mach/dma.h>
 #include <mach/pxa-regs.h>
 #include <mach/pxa3xx_nand.h>

diff --git a/drivers/net/smc911x.h b/drivers/net/smc911x.h
index cc7d85b..870b4c3 100644
--- a/drivers/net/smc911x.h
+++ b/drivers/net/smc911x.h
@@ -200,6 +200,9 @@  static inline void SMC_outsl(struct smc911x_local
*lp, int reg,


 #ifdef SMC_USE_PXA_DMA
+
+#include <mach/dma.h>
+
 /*
  * Define the request and free functions
  * These are unfortunately architecture specific as no generic allocation
diff --git a/sound/arm/pxa2xx-pcm.h b/sound/arm/pxa2xx-pcm.h
index 5c4a4d3..65f86b5 100644
--- a/sound/arm/pxa2xx-pcm.h
+++ b/sound/arm/pxa2xx-pcm.h
@@ -9,7 +9,7 @@ 
  * it under the terms of the GNU General Public License version 2 as
  * published by the Free Software Foundation.
  */
-#include <asm/dma.h>
+#include <mach/dma.h>

 struct pxa2xx_runtime_data {
 	int dma_ch;