Skip to contentSkip to conversation

squashfs: issue mounting with dma enabled

DISCUSSION Angelo Dureghello 1 participant 1 message May 27, 2018 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Dear all,

i am testing a new dma driver, named mcf-edma, for the ColdFire mcf5441x family of SoC's. The driver is still by the way under approval on dmaengine mailing list.

https://www.spinics.net/lists/dmaengine/msg15416.html

Mainly, i am testing it with fsl-dspi.c, reading by an spi-nor flash.

With DMA enabled, mounting a simple 200KB squashfs i get:

/ # mount /dev/mtdblock2 squashfs

[ 1186.310000] SQUASHFS error: squashfs_read_data failed to read block 0x42e7d
[ 1186.310000] SQUASHFS error: Unable to read metadata cache entry [42e7d]
[ 1186.320000] SQUASHFS error: Unable to read inode 0x17dc

mount: mounting /dev/mtdblock2 on squashfs failed: Input/output error

Quoted 1 line

From some traces,

spi frame lengths seems fixed to 517, and the read length is always 517.

While, with same setup (DMA enabled) if i read a predefined pattern by "hexdump -C -n4096 /dev/mtdblock2" i read perfectly the written pattern.

Every help is appreciated,

Regards,
Angelo Dureghello