AnsweredAssumed Answered

Can UBIFS work on SPI Nor Flash with DMA

Question asked by Ivy Liu on Sep 14, 2015
Latest reply on Sep 29, 2015 by Ivy Liu

Hi All,

 

I am using customized IMX6 Solo board.

I want to use UBIFS on SPI Nor Flash.

But everytime when I attach UBI after detaching it, it always return error, please see logs below.

I heard there is some problem about DMA when using UBIFS on SPI NOR Flash.

Does anyone know can UBIFS work on SPI Nor Flash with DMA?

 

root@imx6solo:/# ubidetach -m 5

[ 1030.761164] UBI: detaching mtd5 from ubi0

[ 1030.768306] UBI: mtd5 is detached from ubi0

root@imx6solo:/# ubiattach -m 5

[ 1037.230304] UBI: attaching mtd5 to ubi0

[ 1037.829189] UBI: scanning is finished

[ 1037.868164] UBI error: vtbl_check: bad CRC at record 23: 0x18897488, not 0x000000

[ 1037.884440] Volume table record 23 dump:

[ 1037.888372]  reserved_pebs   0

[ 1037.891430]  alignment       0

[ 1037.913653]  data_pad        0

[ 1037.916719]  vol_type        0

[ 1037.919778]  upd_marker      0

[ 1037.922835]  name_len        0

[ 1037.949252]  name            NULL

[ 1037.952629] UBI error: vtbl_check: bad CRC at record 23: 0x18897488, not 0x000000

[ 1037.976712] Volume table record 23 dump:

[ 1037.980645]  reserved_pebs   0

[ 1037.983891]  alignment       0

[ 1037.986953]  data_pad        0

[ 1037.990011]  vol_type        0

[ 1037.993069]  upd_marker      0

[ 1037.996401]  name_len        0

[ 1037.999462]  name            NULL

[ 1038.002783] UBI error: process_lvol: both volume tables are corrupted

[ 1038.010780] UBI error: ubi_attach_mtd_dev: failed to attach mtd5, error -22

ubiattach: error!: cannot attach mtd5

           error 22 (Invalid argument)

 

Thanks and Best Regards,

Ivy

Outcomes