SWUPDATE Integration Help for Toradex

Swupdate integration for colibari-imx7-emmc, I am a newbie and need help with how to integrate swupate in Toradex image.
My steps are:

I am using the reference image branch Kirkstone for colibri-iMX7-emmc Toradex board.

  1. I downloaded meta-swupdate and added the recipe in bblayers.conf
  2. instal_IMAGE:append = “swupdate swupdate.www” in core-image-full-cmdline
  3. bitbake core-image-full-cmdline.
  4. installed image on board and
  5. when I run command swupdate -, it says your configuration is not read by swupdate

can someone help me with swupdate.cfg for the double copy via USB or WEB, how to write sw-description, and how to integrate it in my image package?

Hi @alizohairshah !

Welcome to Toradex Community! :tada:

Please feel free to browse around :smiley:

This core-image-full-cmdline is not an image recipe that Toradex maintains. It comes directly from Yocto. Of course, it is not forbidden to use it, but you will be able to get more help related to it from the people who maintain it. To use the reference image recipes from Toradex, please follow the article about how to build a Toradex reference image: Build with Yocto Documentation Overview | Toradex Developer Center.

The same goes for Swupdate. Maybe you get more help from people who maintain it or get their commercial support.

You will get the best out of Toradex support if you use our Torizon Platform, which is a ready-to-use OTA update solution embedded in our Torizon OS images (so no integration or maintenance effort needed on your side :wink: )

https://developer.toradex.com/torizon/torizon-platform/

Best regards,

When i modified local.conf

DISTRO_FEATURES += " systemd"
This is dependency of meta-swupdate. Please help me to fix this issue.

ERROR: tdx-reference-minimal-image-1.0-r0 do_rootfs: Unable to install packages. Command ‘/home/dekimo/oe-core/build/tmp/work/colibri_imx7_emmc-tdx-linux-gnueabi/tdx-reference-minimal-image/1.0-r0/recipe-sysroot-native/usr/bin/opkg --volatile-cache -f /home/dekimo/oe-core/build/tmp/work/colibri_imx7_emmc-tdx-linux-gnueabi/tdx-reference-minimal-image/1.0-r0/opkg.conf -t /home/dekimo/oe-core/build/tmp/work/colibri_imx7_emmc-tdx-linux-gnueabi/tdx-reference-minimal-image/1.0-r0/temp/ipktemp/ -o /home/dekimo/oe-core/build/tmp/work/colibri_imx7_emmc-tdx-linux-gnueabi/tdx-reference-minimal-image/1.0-r0/rootfs --force_postinstall --prefer-arch-to-version install connman connman-client connman-plugin-ethernet connman-plugin-loopback connman-plugin-wifi opkg packagegroup-base-extended packagegroup-base-tdx-cli packagegroup-basic packagegroup-boot packagegroup-core-boot packagegroup-machine-tdx-cli packagegroup-wifi-fw-tdx-cli packagegroup-wifi-tdx-cli run-postinsts swupdate systemd-analyze timestamp-service udev-extraconf’ returned 255:
*** opkg_prepare_url_for_install: Couldn’t find anything to satisfy ‘connman-plugin-wifi’.**

log file, log.do_rootfs:
NOTE: Installing the following packages: connman connman-client connman-plugin-ethernet connman-plugin-loopback connman-plugin-wifi opkg packagegroup-base-extended packagegroup-base-tdx-cli packagegroup-basic packagegroup-boot packagegroup-core-boot packagegroup-machine-tdx-cli packagegroup-wifi-fw-tdx-cli packagegroup-wifi-tdx-cli run-postinsts swupdate systemd-analyze timestamp-service udev-extraconf
NOTE: /home/dekimo/oe-core/build/tmp/work/colibri_imx7_emmc-tdx-linux-gnueabi/tdx-reference-minimal-image/1.0-r0/recipe-sysroot-native/usr/bin/opkg --volatile-cache -f /home/dekimo/oe-core/build/tmp/work/colibri_imx7_emmc-tdx-linux-gnueabi/tdx-reference-minimal-image/1.0-r0/opkg.conf -t /home/dekimo/oe-core/build/tmp/work/colibri_imx7_emmc-tdx-linux-gnueabi/tdx-reference-minimal-image/1.0-r0/temp/ipktemp/ -o /home/dekimo/oe-core/build/tmp/work/colibri_imx7_emmc-tdx-linux-gnueabi/tdx-reference-minimal-image/1.0-r0/rootfs --force_postinstall --prefer-arch-to-version install connman connman-client connman-plugin-ethernet connman-plugin-loopback connman-plugin-wifi opkg packagegroup-base-extended packagegroup-base-tdx-cli packagegroup-basic packagegroup-boot packagegroup-core-boot packagegroup-machine-tdx-cli packagegroup-wifi-fw-tdx-cli packagegroup-wifi-tdx-cli run-postinsts swupdate systemd-analyze timestamp-service udev-extraconf
ERROR: Unable to install packages. Command ‘/home/dekimo/oe-core/build/tmp/work/colibri_imx7_emmc-tdx-linux-gnueabi/tdx-reference-minimal-image/1.0-r0/recipe-sysroot-native/usr/bin/opkg --volatile-cache -f /home/dekimo/oe-core/build/tmp/work/colibri_imx7_emmc-tdx-linux-gnueabi/tdx-reference-minimal-image/1.0-r0/opkg.conf -t /home/dekimo/oe-core/build/tmp/work/colibri_imx7_emmc-tdx-linux-gnueabi/tdx-reference-minimal-image/1.0-r0/temp/ipktemp/ -o /home/dekimo/oe-core/build/tmp/work/colibri_imx7_emmc-tdx-linux-gnueabi/tdx-reference-minimal-image/1.0-r0/rootfs --force_postinstall --prefer-arch-to-version install connman connman-client connman-plugin-ethernet connman-plugin-loopback connman-plugin-wifi opkg packagegroup-base-extended packagegroup-base-tdx-cli packagegroup-basic packagegroup-boot packagegroup-core-boot packagegroup-machine-tdx-cli packagegroup-wifi-fw-tdx-cli packagegroup-wifi-tdx-cli run-postinsts swupdate systemd-analyze timestamp-service udev-extraconf’ returned 255:

  • opkg_prepare_url_for_install: Couldn’t find anything to satisfy ‘connman-plugin-wifi’.

DEBUG: Python function do_rootfs finished

Hi @alizohairshah !

Systemd is already present by default on Toradex Reference images (tdx-base.inc « include « distro « conf - meta-toradex-distro.git - Toradex distribution layer)

So there is no need to add it to your local.conf. Not to mention that such distribution-related configuration has the right place to be done, instead of on local.conf.

Best regards,