From: Richard Weinberger <richard@nod.at>
To: Mathieu Malaterre <malat@debian.org>
Cc: MIPS Creator CI20 Development
<mips-creator-ci20-dev@googlegroups.com>,
linux-mtd@lists.infradead.org, boris.brezillon@bootlin.com
Subject: Re: ubi: refuse attaching mtd3 - MLC NAND is not supported
Date: Thu, 24 May 2018 21:42:11 +0200 [thread overview]
Message-ID: <2323678.8uickzfJaD@blindfold> (raw)
In-Reply-To: <CA+7wUsy+2AWtty+Eow3kkw5Y9XdTZFnKHp05m46zuv9HPZngrA@mail.gmail.com>
Mathieu,
Am Donnerstag, 24. Mai 2018, 21:28:12 CEST schrieb Mathieu Malaterre:
> Hi Richard,
>
> I cannot boot my MIPS Creator CI20 system anymore. Doing a git bisect leads to:
>
> $ git bisect bad
> b5094b7f135be34630e3ea8a98fa215715d0f29d is the first bad commit
> commit b5094b7f135be34630e3ea8a98fa215715d0f29d
> Author: Richard Weinberger <richard@nod.at>
> Date: Sat Mar 3 11:45:54 2018 +0100
>
> ubi: Reject MLC NAND
>
> While UBI and UBIFS seem to work at first sight with MLC NAND, you will
> most likely lose all your data upon a power-cut or due to read/write
> disturb.
> In order to protect users from bad surprises, refuse to attach to MLC
> NAND.
>
> Cc: stable@vger.kernel.org
> Signed-off-by: Richard Weinberger <richard@nod.at>
> Acked-by: Boris Brezillon <boris.brezillon@bootlin.com>
> Acked-by: Artem Bityutskiy <dedekind1@gmail.com>
>
> :040000 040000 715242e81a7386bbc9ec5b10d0eb5138cd41ff3f
> a2c894baaef840fc9dce4e87f3370a66731fc770 M drivers
>
>
> On my system here is what I can see (screen + ttyUSB):
>
> ## Booting kernel from Legacy Image at 88000000 ...
> Image Name: Linux-4.16.0+
> Image Type: MIPS Linux Kernel Image (uncompressed)
> Data Size: 5890340 Bytes = 5.6 MiB
> Load Address: 80010000
> Entry Point: 80401550
> Verifying Checksum ... OK
> Loading Kernel Image ... OK
>
> Starting kernel [ 0.155993] cacheinfo: Failed to find cpu0 device node
> [ 0.238335] ubi: refuse attaching mtd3 - MLC NAND is not supported
> [ 0.244827] UBI error: cannot attach mtd3
> [ 0.248838] ubi: refuse attaching mtd4 - MLC NAND is not supported
> [ 0.255061] UBI error: cannot attach mtd4
> [ 0.259413] Kernel panic - not syncing: VFS: Unable to mount root
> fs on unknown-block(0,0)
> [ 0.267679] Rebooting in 10 seconds..
>
>
> This has been working great so far. If I understand correctly your
> commit, this is a sort of safe code path to avoid corrupted data upon
> power-cut. Is there a way for me to continue booting my system as-is
> (other than a git revert b5094b7f135be).
No. MLC is simply not supported and not safe to use.
With that commit we reflect the state of the code and stop giving wrong promises.
I can hardly believe that it has been working great so far, did you
ever do power-cut tests?
Or are there other mechanisms on your board that make MLC usable by UBI?
For example SLC-emulation.
Thanks,
//richard
next prev parent reply other threads:[~2018-05-24 19:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-24 19:28 ubi: refuse attaching mtd3 - MLC NAND is not supported Mathieu Malaterre
2018-05-24 19:42 ` Richard Weinberger [this message]
2018-05-25 10:12 ` Mathieu Malaterre
2018-05-28 20:15 ` 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=2323678.8uickzfJaD@blindfold \
--to=richard@nod.at \
--cc=boris.brezillon@bootlin.com \
--cc=linux-mtd@lists.infradead.org \
--cc=malat@debian.org \
--cc=mips-creator-ci20-dev@googlegroups.com \
/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