swupdate without u-boot environment variable configuration

23 views
Skip to first unread message

Parikshit Patel

unread,
Jul 1, 2024, 10:29:15 AM (2 days ago) Jul 1
to swupdate
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. So, fw_printenv, fw_setenv is not working on our board. But swupdate is checking for environment variable before update. Below is error:

[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.

CONFIG_UBOOT=y
# CONFIG_UBOOT_FWENV is not set
# CONFIG_UBOOT_DEFAULTENV is not set

What change should I do so that swupdate don't check for the u-boot environment variable?

Stefano Babic

unread,
Jul 1, 2024, 10:34:27 AM (2 days ago) Jul 1
to Parikshit Patel, swupdate
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>.

Parikshit Patel

unread,
6:26 AM (14 hours ago) 6:26 AM
to swupdate
[ERROR] : SWUPDATE failed [0] ERROR util.c : read_lines_notify : 1166 : umount: PARTUUID=2251999c-f4b4-43d3-adc2-e6df4711c5f1: no mount point specified.
[ERROR] : SWUPDATE failed [0] ERROR util.c : read_lines_notify : 1166 : mke2fs 1.46.5 (30-Dec-2021)
[ERROR] : SWUPDATE failed [0] ERROR util.c : read_lines_notify : 1166 : The file PARTUUID=2251999c-f4b4-43d3-adc2-e6df4711c5f1 does not exist and no size was specified.

Getting above error regarding PARTUUID.

PARTUUID under my build is as below:
mmcblk0
|-mmcblk0p1  2251999c-f4b4-43d3-adc2-e6df4711c5f7
|-mmcblk0p2  1963d938-1da9-46f7-adb8-f520412ce607
`-mmcblk0p3  a233d1a8-c8b9-4504-9c05-8eddb3170eae


My question is from where does the swupdate check for PARTUUID? because there is no mention of PARTUUID in my sw-description file.
Reply all
Reply to author
Forward
0 new messages