br2rauc icon indicating copy to clipboard operation
br2rauc copied to clipboard

Support for Buildroot 2024.02

Open kobayutapon opened this issue 11 months ago • 4 comments

Modified to work with Buildroot 2024.02.

  • Changed Kernel to 6.1.x series.
  • Fixed to start getty service when systemd is selected.
  • Removed u-boot patch.

kobayutapon avatar Mar 16 '24 05:03 kobayutapon

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?

petewasher-flybrid avatar Mar 19 '24 07:03 petewasher-flybrid

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

kobayutapon avatar Mar 19 '24 09:03 kobayutapon

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

petewasher-flybrid avatar Mar 19 '24 17:03 petewasher-flybrid

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

kobayutapon avatar Mar 20 '24 01:03 kobayutapon

Readme.md:353 still references the u-boot patch removed by this.

isius avatar Jul 03 '24 17:07 isius

README updated to indicate U-Boot now copies some of the device-tree nodes from the firmware loaded dtb to the live dtb.

cdsteinkuehler avatar Jul 06 '24 17:07 cdsteinkuehler