AnsweredAssumed Answered

UBIFS on QSPI NOR Flash Corruption

Question asked by Justin Jonas on May 23, 2017
Latest reply on Dec 11, 2017 by Jan Modaal

Hi everyone,

I am trying to use an UBIFS on the QSPI with an LS1012a processor. I run the following commands to create the ubifs:

ubiformat /dev/mtd5
ubiattach -p /dev/mtd5

ubimkvol /dev/ubi0 -N ffs -m -a 4

mount -t ubifs -o sync ubi0:ffs /mnt/ffs/

 

Everything seems to work fine the first time I mount it. If I copy some files into the mounted partition, unmount it, and then mount the same partition again I get the following UBIFS errors:

 

# mount -t ubifs -o sync ubi0:ffs /mnt/ffs/

[ 272.570246] UBIFS error (ubi0:0 pid 872): ubifs_check_node: bad CRC: calculated 0x2a28b98e, read 0xdf1e5343

[ 272.582954] UBIFS error (ubi0:0 pid 872): ubifs_check_node: bad node at LEB 10:13280

[ 272.590790] magic 0x6101831

[ 272.594455] crc 0xdf1e5343

[ 272.598231] node_type 9 (indexing node)

[ 272.602591] group_type 0 (no node group)

[ 272.606965] sqnum 754

[ 272.610105] len 188

[ 272.613247] child_cnt 8

[ 272.616214] level 2

[ 272.619190] Branches:

[ 272.621553] 0: LEB 10:8752 len 108 key (1, inode)

[ 272.626352] 1: LEB 10:1744 len 128 key (65, data, 21)

[ 272.631510] 2: LEB 10:3408 len 188 key (65, data, 61)

[ 272.636668] 3: LEB 10:9056 len 188 key (65, data, 125)

[ 272.641902] 4: LEB 10:6864 len 188 key (66, data, 29)

[ 272.647060] 5: LEB 10:9632 len 188 key (66, data, 93)

[ 272.652206] 6: LEB 10:11360 len 188 key (0, inode)

[ 272.657828] Call trace:

[ 272.660428] UBIFS error (ubi0:0 pid 872): ubifs_read_node: expected node type 9

[ 272.668528] UBIFS error (ubi0:0 pid 872): ubifs_iget: failed to read inode 1, error -117

mount: mount ubi0:ffs on /mnt/ffs failed: Structure needs cleaning

 

Does anyone have any ideas on what the problem might be? I have tried to disable dma and there is no change in the behavior.

Thank you for you help!

Outcomes