[OpenWrt-Devel] [PATCH] [Resend] [kernel] mtd-partial_eraseblock_erase
Maciej Skrzypek
maciej.skrzypek at flytronic.pl
Tue Jul 1 04:12:48 EDT 2014
mtd: allow partial block erase
This fixes error erasing partial mtd partition which does not start on
eraseblock boundary and allows using fconfig to configure redboot on
devices such as the Gateworks Cambria.
Maciej Skrzypek
Flytronic
Signed-off-by: Maciej Skrzypek <maciej.skrzypek at flytronic.pl>
---
479-mtd-partial_eraseblock_erase.patch | 10 ++++++++++
1 file changed, 10 insertions(+)
diff -uprN
trunk/target/linux/generic/patches-3.3/479-mtd-partial_eraseblock_erase.patch
trunk_modified/target/linux/generic/patches-3.3/479-mtd-partial_eraseblock_erase.patch
---
trunk/target/linux/generic/patches-3.3/479-mtd-partial_eraseblock_erase.patch
1970-01-01 01:00:00.000000000 +0100
+++
trunk_modified/target/linux/generic/patches-3.3/479-mtd-partial_eraseblock_erase.patch
2014-06-20 16:16:53.000000000 +0200
@@ -0,0 +1,10 @@
+--- a/drivers/mtd/mtdpart.c
++++ b/drivers/mtd/mtdpart.c
+@@ -274,6 +274,7 @@ static int part_erase(struct mtd_info *m
+ part->master->erasesize,
+ &readlen, instr->erase_buf);
+
++ instr->len += instr->erase_buf_ofs;
+ instr->partial_start = true;
+ } else {
+ mtd_ofs = part->offset + part->mtd.size;
--
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list