[OpenWrt-Devel] [PATCH] kernel: mtd-partial_eraseblock_erase
Maciej Skrzypek
maciej.skrzypek at flytronic.pl
Fri Jun 20 11:19:20 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
Index:
target/linux/generic/patches-3.3/479-mtd-partial_eraseblock_erase.patch
===================================================================
---
target/linux/generic/patches-3.3/479-mtd-partial_eraseblock_erase.patch
(revision 0)
+++
target/linux/generic/patches-3.3/479-mtd-partial_eraseblock_erase.patch
(working copy)
@@ -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