public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Adrian Hunter <adrian.hunter@intel.com>
To: Bryan Evenson <bevenson@melinkcorp.com>
Cc: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>,
	"linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>
Subject: Re: at91: ubi: UBIFS error (pid 1): ubifs_iget: failed to read inode 1, error -2
Date: Thu, 21 Nov 2013 09:32:22 +0200	[thread overview]
Message-ID: <528DB706.3070901@intel.com> (raw)
In-Reply-To: <91586D499ADFD74FBCFB8425266A5DE40153BB2BE711@pluto.melinkcorp.local>

On 20/11/13 16:04, Bryan Evenson wrote:
> Adding appropriate UBIFS maintainers and the mtd mailing list to the thread as this deals with the UBIFS.
> 
>> -----Original Message-----
>> From: linux-arm-kernel [mailto:linux-arm-kernel-
>> bounces@lists.infradead.org] On Behalf Of Bryan Evenson
>> Sent: Tuesday, November 19, 2013 2:46 PM
>> To: linux-arm-kernel@lists.infradead.org
>> Subject: at91: ubi: UBIFS error (pid 1): ubifs_iget: failed to read
>> inode 1, error -2

Sounds the same as the error reported here:

	http://lists.infradead.org/pipermail/linux-mtd/2013-May/047083.html

>>
>> I am using an Atmel AT91SAM9G25 board with Micron's MT29F2G08ABAEAWP
>> NAND flash.  I am on Atmel's variant of the 3.6.9 kernel.
>> Specifically, I'm using https://github.com/linux4sam/linux-
>> at91/tree/linux-3.6.9-at91 commit
>> 5fe012d4aee98ef82df66e6763882c735902ed0f.   I have several boards in
>> which I see the error message shown in the message subject when the
>> device is reset due to a power cycle and the device fails to continue
>> to load the filesystem.  On one board I erased and re-wrote the
>> filesystem and the device is working just fine through multiple power
>> cycles.  My questions are:
>>
>> 1. Is this a known issue with the version of the kernel that I am
>> using?  I've searched this mailing list and the latest mainline kernel
>> commits, and I didn't see anything directly related to this issue.
>> 2. If so, is there a fix in a later kernel version?
>> 3. If not, what would be helpful in figuring out what is going on?  I
>> still have a bad device that I haven't touched the flash on.
>>
> 
> I took a deeper look at the commit history of the kernel I am using, and the last UBI/UBIFS patches to my kernel that I found in the mainline kernel are:
> 
> UBIFS: fix mounting problems after power cuts
> UBIFS: introduce categorized lprops counter
> 
> which were merged into the mainline kernel on 2012-11-15.  I don't see any UBI/UBIFS related patches since then that specifically mention the error I'm seeing.  However, there are a few notable bugs that have been fixed since then such as:
> 
> UBIFS: fix use of freed ubifs_orphan objects
> UBIFS: fix double free of ubifs_orphan objects
> ubifs: wait for page writeback to provide stable pages
> UBIFS: prepare to fix a horrid bug
> UBIFS: fix a horrid bug
> UBI: Fix PEB leak in wear_leveling_worker()
> 
> Could not having these fixes in place lead to the issue I'm seeing if there is a power cut?  The kernel I am using does not yet have support for fastmap and I am using the default UBI/UBIFS configuration (4096 wear-leveling, 2% reserved eraseblocks for bad eraseblock handling).  The boards on which I am having an issue are test boards that have been in use long enough that wear-leveling should be occurring.  And as previously noted, I still have at least one board in its broken state if the flash image would be useful for someone (or if someone knows what I should be looking for to figure out what happened).

If it is the same problem as above you need the first 2 at least.

> 
> Thanks,
> Bryan
> 
>> Thanks,
>> Bryan
>>
>>
>>
>>
>> _______________________________________________
>> linux-arm-kernel mailing list
>> linux-arm-kernel@lists.infradead.org
>> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
> 
> 

  reply	other threads:[~2013-11-21  7:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <91586D499ADFD74FBCFB8425266A5DE40153BB2BE545@pluto.melinkcorp.local>
2013-11-20 14:04 ` at91: ubi: UBIFS error (pid 1): ubifs_iget: failed to read inode 1, error -2 Bryan Evenson
2013-11-21  7:32   ` Adrian Hunter [this message]
2013-11-21 11:27     ` Bryan Evenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=528DB706.3070901@intel.com \
    --to=adrian.hunter@intel.com \
    --cc=artem.bityutskiy@linux.intel.com \
    --cc=bevenson@melinkcorp.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox