As discussed at Add support for Linksys EA6350 v3, there was some "strangeness" in how the boot-counter reset was implemented. As a result, I've hopefully improved the script, adding in logging and managing the possibility that the boot is from NOR (as opposed to the more typical NAND). However, I don't have any of the potentially impacted devices.
Edit: The reason behind this is that the port of
mtd resetbc to the ipq40xx platform hard-set the record size to 16, which works for the EA6350v3, but fails on the NAND-based EA8300 (under development). The code is in
mtd and is by platform, not by device.
If you have time and can test out the patch at https://patchwork.ozlabs.org/patch/1060597/, I'd definitely appreciate it. Impacted devices include:
- EA8350v3 (NOR boot)
You should be able to verify that the boot count is properly increasing and being reset by looking at the partition used, typically
s_env. Once you know the partition, something like
hexdump -C /dev/mtd9ro
should show the boot-count records, typically being set by the boot loader to
01 and then being reset by the running OS to
00 after successful boot. (See, for an example, the post 286, direct linked by Add support for Linksys EA6350 v3 )
You should also see a log message near the end of the startup sequence, similar to
Thu Mar 21 11:57:01 2019 daemon.notice procd: /etc/rc.d/S99bootcount: Boot count reset to zero.
(For other devices, the script name may be different.)