linux-sunxi / u-boot-sunxi

Allwinner A1x native u-boot support
https://github.com/linux-sunxi/u-boot-sunxi/wiki
316 stars 333 forks source link

bootcount on A20 #70

Closed davidjrme closed 10 years ago

davidjrme commented 10 years ago

Hello, I'm trying to add the boot count limit functionality on an A20. I added this two lines in sunxi-common.h:

#define CONFIG_BOOTCOUNT_LIMIT
#define CONFIG_BOOTCOUNT_ENV

and I set the bootlimit variable. On boot I can see bootcount and bootlimit variables but if the linux boot fail, the bootcount isn't incremented. Did you have an idea? What did I do wrong or miss?

hno commented 10 years ago

fre 2014-08-29 klockan 07:54 -0700 skrev davidjrme:

I'm trying to add the boot count limit functionality on an A20. I added this two lines in sunxi-common.h:

define CONFIG_BOOTCOUNT_LIMIT

define CONFIG_BOOTCOUNT_ENV

and I set the bootlimit variable. On boot I can see bootcount and bootlimit variables but if the linux boot fail, the bootcount isn't incremented. Did you have an idea? What did I do wrong or miss?

Have you set upgrade_available? (see README for CONFIG_BOOTCOUNT_ENV)

Regards Henrik

davidjrme commented 10 years ago

Thanks to you! This works perfectly! I had forgot this variable...