aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--target/linux/generic/hack-4.14/420-allow-ubi-mlc-support.patch13
-rw-r--r--target/linux/generic/hack-4.9/420-allow-ubi-mlc-support.patch13
2 files changed, 26 insertions, 0 deletions
diff --git a/target/linux/generic/hack-4.14/420-allow-ubi-mlc-support.patch b/target/linux/generic/hack-4.14/420-allow-ubi-mlc-support.patch
new file mode 100644
index 0000000000..595936f137
--- /dev/null
+++ b/target/linux/generic/hack-4.14/420-allow-ubi-mlc-support.patch
@@ -0,0 +1,13 @@
+--- a/drivers/mtd/ubi/build.c
++++ b/drivers/mtd/ubi/build.c
+@@ -851,9 +851,8 @@ int ubi_attach_mtd_dev(struct mtd_info *
+ * will die soon and you will lose all your data.
+ */
+ if (mtd->type == MTD_MLCNANDFLASH) {
+- pr_err("ubi: refuse attaching mtd%d - MLC NAND is not supported\n",
++ pr_warn("ubi: mtd%d has been identified as a MLC NAND!! - MLC is not supported by UBI and UBIFS and _WILL_ cause corruption in the near future!\n",
+ mtd->index);
+- return -EINVAL;
+ }
+
+ if (ubi_num == UBI_DEV_NUM_AUTO) {
diff --git a/target/linux/generic/hack-4.9/420-allow-ubi-mlc-support.patch b/target/linux/generic/hack-4.9/420-allow-ubi-mlc-support.patch
new file mode 100644
index 0000000000..552ae5da75
--- /dev/null
+++ b/target/linux/generic/hack-4.9/420-allow-ubi-mlc-support.patch
@@ -0,0 +1,13 @@
+--- a/drivers/mtd/ubi/build.c
++++ b/drivers/mtd/ubi/build.c
+@@ -900,9 +900,8 @@ int ubi_attach_mtd_dev(struct mtd_info *
+ * will die soon and you will lose all your data.
+ */
+ if (mtd->type == MTD_MLCNANDFLASH) {
+- pr_err("ubi: refuse attaching mtd%d - MLC NAND is not supported\n",
++ pr_warn("ubi: mtd%d has been identified as a MLC NAND!! - MLC is not supported by UBI and UBIFS and _WILL_ cause corruption in the near future!\n",
+ mtd->index);
+- return -EINVAL;
+ }
+
+ if (ubi_num == UBI_DEV_NUM_AUTO) {