mtd: fix resetbc on nand w/ min I/O size > 2048
authorQiyuan Zhang <zhang.github@outlook.com>
Fri, 2 Aug 2024 14:57:51 +0000 (10:57 -0400)
committerRobert Marko <robimarko@gmail.com>
Sun, 16 Feb 2025 12:03:23 +0000 (13:03 +0100)
commitab9f1011ac3f78b5b8ee8ac959aa270c8d4b86f0
tree0197ee6750ebb05a96deed4748ec7968f4799090
parentb02cdced3f2016f8e13794d39242f3e2b45827ad
mtd: fix resetbc on nand w/ min I/O size > 2048

Fix a bug in linksys_bootcount.c that resetbc  won't work on nand
with min I/O size> 2048.

Check the boot-log entry's intergrity with checksum.

Signed-off-by: Qiyuan Zhang <zhang.github@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/16070
(cherry picked from commit 62da99e6d506f3517f50c1efd61e1911df507ae3)
Signed-off-by: Rafal Boni <rafal.boni@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17889
Signed-off-by: Robert Marko <robimarko@gmail.com>
package/system/mtd/src/linksys_bootcount.c