From 6a9d87e7605281db28df4cf22712299834fec5fd Mon Sep 17 00:00:00 2001 From: Cyril Brulebois Date: Fri, 19 Nov 2021 23:08:10 +0100 Subject: [PATCH] Add preliminary CM4 support. --- raspi_master.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/raspi_master.yaml b/raspi_master.yaml index 5289525..1efb206 100644 --- a/raspi_master.yaml +++ b/raspi_master.yaml @@ -121,6 +121,9 @@ steps: ln -s /etc/systemd/system/rpi-generate-ssh-host-keys.service "${ROOT?}/etc/systemd/system/multi-user.target.requires/rpi-generate-ssh-host-keys.service" rm -f "${ROOT?}"/etc/ssh/ssh_host_*_key* + # CM4 support: DTB & patched raspi-firmware + cp rootfs/root/* "${ROOT?}/root" + __EXTRA_SHELL_CMDS__ root-fs: / @@ -129,6 +132,12 @@ steps: shell: | install -m 644 -o root -g root __DTB__ /boot/firmware/ + # CM4 support: deploy DTB, and install patched raspi-firmware + - chroot: / + shell: | + install -m 644 -o root -g root /root/bcm2711-rpi-cm4-io.dtb /boot/firmware + dpkg -i /root/raspi-firmware_1.20210805+ds-2_arm64.deb + # Clean up archive cache (likely not useful) and lists (likely outdated) to # reduce image size by several hundred megabytes. - chroot: /