Hi Team,
I would like to know the bootcount for every boot.
Image used : Apalis-iMX6_LXDE-Image_2.8.6b
Please suggest!!
Hi Team,
I would like to know the bootcount for every boot.
Image used : Apalis-iMX6_LXDE-Image_2.8.6b
Please suggest!!
Hi @Surajeet
Greetings from Toradex community.
Could you please provide me some more information to understand your use case and requirement.
Please note this is not an out-of-the-box feature. so we need to check on it and it will be helpful if you can provide use case and exactly what you use bootcount for?
Hi @ashok.tx ,
I would like to capture the bootcount on the first boot after flashing. Please suggest on how to achieve this.
Regards
Surajeet
We had a similar issue and ended up in placing a “first_boot” file into the image which triggers a script that does some setup actions and deletes this indicator file at the end…
Hi @ashok.tx ,
We need the bootcount on the first boot after flashing to run a specific script.
Kindly please suggest how this can be achieved.
Regards
Surajeet
You can use U_Boot environment variable for counter or flag. And access it from Linux using fw_setenv / fw_printenv
Hi @Surajeet
As I mentioned earlier this feature is not enabled by default.so, you have to customize the u-boot and recompile it.Click here for reference.
Thank you…@ashok.tx
You are welcome.