summaryrefslogtreecommitdiffstats
path: root/projectroot/usr
diff options
context:
space:
mode:
authorRoland Hieber <rhi@pengutronix.de>2023-06-23 14:47:48 +0200
committerRobert Schwebel <r.schwebel@pengutronix.de>2023-08-15 09:58:58 +0200
commit24aed411fc563460fa595798674223471ce14302 (patch)
tree12a3746124c43132d3f66f49c3d0f0fa2121ac56 /projectroot/usr
parent36a2e48b49f8d2e956f3c0a21f41a8dec33f4943 (diff)
downloadDistroKit-24aed411fc563460fa595798674223471ce14302.tar.gz
DistroKit-24aed411fc563460fa595798674223471ce14302.tar.xz
v7a: add RAUC support for rpi3
* Enable barebox bootchooser framework * Add a redundant root partition to the genimage config. The state and environment partitions can live in the first 4 MiB of the SD card, so move the the boot partition by the same amount. * Add appropriate variables to the barebox defaultenv so the bootchooser can decide into which partition to boot * Add a state backend to the device tree fragment * Map partitions in rauc-udev compatibility layer Signed-off-by: Roland Hieber <rhi@pengutronix.de>
Diffstat (limited to 'projectroot/usr')
-rw-r--r--projectroot/usr/lib/udev/rules.d/90-rauc-partitions.rules7
1 files changed, 7 insertions, 0 deletions
diff --git a/projectroot/usr/lib/udev/rules.d/90-rauc-partitions.rules b/projectroot/usr/lib/udev/rules.d/90-rauc-partitions.rules
index b5c75d1..fde6c84 100644
--- a/projectroot/usr/lib/udev/rules.d/90-rauc-partitions.rules
+++ b/projectroot/usr/lib/udev/rules.d/90-rauc-partitions.rules
@@ -22,6 +22,13 @@ KERNEL=="mmcblk0p4", SYMLINK+="disk/by-usage/data"
GOTO="rauc_partitions_end"
LABEL="beaglebone_black_end"
+ENV{OF_BASE_COMPATIBLE}!="*raspberrypi,3-model-b*", GOTO="rpi3_end"
+KERNEL=="mmcblk0p2", SYMLINK+="disk/by-usage/rootfs0"
+KERNEL=="mmcblk0p3", SYMLINK+="disk/by-usage/rootfs1"
+KERNEL=="mmcblk0p4", SYMLINK+="disk/by-usage/data"
+GOTO="rauc_partitions_end"
+LABEL="rpi3_end"
+
# fallback for boards not yet supported by RAUC
KERNEL=="mmcblk0p3", SYMLINK+="disk/by-usage/data"