ubifs_iget: failed to read inode 1

Artem Bityutskiy dedekind1 at gmail.com
Fri Jun 29 10:13:34 EDT 2012


On Fri, 2012-06-29 at 10:48 +0200, Koen Beel wrote:
> Hi all,
> 
> We are using UBIFS on nand flash and experienced the following issue.
> During attach of the ubi device we get the message 'recovery needed'
> and 'recovery complete'. Finally the ubi_attach fails with the error
> "UBIFS error (pid 229): ubifs_iget: failed to read inode 1, error -2".
> 
> We are using and Freescale i.MX28 soc and using Micron NAND (see below).
> We are using kernel version 3.1.0.
> We have tested with latest mainline kernel but have not been able to
> trigger this issue.
> However, once the issue in the the flash, it can be reproduced at every boot.
> 
> Looking at the ubifs code, the error message traces back to:
> ubifs_iget: ubifs_tnc_lookup fails, goto out_ino, free mem and print error.
> ubifs_tnc_lookup
> ubifs_tnc_locate: returns -ENOENT (-2)
> ubifs_lookup_level0: the lookup fails

Something related to how you flash your image or to your driver. Run mtd
tests to start with. Try on nandsim. Try to mount empty flash, write
data, unmount, mount again.

-- 
Best Regards,
Artem Bityutskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20120629/e3c4a52f/attachment.sig>


More information about the linux-mtd mailing list