bootloader support absent

306 views
Skip to first unread message

r.ari...@gmail.com

unread,
Mar 7, 2022, 3:13:59 AM3/7/22
to swup...@googlegroups.com
Hi, 

With the sw-description below I am getting the error  " ERROR : bootloader support absent but sw-description has bootloader section!  " Please see the log bellow

I tried enabling all uboot options in defconfig with no luck. Please point me out what is wrong 

'stable : {
                        copy2 : {
                                images: (
                                        {
                                                filename = "roofs.ext4.gz";
                                                type = "raw";
                                                compressed = "zlib";
                                                installed-directly = true;
                                                device="/dev/mmcblk2p1";
                                        }
                                );
                                scripts: (
                                        {
                                                filename = "myswu.sh";
                                                type = "shellscript";
                                        }
                                );
                                bootenv: (
                                        {
                                                name = "mmcpart";
                                                value = "1"
                                        },
                                        {
                                                name ="mmcroot";
                                                value ="dev/mmcblk2p1";
                                        }
                                );
                        };



Swupdate v2021.11.0

Licensed under GPLv2. See source distribution for detailed copyright notices.

[INFO ] : SWUPDATE running :  [main] : Running on display Revision 1.0
[INFO ] : SWUPDATE running :  [print_registered_handlers] : Registered handlers:
[INFO ] : SWUPDATE running :  [print_registered_handlers] :     dummy
[INFO ] : SWUPDATE running :  [print_registered_handlers] :     flash
[INFO ] : SWUPDATE running :  [print_registered_handlers] :     lua
[INFO ] : SWUPDATE running :  [print_registered_handlers] :     raw
[INFO ] : SWUPDATE running :  [print_registered_handlers] :     rawfile
[INFO ] : SWUPDATE running :  [print_registered_handlers] :     rawcopy
[INFO ] : SWUPDATE running :  [print_registered_handlers] :     shellscript
[INFO ] : SWUPDATE running :  [print_registered_handlers] :     preinstall
[INFO ] : SWUPDATE running :  [print_registered_handlers] :     postinstall
[INFO ] : SWUPDATE running :  [main] : software set: stable mode: copy2
[TRACE] : SWUPDATE running :  [listener_create] : creating socket at /tmp/swupdateprog
[TRACE] : SWUPDATE running :  [network_initializer] : Main loop daemon
[TRACE] : SWUPDATE running :  [listener_create] : creating socket at /tmp/sockinstctrl
[TRACE] : SWUPDATE running :  [network_thread] : Incoming network request: processing...
[INFO ] : SWUPDATE started :  Software Update started !
[TRACE] : SWUPDATE running :  [network_initializer] : Software update started
[TRACE] : SWUPDATE running :  [extract_file_to_tmp] : Found file
[TRACE] : SWUPDATE running :  [extract_file_to_tmp] :   filename sw-description
[TRACE] : SWUPDATE running :  [extract_file_to_tmp] :   size 2055
[TRACE] : SWUPDATE running :  [get_common_fields] : Version 1.0
[TRACE] : SWUPDATE running :  [parse_hw_compatibility] : Accepted Hw Revision : 1.0
[TRACE] : SWUPDATE running :  [_parse_images] : Found compressed Image:  roofs.ext4.gz  in device : /dev/mmcblk2p2 for handler raw (installed from stream)
[TRACE] : SWUPDATE running :  [_parse_scripts] : Found Script: myswu.sh
[TRACE] : SWUPDATE running :  [_parse_bootloader] : Bootloader var: mmcroot = dev/mmcblk2p2
[TRACE] : SWUPDATE running :  [_parse_bootloader] : Bootloader var: mmcpart = 2
[ERROR] : SWUPDATE failed [0] ERROR : bootloader support absent but sw-description has bootloader section!
[ERROR] : SWUPDATE failed [0] ERROR : Compatible SW not found
[ERROR] : SWUPDATE failed [1] Image invalid or corrupted. Not installing ...
[TRACE] : SWUPDATE running :  [network_initializer] : Main thread sleep again !
[INFO ] : No SWUPDATE running :  Waiting for requests...

--
Regards
Arief Raja

Arif Raja

unread,
Mar 7, 2022, 3:37:36 AM3/7/22
to swupdate
My config has all these
CONFIG_UBOOT_NEWAPI=y
CONFIG_UBOOT_DEFAULTENV="/etc/u-boot-initial-env"
CONFIG_UBOOT=y
CONFIG_BOOTLOADERHANDLER=y

Fabio Estevam

unread,
Mar 7, 2022, 7:26:54 AM3/7/22
to r.ari...@gmail.com, swupdate
Hi Arief,

On Mon, Mar 7, 2022 at 5:13 AM <r.ari...@gmail.com> wrote:
>
> Hi,
>
> With the sw-description below I am getting the error " ERROR : bootloader support absent but sw-description has bootloader section! " Please see the log bellow
>
> I tried enabling all uboot options in defconfig with no luck. Please point me out what is wrong

Do you have CONFIG_BOOTLOADERHANDLER=y in your defconfig?

Arif Raja

unread,
Mar 7, 2022, 8:49:27 AM3/7/22
to swupdate
Hi,
My override defconfig logic was not working as expected in yocto.
I tried directly adding into swupdate defconfig file CONFIG_BOOTLOADERHANDLER=y  and it worked well.

Thank you for the support.

Regards,
Arief
Reply all
Reply to author
Forward
0 new messages