public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Richard Weinberger <richard@sigma-star.at>
To: Timo Ketola <timo@exertus.fi>
Cc: Richard Weinberger <richard.weinberger@gmail.com>,
	linux-mtd@lists.infradead.org
Subject: Re: UBI assert failed in ubi_wl_init
Date: Thu, 22 Mar 2018 16:05:52 +0100	[thread overview]
Message-ID: <7511413.bof9RI5LLK@blindfold> (raw)
In-Reply-To: <f18eea07-c2c5-cb61-e8d9-73b0b654645c@exertus.fi>

Timo,

Am Donnerstag, 22. März 2018, 14:57:57 CET schrieb Timo Ketola:
> On 21.03.2018 00:02, Richard Weinberger wrote:
> > Timo,
> > 
> > On Fri, Mar 16, 2018 at 2:34 PM, Timo Ketola <timo@exertus.fi> wrote:
> >> On 18.02.2018 22:31, Richard Weinberger wrote:
> >>> Okay. That's a bit odd. Maybe my analysis is wrong. Can you try the
> >>> following, replay the image to your NAND and attach again.
> >>> Then you should get the same UBI assert a second time.
> >> 
> >> Of course I can but what would be the difference to simple rebooting? I
> >> get the assertion failure on every boot from the second one onwards.
> >> Before I commit to that one, let's look what I found recently.
> >> 
> >> I already tried the replay but bumped into ECC errors. Due to that and
> >> other things I switched the kernel to Freescale IMX 4.9.74 with Boundary
> >> fixes. I reduced the size of the user partition to 1800M and got rid of
> >> the 'could not get any free erase block' and 'Unable to write new
> >> fastmap' errors. The assertion failures from the second boot onwards
> >> remained.
> >> 
> >> I wondered why I'm not seeing the same issue with my smaller 64M system
> >> mtd. Then I reduced the user partition to 48M and the mtd to 64M and the
> >> issue vanished. Then I kept the partition at 48M but restored the mtd
> >> size to 1800M and the issue returned. If I make the mtd size 0x4e680000
> >> or smaller there is no issue. If I make it 0x4e6a0000 or larger the
> >> issue is there. Every time I erased the NAND and burned a fresh image.
> >> 
> >> What do you want me to do next?
> > 
> > Did you verify the image or not? :)
> > I asked you do to so because the image you sent me does not make sense
> > and I'm not sure whether I can trust it.
> > Hence I asked for a double-check.
> 
> Ok, sorry.
> 
> Here is a dump after the second boot:
> 
> https://drive.google.com/open?id=1oa2lV_OB_tC-SX_c4jylnMXK6x1xhj2o
> 
> After I dumped it I erased the whole mtd, wrote the dump back there,
> dumped another dump and verified that it was identical with the first
> one. Then I rebooted and observed that the issue was still there just as
> before.

This image contains a Fastmap, but it is invalid.
The image has a length of 2079326208 bytes, your PEB size is 128KiB.
Therefore PEB count is 15864.
But the Fastmap references PEBs 15865, 15866 and 15867.

This explains the failing assert, Fastmap talks about PEBs which are unknown 
to UBI.

Can it be that your mtd partition layout is bad/broken?

Thanks,
//richard

-- 
sigma star gmbh - Eduard-Bodem-Gasse 6 - 6020 Innsbruck - Austria
ATU66964118 - FN 374287y

  reply	other threads:[~2018-03-22 15:04 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-01  6:44 UBI assert failed in ubi_wl_init Timo Ketola
2018-02-04 13:44 ` Richard Weinberger
2018-02-05  6:39   ` Timo Ketola
2018-02-12 22:49     ` Richard Weinberger
2018-02-13 11:58       ` Timo Ketola
2018-02-13 12:42         ` Richard Weinberger
2018-02-13 14:00           ` Timo Ketola
2018-02-18 20:31             ` Richard Weinberger
2018-03-16 13:34               ` Timo Ketola
2018-03-19  7:13                 ` Timo Ketola
2018-03-20 22:02                 ` Richard Weinberger
2018-03-22 13:57                   ` Timo Ketola
2018-03-22 15:05                     ` Richard Weinberger [this message]
2018-03-22 15:40                       ` Timo Ketola
2018-03-22 15:48                         ` Richard Weinberger
2018-03-23  9:26                           ` Timo Ketola
2018-03-23  9:35                             ` Richard Weinberger

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=7511413.bof9RI5LLK@blindfold \
    --to=richard@sigma-star.at \
    --cc=linux-mtd@lists.infradead.org \
    --cc=richard.weinberger@gmail.com \
    --cc=timo@exertus.fi \
    /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