Has anyone successfully integrated RAUC? Here is where I am at.
In my local.conf I have added:
DISTRO_FEATURES_append = " systemd"
VIRTUAL-RUNTIME_init_manager = "systemd"
DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
DISTRO_FEATURES += "rauc"
MACHINE_FEATURES:append = " pcbios efi"
I created a basic bundle from an example I found:
DESCRIPTION = "RAUC bundle generator"
inherit bundle
RAUC_BUNDLE_COMPATIBLE = "${MACHINE}"
RAUC_BUNDLE_VERSION = "${DISTRO_VERSION}"
RAUC_BUNDLE_DESCRIPTION = "Generic Demo Bundle"
RAUC_BUNDLE_SLOTS = "rootfs"
RAUC_SLOT_rootfs = "core-image-minimal"
RAUC_SLOT_rootfs[fstype] = "ext4"
RAUC_KEY_FILE = "${THISDIR}/files/development-1.key.pem"
RAUC_CERT_FILE = "${THISDIR}/files/development-1.cert.pem"
Created rauc_%.bbappend as instructed (system.conf is currently empty):
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
SRC_URI:append := " file://system.conf"
Told my application about the new layer/recipe:
IMAGE_INSTALL_append = " rauc \
generic-bundle "
With this my first issue is
ERROR: Nothing RPROVIDES 'grub-efi' (but /mnt/WorkDrive/Documents/MAIN_Application/sources/poky/meta/recipes-core/packagegroups/packagegroup-core-boot.bb RDEPENDS on or otherwise requires it)
grub-efi was skipped: incompatible with host arm-poky-linux-gnueabi (not in COMPATIBLE_HOST)
This seems to be a version issue, but how do I solve it?
Have you refer this document?
https://elinux.org/images/5/57/09_software-updates-with-RAUC-YP-and-OE.pdf
Update 1:
If I do not install my bundle and install rauc I am given an error during rootfs.
ERROR: mainapplication-dev-1.0-r0 do_rootfs: Unable to install packages. Command '/mnt/WorkDrive/Documents/main_Application/build-fb/tmp/work/imx6ull14x14evk-poky-linux-gnueabi/mainapplication-dev/1.0-r0/recipe-sysroot-native/usr/bin/opkg --volatile-cache -f /mnt/WorkDrive/Documents/main_Application/build-fb/tmp/work/imx6ull14x14evk-poky-linux-gnueabi/mainapplication-dev/1.0-r0/opkg.conf -t /mnt/WorkDrive/Documents/main_Application/build-fb/tmp/work/imx6ull14x14evk-poky-linux-gnueabi/mainapplication-dev/1.0-r0/temp/ipktemp/ -o /mnt/WorkDrive/Documents/main_Application/build-fb/tmp/work/imx6ull14x14evk-poky-linux-gnueabi/mainapplication-dev/1.0-r0/rootfs --force_postinstall --prefer-arch-to-version --add-ignore-recommends udev-hwdb install base-passwd boost bridge-utils can-utils crccalculator crda dbcppp debugconfigs dhcpcd dtc ethtool maincan mainconfigs iperf3 isose iw kernel-module-lwb5p-backports-laird kernel-modules laird-localize-firmware libgpiod libsocketcan logrotate lumissil lumissil-kernel-module lwb5plus-sdio-sa-firmware open-plc-utils openssl packagegroup-core-boot packagegroup-core-eclipse-debug packagegroup-core-ssh-openssh rauc run-postinsts shadow socat stress-ng stressapptest sudo systemd-analyze tcpdump udevrules wireless-regdb-static wireless-tools wpa-supplicant' returned 255:
Disfavor package: udev-hwdb
Installing base-passwd (3.5.29) on root
@Zhiming_Liu Have any update for this error ? because , our custoemr also need to add RAUC in the BSP. thanks.