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:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user