HW: IMX8QXP
BSP: L5.10.52
I want to update firmware by swupdate, so I add swupdate to Yocto and download to board and add fw_printenv/fw_setenv to system and work well. Then
root@imx8qxpmek:~# swupdate -w "--document-root /www --port 8999"
Swupdate v2021.11.0
Licensed under GPLv2. See source distribution for detailed copyright notices.
Connected to SWUpdate via /tmp/swupdateprog
At this moment I can open the web on PC and try to update a signal file but always show:
[INFO ] : SWUPDATE started : Software Update started !
[ERROR] : SWUPDATE failed [0] ERROR : Error: Cannot read default environment from file
[INFO ] : SWUPDATE running : Installation in progress
[ERROR] : SWUPDATE failed [0] ERROR : Error: Cannot read default environment from file
[ERROR] : SWUPDATE failed [0] ERROR : Error: Cannot read default environment from file
[ERROR] : SWUPDATE failed [0] ERROR : Cannot persistently store INSTALLED update state.
[ERROR] : SWUPDATE failed [1] Installation failed !
[INFO ] : No SWUPDATE running : Waiting for requests...
Why always show this error and how to fix it ?
Solved! Go to Solution.
Yes, my fw_printenv working well.
But when I do "saveenv" in uboot,this error will be fixed
Hi @wang12zhe,
I hope you are doing well.
Please make sure that /etc/fw_env.config is present and has the correct information about the environment device, offset & size.
Thanks & Regards,
Dhruvit Vasavada
Yes, my fw_printenv working well.
But when I do "saveenv" in uboot,this error will be fixed