[ERROR] : SWUPDATE failed [0] ERROR : Error: Cannot read default environment from file

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[ERROR] : SWUPDATE failed [0] ERROR : Error: Cannot read default environment from file

Jump to solution
2,342 Views
wang12zhe
Contributor III

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 ?

 

 

 

 

 

 

 

 

0 Kudos
Reply
1 Solution
2,296 Views
wang12zhe
Contributor III

Yes, my fw_printenv working well.

But when I do "saveenv" in uboot,this error will be fixed

View solution in original post

0 Kudos
Reply
2 Replies
2,316 Views
Dhruvit
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply
2,297 Views
wang12zhe
Contributor III

Yes, my fw_printenv working well.

But when I do "saveenv" in uboot,this error will be fixed

0 Kudos
Reply