Re: [U-Boot] [PATCH v1 1/5] bootcount: store bootcount var in environment

2013-10-24 Thread Vaibhav Bedia
Hi Heiko, On Tue, Oct 22, 2013 at 6:25 AM, Heiko Schocher wrote: > If no softreset save registers are found on the hardware > "bootcount" is stored in the environment. To prevent a > saveenv on all reboots, the environment variable > "upgrade_available" is introduced. If "upgrade_available" is >

[U-Boot] [PATCH v1 1/5] bootcount: store bootcount var in environment

2013-10-22 Thread Heiko Schocher
If no softreset save registers are found on the hardware "bootcount" is stored in the environment. To prevent a saveenv on all reboots, the environment variable "upgrade_available" is introduced. If "upgrade_available" is 0, "bootcount" is always 0 therefore no need to save the environment on u-boo