swupdate is successful but nothing is updated/installed.

225 views
Skip to first unread message

Jino Abraham

unread,
Oct 27, 2021, 8:00:55 AM10/27/21
to swupdate
Hello everyone,

I have recently integrated meta-swupdate(zeus branch) in my Yocto. swupdate status is successful but nothing is getting installed or updated. Below are the logs of the swupdate command and sw-description file.



swupdate command on my machine:
cgtqmx6:~# swupdate -c -i test-swu-image-cgtqmx6-20211027113019.swu -e "stable,mmcblk1p1" -H cgtqmx6:1.0 -v                                                                                            
Swupdate v2021.04.0

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

[INFO ] : SWUPDATE running :  [main] : Running on cgtqmx6 Revision 1.0
[INFO ] : SWUPDATE running :  [print_registered_handlers] : Registered handlers:
[INFO ] : SWUPDATE running :  [print_registered_handlers] :     dummy
[INFO ] : SWUPDATE running :  [print_registered_handlers] :     archive
[INFO ] : SWUPDATE running :  [print_registered_handlers] :     tar
[INFO ] : SWUPDATE running :  [print_registered_handlers] :     uboot
[INFO ] : SWUPDATE running :  [print_registered_handlers] :     bootloader
[INFO ] : SWUPDATE running :  [print_registered_handlers] :     flash
[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: mmcblk1p1
[TRACE] : SWUPDATE running :  [network_initializer] : Main loop daemon
[TRACE] : SWUPDATE running :  [listener_create] : creating socket at /tmp/swupdateprog
[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 863
[TRACE] : SWUPDATE running :  [get_common_fields] : Version 0.1
[TRACE] : SWUPDATE running :  [parse_hw_compatibility] : Accepted Hw Revision : 1.0
[TRACE] : SWUPDATE running :  [_parse_files] : Found File: cgt_imx6_readme_NXP_yocto_3.0.txt --> /boot/cgt_imx6_readme_NXP_yocto_3.0.txt (/dev/mmcblk0p1)
[TRACE] : SWUPDATE running :  [_parse_files] : Found File: core-image-sato-cgtqmx6.tar.bz2 --> / (/dev/mmcblk1p1)
[TRACE] : SWUPDATE running :  [check_hw_compatibility] : Hardware cgtqmx6 Revision: 1.0
[TRACE] : SWUPDATE running :  [check_hw_compatibility] : Hardware compatibility verified
[TRACE] : SWUPDATE running :  [extract_files] : Found file
[TRACE] : SWUPDATE running :  [extract_files] :         filename cgt_imx6_readme_NXP_yocto_3.0.txt
[TRACE] : SWUPDATE running :  [extract_files] :         size 5850 required
[TRACE] : SWUPDATE running :  [extract_files] : Found file
[TRACE] : SWUPDATE running :  [extract_files] :         filename core-image-sato-cgtqmx6.tar.bz2
[TRACE] : SWUPDATE running :  [extract_files] :         size 266331100 required
[TRACE] : SWUPDATE running :  [extract_padding] : Expecting 424 padding bytes at end-of-file
[TRACE] : SWUPDATE running :  [network_initializer] : Valid image found: copying to FLASH
[INFO ] : SWUPDATE running :  Installation in progress
[TRACE] : SWUPDATE running :  [install_single_image] : Found installer for stream core-image-sato-cgtqmx6.tar.bz2 dummy
[TRACE] : SWUPDATE running :  [install_single_image] : Found installer for stream cgt_imx6_readme_NXP_yocto_3.0.txt dummy
[INFO ] : SWUPDATE successful ! SWUPDATE successful !
[TRACE] : SWUPDATE running :  [network_initializer] : Main thread sleep again !
[INFO ] : No SWUPDATE running :  Waiting for requests...
[INFO ] : SWUPDATE running :  [endupdate] : Swupdate was successful !


sw-description file:
software =
{
        version = "0.1";

        cgtqmx6: {
                hardware-compatibility = [ "1.0" ];
                stable:
                {
                        mmcblk1p1:
                        {
                                files: (
                                {
                                        filename = "core-image-sato-cgtqmx6.tar.bz2";
                                        type = "archive";
                                        device = "/dev/mmcblk1p1";
                                        filesystem = "ext3";
                                        #compressed = true;
                                        #installed-directly = true;
                                        path = "/";
                                },
                                {
                                        filename = "cgt_imx6_readme_NXP_yocto_3.0.txt";
                                        path = "/boot/cgt_imx6_readme_NXP_yocto_3.0.txt";
                                        device = "/dev/mmcblk0p1";
                                        filesystem = "ext3";
                                        type = "raw";
                                }
                                );
                        };
                };
        };
}

Also from the trace Found installer for stream core-image-sato-cgtqmx6.tar.bz2 dummy,  it is showing my files as dummy. Is this intended behaviour or something is wrong? Kindly guide me to resolve this issue.
Thanks.
 

Stefano Babic

unread,
Oct 27, 2021, 8:04:48 AM10/27/21
to swup...@googlegroups.com
Hi Jino,

On 27.10.21 14:00, Jino Abraham wrote:
> Hello everyone,
>
> I have recently integrated meta-swupdate(zeus branch)

Obsolete and not supported anymore.

> in my Yocto.
> swupdate status is successful but nothing is getting installed or
> updated. Below are the logs of the swupdate command and sw-description file.
>
>
>
> *_swupdate command on my machine_*:
> _*sw-description file:*_
> software =
> {
>         version = "0.1";
>
>         cgtqmx6: {
>                 hardware-compatibility = [ "1.0" ];
>                 stable:
>                 {
>                         mmcblk1p1:
>                         {
>                                 files: (
>                                 {
>                                         filename =
> "core-image-sato-cgtqmx6.tar.bz2";
>                                         type = "archive";
>                                         device = "/dev/mmcblk1p1";
>                                         filesystem = "ext3";
>                                         #compressed = true;
>                                         #installed-directly = true;
>                                         path = "/";
>                                 },
>                                 {
>                                         filename =
> "cgt_imx6_readme_NXP_yocto_3.0.txt";
>                                         path =
> "/boot/cgt_imx6_readme_NXP_yocto_3.0.txt";
>                                         device = "/dev/mmcblk0p1";
>                                         filesystem = "ext3";
>                                         type = "raw";
>                                 }
>                                 );
>                         };
>                 };
>         };
> }
>
> Also from the trace /Found installer for stream
> core-image-sato-cgtqmx6.tar.bz2 dummy, / it is showing my files as
> dummy. Is this intended behaviour

What about to take a look at the meaning of the parameter "-c" (check,
no install) ?

Your files are not dummy, they are passed to the "dummy" handler that
dos not install anything.

> or something is wrong?// Kindly guide
> me to resolve this issue.

Best regards,
Stefano Babic


--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sba...@denx.de
=====================================================================

Jino Abraham

unread,
Oct 29, 2021, 4:55:58 AM10/29/21
to swupdate
Dear Stefano, 

Yes, that "-c" in my command was the reason. Now it's working fine.
Thanks for the prompt response.

Best Regards,
Jino
Reply all
Reply to author
Forward
0 new messages