UBI/UBIFS: debugging help

Renaud Barbier renaud.barbier at ge.com
Fri Mar 13 11:11:38 PDT 2015


My platform is based on a ARM Cortex-A9 and boots barebox from a spi-nor.

I have tested UBI/UBIFS from Linux on this platform with no issue after
disabling 4KB support for the spi nor I am using.

However, I got problem on the boot loader side. UBI/UBIFS has been
ported by the barebox community from Linux and I used it successfully
on a previous project on a PPC platform.

On the ARM platform I can ubiattach, mount the mtd partition and copy a
small file (~65KB spanning two sectors). The issue comes when I copy out
a larger file (512KB) out. It fails to copy the whole file.

At the point of failure, ubifs_tnc_locate fails resulting in the
function read_block to return -ENOENT.

Debugging shows that in the function ubifs_search_zbranch no keys match
is found prior to the failure.

I know this list is called linux-mtd but I was hoping that somebody
could give me a pointer on where to look next. I am currently going
through git logs and mailing list.

I am pretty confident the boot loader spi driver is working properly as
raw write-read-compare have not failed.

cheers.











More information about the linux-mtd mailing list