cdsteinkuehler / br2rauc

Buildroot + RAUC
Other
51 stars 18 forks source link

Support for Buildroot 2024.02 #24

Open kobayutapon opened 3 months ago

kobayutapon commented 3 months ago

Modified to work with Buildroot 2024.02.

petewasher-flybrid commented 3 months ago

I tested this and it doesn't seem to work completely - build is ok, startup is OK. But when trying to install a rauc update I get the error below:

# rauc install rootfs.raucb
installing
  0% Installing
  0% Determining slot states
 10% Determining slot states done.
 10% Checking bundle
 10% Verifying signature
 20% Verifying signature done.
 20% Checking bundle done.
 20% Checking manifest contents
 30% Checking manifest contents done.
100% Installing failed.
LastError: Failed mounting bundle: Failed to open /dev/mapper/control: No such file or directory
Installing `/upload/rootfs.raucb` failed

Does this work on your setup?

kobayutapon commented 3 months ago

Sorry, I didn't check enough. I will check the symptoms you pointed out and send another pull request.

petewasher-flybrid commented 3 months ago

It seems we now need to specify all these items in linux.fragment:

CONFIG_MD=y
CONFIG_BLK_DEV_DM=y
CONFIG_BLK_DEV_LOOP=y
CONFIG_DM_VERITY=y
CONFIG_SQUASHFS=y
CONFIG_CRYPTO_SHA256=y

This is in line with the rauc docs: https://rauc.readthedocs.io/en/latest/integration.html#kernel-configuration

kobayutapon commented 3 months ago

I checked the operation and committed the fix. Thanks for pointing this out.