public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Boris Brezillon <boris.brezillon@bootlin.com>
To: Yannick Lanz <yannick.lanz@wifx.net>
Cc: "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>
Subject: Re: bad block table erased by u-boot's ubi part command
Date: Fri, 26 Oct 2018 22:56:51 +0200	[thread overview]
Message-ID: <20181026225651.24be0d06@bbrezillon> (raw)
In-Reply-To: <A5CEBF07E04C514A9C56312C6027F32186A8C57B@SWIFXDC01.lan.wifx.net>

On Fri, 26 Oct 2018 16:21:37 +0000
Yannick Lanz <yannick.lanz@wifx.net> wrote:


> 
> If a mount the UBI partition in U-Boot, then the bad block table is never found 
> in the kernel and always recreated. The other strange point is that U-Boot 
> doesn't find the 4 bad block found by the kernel.
> 
> If I reboot without mounting the UBI partition in U-Boot, then the bad block 
> table is directly discovered by the kernel following its creation on latest boot.
> It seems that U-Boot is destroying the bad block table.
> 
> Do you have any idea what's happening ?

Probably because u-boot does not have on-flash-bbt enabled, so it's
assuming the blocks reserved by Linux for the bad block table are free,
and when UBI is attached to the last partition it picks the last 4
blocks and writes its metadata on it.

  reply	other threads:[~2018-10-26 20:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-26 16:21 bad block table erased by u-boot's ubi part command Yannick Lanz
2018-10-26 20:56 ` Boris Brezillon [this message]
2018-10-27 11:13   ` Yannick Lanz

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=20181026225651.24be0d06@bbrezillon \
    --to=boris.brezillon@bootlin.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=yannick.lanz@wifx.net \
    /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