29 Jun 2012 16:13
Re: ubifs_iget: failed to read inode 1
Artem Bityutskiy <dedekind1 <at> gmail.com>
2012-06-29 14:13:34 GMT
2012-06-29 14:13:34 GMT
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
______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/
RSS Feed