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>
Tue, 31 Dec 2024 16:44:10 +0000 (17:44 +0100)
commit5b3044e8e3900956d0813f2d600650917e19ec84
tree48675d6830d141a2cdace95f8daa5d106cc50df2
parentf96b3383d51f544861b8da4d7192594497d3f0b8
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
Signed-off-by: Robert Marko <robimarko@gmail.com>
package/system/mtd/src/linksys_bootcount.c