install_linux_fw: reset bootcount before resetting target
During firmware install, the target may be reset several times. We don't want the bootcount to count these as boot attempts. Signed-off-by: Hector Palacios <hector.palacios@digi.com>
This commit is contained in:
parent
50554f257c
commit
a791bb4463
|
|
@ -251,8 +251,10 @@ setenv bootcmd "
|
|||
echo \"\";
|
||||
echo \"\";
|
||||
sleep 1;
|
||||
bootcount reset;
|
||||
reset;
|
||||
"
|
||||
|
||||
bootcount reset
|
||||
saveenv
|
||||
reset
|
||||
|
|
|
|||
|
|
@ -252,8 +252,10 @@ setenv bootcmd "
|
|||
echo \"\";
|
||||
echo \"\";
|
||||
sleep 1;
|
||||
bootcount reset;
|
||||
reset;
|
||||
"
|
||||
|
||||
bootcount reset
|
||||
saveenv
|
||||
reset
|
||||
|
|
|
|||
|
|
@ -221,12 +221,14 @@ fi
|
|||
# Set 'bootcmd' for the second part of the script that will
|
||||
# - Reset environment to defaults
|
||||
# - Keep the 'dualboot' status
|
||||
# - Reset the bootcount
|
||||
# - Save the environment
|
||||
# - Update the 'linux' partition(s)
|
||||
# - Update the 'rootfs' partition(s)
|
||||
uuu fb: ucmd setenv bootcmd "
|
||||
env default -a;
|
||||
setenv dualboot \${dualboot};
|
||||
bootcount reset;
|
||||
saveenv;
|
||||
saveenv;
|
||||
echo \"\";
|
||||
|
|
@ -277,6 +279,7 @@ else
|
|||
fi
|
||||
|
||||
# Reset the target
|
||||
uuu fb: ucmd bootcount reset
|
||||
uuu fb: acmd reset
|
||||
|
||||
echo "\033[32m"
|
||||
|
|
|
|||
Loading…
Reference in New Issue