====== swupdate ====== * [[https://github.com/memfault/memfault-linux-sdk/blob/kirkstone/meta-memfault-example/recipes-support/swupdate/files/09-swupdate-args.in]] * [[https://github.com/PetervdPerk-NXP/meta-vb-imx8mp/blob/7f129fa5b6f90731349a8b319598518907ff33d3/recipes-navq/navq-swu-scripts/navq-swu-scripts.bb]] * [[https://github.com/sbabic/meta-swupdate-boards/blob/e677c94df51dd218b02ecc2ad1d9a432c5b1fb42/recipes-extended/images/update-image/beaglebone-yocto/emmcsetup.lua]] ===== scripts ===== https://github.com/varigit/meta-variscite-fslc/blob/hardknott/dynamic-layers/swupdate/var-image-swu/imx7-var-som/update.sh ===== embedded script ===== software = { version = "1.0"; description = "Firmware update with pre-check"; embedded-script = "function preinst() local hw_rev = swupdate.get_hw_revision() if hw_rev ~= '1.2' then print('Incompatible hardware revision!') return false, 'Hardware mismatch' end return true end"; images: ( { filename = "rootfs.ext4"; device = "/dev/mmcblk0p2"; } ); }