openwrt/target/linux/generic
Koen Vandeputte f1a2b5bbbc kernel: tolerate using UBI/UBIFS on MLC flash (FS#1830)
starting from upstream commit 577b4eb23811 ("ubi: Reject MLC NAND")
it is not allowed to use UBI and UBIFS on a MLC flavoured NAND flash chip. [1]

According to David Oberhollenzer [2]:

The real problem is that on MLC NAND, pages come in pairs.

Multiple voltage levels inside a single, physical memory cell are used to
encode more than one bit. Instead of just having pages that are twice as big,
the flash exposes them as two different pages. Those pages are usually not
ordered sequentially either, but according to a vendor/device specific
pairing scheme.

Within OpenWrt, devices utilizing this type of flash,
combined with UBI(fs) will be bricked when a user upgrades
from 17.01.4 to a newer version as the MLC will be refused.

As these devices are currently advertised as supported by OpenWrt,
we should at least maintain the original state during the lifecycle
of the current releases.

Support can be gracefully ended when a new release-branch is created.

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Acked-by: Hauke Mehrtens <hauke@hauke-m.e>

[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v4.14.77&id=577b4eb23811dfc8e38924dc476dbc866be74253
[2] https://lore.kernel.org/patchwork/patch/920344/
2018-10-29 10:56:59 +01:00
..
backport-4.9 kernel: bump 4.9 to 4.9.134 2018-10-19 10:00:48 +02:00
backport-4.14 kernel: bump 4.14 to 4.14.75 2018-10-10 14:46:25 +02:00
files generic: revert workarounds for AR8337 switch 2018-08-23 22:44:47 +02:00
hack-4.9 kernel: tolerate using UBI/UBIFS on MLC flash (FS#1830) 2018-10-29 10:56:59 +01:00
hack-4.14 kernel: tolerate using UBI/UBIFS on MLC flash (FS#1830) 2018-10-29 10:56:59 +01:00
image treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
other-files kernel: move initramfs's init script out of base-files 2017-04-04 14:06:40 +02:00
pending-4.9 kernel: bump 4.9 to 4.9.134 2018-10-19 10:00:48 +02:00
pending-4.14 kernel: bump 4.14 to 4.14.77 2018-10-19 10:00:48 +02:00
config-4.9 kernel: enable memory compaction 2018-10-09 14:36:00 +02:00
config-4.14 kernel: enable memory compaction 2018-10-09 14:36:00 +02:00
PATCHES