mvebu: add support for the Linksys boot counter (backport of r46690)
authorImre Kaloz <[email protected]>
Wed, 19 Aug 2015 08:35:41 +0000 (08:35 +0000)
committerImre Kaloz <[email protected]>
Wed, 19 Aug 2015 08:35:41 +0000 (08:35 +0000)
commit6ec39bf296a27039b3ba5044b8f9f6e51e29d9e0
treed50eb70e9fbb78619a069820f3eb8427bcfa4acf
parent1542fb2df77fd2f818807b494a019333abb032c2
mvebu: add support for the Linksys boot counter (backport of r46690)

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 <[email protected]>
Signed-off-by: Rob Mosher <[email protected]>
Signed-off-by: Imre Kaloz <[email protected]>
SVN-Revision: 46691
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]