projects
/
openwrt
/
svn-archive
/
archive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ramips: update mtd patches to apply after changes from r43700
[openwrt/svn-archive/archive.git]
/
target
/
linux
/
ramips
/
patches-3.14
/
0101-mtd-add-rtn56u-support.patch
diff --git
a/target/linux/ramips/patches-3.14/0101-mtd-add-rtn56u-support.patch
b/target/linux/ramips/patches-3.14/0101-mtd-add-rtn56u-support.patch
index ec6ef462baeaccc4e9dce9354b0ecc5339401dee..03598807e5d60429eb1fb8499e835c7652ee6200 100644
(file)
--- a/
target/linux/ramips/patches-3.14/0101-mtd-add-rtn56u-support.patch
+++ b/
target/linux/ramips/patches-3.14/0101-mtd-add-rtn56u-support.patch
@@
-13,7
+13,7
@@
} hdr;
size_t len;
} hdr;
size_t len;
-@@ -807,7 +810,1
1
@@ static void split_uimage(struct mtd_info
+@@ -807,7 +810,1
0
@@ static void split_uimage(struct mtd_info
if (len != sizeof(hdr) || hdr.magic != cpu_to_be32(UBOOT_MAGIC))
return;
if (len != sizeof(hdr) || hdr.magic != cpu_to_be32(UBOOT_MAGIC))
return;
@@
-22,7
+22,6
@@
+ len = be32_to_cpu(hdr.kern_size);
+ else
+ len = be32_to_cpu(hdr.size) + 0x40;
+ len = be32_to_cpu(hdr.kern_size);
+ else
+ len = be32_to_cpu(hdr.size) + 0x40;
-+
- __mtd_add_partition(master, "rootfs", part->offset + len,
- part->mtd.size - len, false);
- }
+
+ if (config_enabled(CONFIG_MTD_SPLIT_UIMAGE_FW))
+ pr_err("Dedicated partitioner didn't split firmware partition, please fill a bug report!\n");