aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/patches-3.14/407-mtd-old-firmware-uimage-splitter.patch
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2014-12-14 00:35:03 +0000
committerRafał Miłecki <zajec5@gmail.com>2014-12-14 00:35:03 +0000
commitb1bfed548c5365fe99436a5fd1b9a5144e8acf09 (patch)
tree4dba77855cb599b04357d051188bb082548ad95a /target/linux/generic/patches-3.14/407-mtd-old-firmware-uimage-splitter.patch
parentd54e759611030967000d0845cde8ec6bf8da20a7 (diff)
downloadupstream-b1bfed548c5365fe99436a5fd1b9a5144e8acf09.tar.gz
upstream-b1bfed548c5365fe99436a5fd1b9a5144e8acf09.tar.bz2
upstream-b1bfed548c5365fe99436a5fd1b9a5144e8acf09.zip
kernel: warn users to use the new (dedicated) firmware splitter
Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 43700
Diffstat (limited to 'target/linux/generic/patches-3.14/407-mtd-old-firmware-uimage-splitter.patch')
-rw-r--r--target/linux/generic/patches-3.14/407-mtd-old-firmware-uimage-splitter.patch9
1 files changed, 7 insertions, 2 deletions
diff --git a/target/linux/generic/patches-3.14/407-mtd-old-firmware-uimage-splitter.patch b/target/linux/generic/patches-3.14/407-mtd-old-firmware-uimage-splitter.patch
index 9d8d975dde..3f7e910e72 100644
--- a/target/linux/generic/patches-3.14/407-mtd-old-firmware-uimage-splitter.patch
+++ b/target/linux/generic/patches-3.14/407-mtd-old-firmware-uimage-splitter.patch
@@ -14,7 +14,7 @@
config MTD_SPLIT
--- a/drivers/mtd/mtdpart.c
+++ b/drivers/mtd/mtdpart.c
-@@ -668,6 +668,32 @@ mtd_pad_erasesize(struct mtd_info *mtd,
+@@ -668,6 +668,37 @@ mtd_pad_erasesize(struct mtd_info *mtd,
return len;
}
@@ -40,6 +40,11 @@
+ if (len + master->erasesize > part->mtd.size)
+ return;
+
++ if (config_enabled(CONFIG_MTD_SPLIT_UIMAGE_FW))
++ pr_err("Dedicated partitioner didn't split firmware partition, please fill a bug report!\n");
++ else
++ pr_warn("Support for built-in firmware splitter will be removed, please use CONFIG_MTD_SPLIT_UIMAGE_FW\n");
++
+ __mtd_add_partition(master, "rootfs", part->offset + len,
+ part->mtd.size - len, false);
+}
@@ -47,7 +52,7 @@
#ifdef CONFIG_MTD_SPLIT_FIRMWARE_NAME
#define SPLIT_FIRMWARE_NAME CONFIG_MTD_SPLIT_FIRMWARE_NAME
#else
-@@ -676,7 +702,14 @@ mtd_pad_erasesize(struct mtd_info *mtd,
+@@ -676,7 +707,14 @@ mtd_pad_erasesize(struct mtd_info *mtd,
static void split_firmware(struct mtd_info *master, struct mtd_part *part)
{