Hi Parikshit,
On 01.07.24 16:28, Parikshit Patel wrote:
> Hi,
>
> We are using the TI AM62Ax processor and kernel version is 6.1.46. TI
> has stopped supporting the u-boot variable change from user space.
It does not depend on TI, so bring it back.
> So,
> fw_printenv, fw_setenv is not working on our board.
Make them working
> But swupdate is
> checking for environment variable before update. Below is error:
>
...and even during the update - fix it.
> [ERROR] : SWUPDATE failed [0] ERROR uboot.c : bootloader_initialize : 47
> : Cannot initialize environment from /etc/fw_env.config
> [ERROR] : SWUPDATE failed [0] ERROR uboot.c : bootloader_initialize : 47
> : Cannot initialize environment from /etc/fw_env.config
> [WARN ] : SWUPDATE running : [update_transaction_state] : Cannot
> persistently store in_progress update state.
>
> I have tried to comment the below configuration in the defconfig of
> swupdate but that didn't help and swupdate still checking for the u-boot
> environment variable.
The SOC is booting with U-Boot, SWUpdate needs to communicate with the
bootloader. If the error says that environment is not working, why are
you trying to drop the environment instead of fixing the real issue ?
>
> CONFIG_UBOOT=y
> # CONFIG_UBOOT_FWENV is not set
> # CONFIG_UBOOT_DEFAULTENV is not set
Of course it cannot work.
>
> What change should I do so that swupdate don't check for the u-boot
> environment variable?
Make change in your BSP to have the environment working again.
Best regards,
Stefano Babic
>
> --
> You received this message because you are subscribed to the Google
> Groups "swupdate" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
swupdate+u...@googlegroups.com
> <mailto:
swupdate+u...@googlegroups.com>.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/swupdate/22eb5e1c-b606-4a64-9eba-f782108ae040n%40googlegroups.com <
https://groups.google.com/d/msgid/swupdate/22eb5e1c-b606-4a64-9eba-f782108ae040n%40googlegroups.com?utm_medium=email&utm_source=footer>.