i2SOM:recovery: update the boot argument when update success

When update success, it needs change the uboot environment to boot
into normal linux system.
This commit is contained in:
SteveChen
2019-03-10 10:55:41 +08:00
parent 6d37ddaa66
commit fe4b993a74

View File

@ -381,6 +381,14 @@ fi
swupdate -i ${update_package}
if [ "$?" = "0" ]; then
log "Firmware update process succeed!"
if [ "$(is_nand)" = "yes" ]; then
fw_setenv mtdbootpart linux
else
fw_setenv mmcpart 1
fi
log "The device will reboot and boot into working system!!!"
else
quit_with_error "Error executing the firmware update"
fi