Skip to content

Commit

Permalink
Merge pull request #93 from leon-anavi/kirkstone-update
Browse files Browse the repository at this point in the history
meta-rauc-raspberrypi: Kirkstone update
  • Loading branch information
leon-anavi authored Apr 4, 2024
2 parents a24bd25 + 34d0c66 commit c3f3ab4
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 9 deletions.
2 changes: 1 addition & 1 deletion meta-rauc-raspberrypi/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ IV. Build and Install The Demo Bundle

To build the bundle, run::

$ bitbake qemu-demo-bundle
$ bitbake update-bundle

Copy the generated bundle to the target system via nc, scp or an attached USB stick.

Expand Down
2 changes: 1 addition & 1 deletion meta-rauc-raspberrypi/conf/layer.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ BBFILE_PATTERN_meta-rauc-raspberrypi = "^${LAYERDIR}/"
BBFILE_PRIORITY_meta-rauc-raspberrypi = "6"

LAYERDEPENDS_meta-rauc-raspberrypi = "core rauc raspberrypi"
LAYERSERIES_COMPAT_meta-rauc-raspberrypi = "dunfell gatesgarth hardknott honister kirkstone"
LAYERSERIES_COMPAT_meta-rauc-raspberrypi = "kirkstone"
5 changes: 4 additions & 1 deletion meta-rauc-raspberrypi/recipes-core/bundles/update-bundle.bb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ DESCRIPTION = "RAUC bundle generator"

inherit bundle

RAUC_BUNDLE_COMPATIBLE = "RaspberryPi4"
RAUC_BUNDLE_COMPATIBLE = "${MACHINE}"
RAUC_BUNDLE_VERSION = "v20200703"
RAUC_BUNDLE_DESCRIPTION = "RAUC Demo Bundle"

RAUC_BUNDLE_FORMAT = "verity"

RAUC_BUNDLE_SLOTS = "rootfs"
RAUC_SLOT_rootfs = "core-image-minimal"
RAUC_SLOT_rootfs[fstype] = "ext4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Before=home.mount
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/sbin/parted --script /dev/mmcblk0 resizepart 4 100%
ExecStart=/usr/sbin/parted --script /dev/mmcblk0 resizepart 6 100%

[Install]
WantedBy=home.mount
2 changes: 1 addition & 1 deletion meta-rauc-raspberrypi/recipes-core/rauc/files/system.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[system]
compatible=RaspberryPi4
compatible=@@MACHINE@@
bootloader=uboot
data-directory=/data/

Expand Down
4 changes: 4 additions & 0 deletions meta-rauc-raspberrypi/recipes-core/rauc/rauc_%.bbappend
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ PACKAGES += "rauc-grow-data-part"

RDEPENDS:${PN}-grow-data-part += "parted"

do_install:prepend() {
sed -i "s|@@MACHINE@@|${MACHINE}|g" ${WORKDIR}/system.conf
}

do_install:append() {
install -d ${D}${systemd_unitdir}/system/
install -m 0644 ${WORKDIR}/rauc-grow-data-partition.service ${D}${systemd_unitdir}/system/
Expand Down
12 changes: 7 additions & 5 deletions meta-rauc-raspberrypi/recipes-kernel/linux/files/rauc.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
CONFIG_SQUASHFS=y
CONFIG_MD=y
CONFIG_BLK_DEV_DM=y
CONFIG_BLK_DEV_LOOP=y
CONFIG_SQUASHFS_FILE_CACHE=y
CONFIG_SQUASHFS_DECOMP_SINGLE=y
CONFIG_SQUASHFS_ZLIB=y
CONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE=3
CONFIG_DM_VERITY=y
CONFIG_SQUASHFS=y
CONFIG_CRYPTO_SHA256=y
# For bundle streaming
CONFIG_BLK_DEV_NBD=y

0 comments on commit c3f3ab4

Please sign in to comment.