mvebu: add support for the Linksys boot counter
authorImre Kaloz <kaloz@openwrt.org>
Wed, 19 Aug 2015 08:31:23 +0000 (08:31 +0000)
committerImre Kaloz <kaloz@openwrt.org>
Wed, 19 Aug 2015 08:31:23 +0000 (08:31 +0000)
commit20fac016e432cf384289b3fefadf3f4909924faf
tree2eac7cea31b2af956fe1a2cb5b2624697efe30e8
parent996399ba08e4a3c372e4029f0d76a495c7f46f7b
mvebu: add support for the Linksys boot counter

The u-boot boot counter was never reset after a successful boot,
which sometimes could make some variables become out of sync.
This patch adds support for the boot counter and enables
auto_recovery unconditionally.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
Signed-off-by: Rob Mosher <nyt-openwrt@countercultured.net>
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
SVN-Revision: 46690
package/system/mtd/Makefile
package/system/mtd/src/Makefile
package/system/mtd/src/linksys_bootcount.c [new file with mode: 0644]
package/system/mtd/src/mtd.c
package/system/mtd/src/mtd.h
target/linux/mvebu/base-files/etc/init.d/linksys_recovery [new file with mode: 0755]
target/linux/mvebu/base-files/etc/init.d/u-boot_env [deleted file]