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 \"\";
|
||||||
echo \"\";
|
echo \"\";
|
||||||
sleep 1;
|
sleep 1;
|
||||||
|
bootcount reset;
|
||||||
reset;
|
reset;
|
||||||
"
|
"
|
||||||
|
|
||||||
|
bootcount reset
|
||||||
saveenv
|
saveenv
|
||||||
reset
|
reset
|
||||||
|
|
|
||||||
|
|
@ -252,8 +252,10 @@ setenv bootcmd "
|
||||||
echo \"\";
|
echo \"\";
|
||||||
echo \"\";
|
echo \"\";
|
||||||
sleep 1;
|
sleep 1;
|
||||||
|
bootcount reset;
|
||||||
reset;
|
reset;
|
||||||
"
|
"
|
||||||
|
|
||||||
|
bootcount reset
|
||||||
saveenv
|
saveenv
|
||||||
reset
|
reset
|
||||||
|
|
|
||||||
|
|
@ -221,12 +221,14 @@ fi
|
||||||
# Set 'bootcmd' for the second part of the script that will
|
# Set 'bootcmd' for the second part of the script that will
|
||||||
# - Reset environment to defaults
|
# - Reset environment to defaults
|
||||||
# - Keep the 'dualboot' status
|
# - Keep the 'dualboot' status
|
||||||
|
# - Reset the bootcount
|
||||||
# - Save the environment
|
# - Save the environment
|
||||||
# - Update the 'linux' partition(s)
|
# - Update the 'linux' partition(s)
|
||||||
# - Update the 'rootfs' partition(s)
|
# - Update the 'rootfs' partition(s)
|
||||||
uuu fb: ucmd setenv bootcmd "
|
uuu fb: ucmd setenv bootcmd "
|
||||||
env default -a;
|
env default -a;
|
||||||
setenv dualboot \${dualboot};
|
setenv dualboot \${dualboot};
|
||||||
|
bootcount reset;
|
||||||
saveenv;
|
saveenv;
|
||||||
saveenv;
|
saveenv;
|
||||||
echo \"\";
|
echo \"\";
|
||||||
|
|
@ -277,6 +279,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Reset the target
|
# Reset the target
|
||||||
|
uuu fb: ucmd bootcount reset
|
||||||
uuu fb: acmd reset
|
uuu fb: acmd reset
|
||||||
|
|
||||||
echo "\033[32m"
|
echo "\033[32m"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue