u-boot-dey: [cosmetic] print countdown on wait message, and OK at the end

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-7333
This commit is contained in:
Hector Palacios 2021-05-18 13:25:33 +02:00
parent ce417f5b9e
commit 51ce92b982
6 changed files with 84 additions and 18 deletions

View File

@ -74,6 +74,7 @@ do
done
if [ ! "${NOWAIT}" = true ]; then
WAIT=10
echo "############################################################"
echo "# Linux firmware install through USB OTG #"
echo "############################################################"
@ -81,9 +82,15 @@ if [ ! "${NOWAIT}" = true ]; then
echo " This process will erase your NAND and will install a new"
echo " U-Boot and Linux firmware images on the NAND."
echo ""
echo " Press CTRL+C now if you wish to abort or wait 10 seconds"
echo " to continue."
sleep 10
echo " Press CTRL+C now if you wish to abort."
echo ""
while [ ${WAIT} -gt 0 ]; do
printf "\r Update process starts in %d " ${WAIT}
sleep 1
WAIT=$(( ${WAIT} - 1 ))
done
printf "\r \n"
echo " Starting update process"
fi
# Enable the redirect support to get u-boot variables values

View File

@ -74,6 +74,7 @@ do
done
if [ ! "${NOWAIT}" = true ]; then
WAIT=10
echo "############################################################"
echo "# Linux firmware install through USB OTG #"
echo "############################################################"
@ -81,9 +82,15 @@ if [ ! "${NOWAIT}" = true ]; then
echo " This process will erase your NAND and will install a new"
echo " U-Boot and Linux firmware images on the NAND."
echo ""
echo " Press CTRL+C now if you wish to abort or wait 10 seconds"
echo " to continue."
sleep 10
echo " Press CTRL+C now if you wish to abort."
echo ""
while [ ${WAIT} -gt 0 ]; do
printf "\r Update process starts in %d " ${WAIT}
sleep 1
WAIT=$(( ${WAIT} - 1 ))
done
printf "\r \n"
echo " Starting update process"
fi
# Enable the redirect support to get u-boot variables values

View File

@ -54,6 +54,7 @@ do
done
if [ ! "${NOWAIT}" = true ]; then
WAIT=10
echo "############################################################"
echo "# Linux firmware install through USB OTG #"
echo "############################################################"
@ -61,9 +62,15 @@ if [ ! "${NOWAIT}" = true ]; then
echo " This process will erase your eMMC and will install a new"
echo " U-Boot and Linux firmware images on the eMMC."
echo ""
echo " Press CTRL+C now if you wish to abort or wait 10 seconds"
echo " to continue."
sleep 10
echo " Press CTRL+C now if you wish to abort."
echo ""
while [ ${WAIT} -gt 0 ]; do
printf "\r Update process starts in %d " ${WAIT}
sleep 1
WAIT=$(( ${WAIT} - 1 ))
done
printf "\r \n"
echo " Starting update process"
fi
if [ -z "${INSTALL_UBOOT_FILENAME}" ]; then
@ -153,4 +160,10 @@ uuu fb: ucmd saveenv
# Reset the target
uuu fb: acmd reset
echo "\033[32m"
echo "============================================================="
echo "Done! Wait for the target to complete first boot process."
echo "============================================================="
echo "\033[0m"
exit

View File

@ -54,6 +54,7 @@ do
done
if [ ! "${NOWAIT}" = true ]; then
WAIT=10
echo "############################################################"
echo "# Linux firmware install through USB OTG #"
echo "############################################################"
@ -61,9 +62,15 @@ if [ ! "${NOWAIT}" = true ]; then
echo " This process will erase your eMMC and will install a new"
echo " U-Boot and Linux firmware images on the eMMC."
echo ""
echo " Press CTRL+C now if you wish to abort or wait 10 seconds"
echo " to continue."
sleep 10
echo " Press CTRL+C now if you wish to abort."
echo ""
while [ ${WAIT} -gt 0 ]; do
printf "\r Update process starts in %d " ${WAIT}
sleep 1
WAIT=$(( ${WAIT} - 1 ))
done
printf "\r \n"
echo " Starting update process"
fi
if [ -z "${INSTALL_UBOOT_FILENAME}" ]; then
@ -153,4 +160,10 @@ uuu fb: ucmd saveenv
# Reset the target
uuu fb: acmd reset
echo "\033[32m"
echo "============================================================="
echo "Done! Wait for the target to complete first boot process."
echo "============================================================="
echo "\033[0m"
exit

View File

@ -54,6 +54,7 @@ do
done
if [ ! "${NOWAIT}" = true ]; then
WAIT=10
echo "############################################################"
echo "# Linux firmware install through USB OTG #"
echo "############################################################"
@ -61,9 +62,15 @@ if [ ! "${NOWAIT}" = true ]; then
echo " This process will erase your eMMC and will install a new"
echo " U-Boot and Linux firmware images on the eMMC."
echo ""
echo " Press CTRL+C now if you wish to abort or wait 10 seconds"
echo " to continue."
sleep 10
echo " Press CTRL+C now if you wish to abort."
echo ""
while [ ${WAIT} -gt 0 ]; do
printf "\r Update process starts in %d " ${WAIT}
sleep 1
WAIT=$(( ${WAIT} - 1 ))
done
printf "\r \n"
echo " Starting update process"
fi
# Enable the redirect support to get u-boot variables values
@ -220,4 +227,10 @@ uuu fb: ucmd saveenv
# Reset the target
uuu fb: acmd reset
echo "\033[32m"
echo "============================================================="
echo "Done! Wait for the target to complete first boot process."
echo "============================================================="
echo "\033[0m"
exit

View File

@ -54,6 +54,7 @@ do
done
if [ ! "${NOWAIT}" = true ]; then
WAIT=10
echo "############################################################"
echo "# Linux firmware install through USB OTG #"
echo "############################################################"
@ -61,9 +62,15 @@ if [ ! "${NOWAIT}" = true ]; then
echo " This process will erase your eMMC and will install a new"
echo " U-Boot and Linux firmware images on the eMMC."
echo ""
echo " Press CTRL+C now if you wish to abort or wait 10 seconds"
echo " to continue."
sleep 10
echo " Press CTRL+C now if you wish to abort."
echo ""
while [ ${WAIT} -gt 0 ]; do
printf "\r Update process starts in %d " ${WAIT}
sleep 1
WAIT=$(( ${WAIT} - 1 ))
done
printf "\r \n"
echo " Starting update process"
fi
# Enable the redirect support to get u-boot variables values
@ -220,4 +227,10 @@ uuu fb: ucmd saveenv
# Reset the target
uuu fb: acmd reset
echo "\033[32m"
echo "============================================================="
echo "Done! Wait for the target to complete first boot process."
echo "============================================================="
echo "\033[0m"
exit