swupdate 2024: Update process fails on trixie builds

Steps to reproduce:

  1. Build the base image with SWUpdate feature:

    $ ./kas-container build kas-cip.yml:kas/board/x86-uefi.yml:kas/opt/ebg-swu.yml:kas/opt/trixie.yml
  2. After successful build, copy the image artifacts to a separate location:

    build/tmp/deploy/images/x86-uefi/cip-core-image-cip-core-trixie-x86-uefi.wic
    build/tmp/deploy/images/x86-uefi/cip-core-image-cip-core-trixie-x86-uefi.wic.wic.bmap
    
    $ mkdir base-image
    $ cp build/tmp/deploy/images/x86-uefi/wic* base-image/
  3. Rebuild the image with the rt kernel as part of the modifications for the update-image:

$ ./kas-container --ssh-dir ~/.ssh/ build kas-cip.yml:kas/board/x86-uefi.yml:kas/opt/ebg-swu.yml:kas/opt/trixie.yml:kas/opt/rt.yml
  1. After successful build, the update image will be available as:
build/tmp/deploy/images/x86-uefi/cip-core-image-cip-core-trixie-x86-uefi.swu
  1. Boot the SIMATIC IPC device with the base image and apply swupdate with the generated update image

Result:

The SWUpdate process failed with "swupdate_async_start returns -1" error message.

Attached are the detailed logs of the observed error.

swupdate-error-log.txt

Findings:

The same update process was tested using selfbuilt swupdate as done for bookworm [ SWUpdate 2023.12 ] on the Trixie build, and the update completed successfully without any errors.

Edited by Ranjana Teli
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information