From 86141d1114f62503edcc33ad4254fc481af1b17d Mon Sep 17 00:00:00 2001
From: Anupam Basak <anupam.basak27@gmail.com>
Date: Tue, 4 Jun 2024 11:40:42 +0530
Subject: [PATCH] rpi-update requires kmod package and adjust parameters of
 rpi-update

---
 .gitlab-ci.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0fac487..c88549b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -27,7 +27,7 @@ build-zynthbox-image-armhf:
     # Update and install dependencies
     - echo "# Update and install dependencies"
     - apt-get update
-    - apt-get install -y coreutils p7zip-full qemu-user-static sudo git wget curl python3 lsof fdisk xz-utils openssh-client jq zip binutils
+    - apt-get install -y coreutils p7zip-full qemu-user-static sudo git wget curl python3 lsof fdisk xz-utils openssh-client jq zip binutils kmod
 
     # Build custom base image with Low Latency Kernel
     - wget -c --trust-server-names 'https://downloads.raspberrypi.org/raspios_lite_armhf/images/raspios_lite_armhf-2024-03-15/2024-03-15-raspios-bookworm-armhf-lite.img.xz' -O ./raspios-${debian_release_name}-armhf-lite.img.xz
@@ -40,7 +40,7 @@ build-zynthbox-image-armhf:
     - sudo mount --bind /sys $mountdir/sys
     - echo "# Updating firmware and bootloader"
     - sudo curl -L --output /usr/bin/rpi-update https://raw.githubusercontent.com/raspberrypi/rpi-update/master/rpi-update && sudo chmod +x /usr/bin/rpi-update
-    - sudo SKIP_WARNING=1 ROOT_PATH=$mountdir BOOT_PATH=$mountdir/boot rpi-update
+    - sudo SKIP_WARNING=1 ROOT_PATH=$mountdir BOOT_PATH=$mountdir/boot WANT_32BIT=1 WANT_64BIT=0 WANT_PI4=0 WANT_PI5=1 rpi-update
     # - echo "# Cleaning up old and unused kernels"
     # - sudo chroot $mountdir apt -yy remove "linux-headers-6.6.2*" "linux-image-6.6.2*" "linux-headers-rpi-v*" "linux-image-rpi-v*" "linux-kbuild-6.6.2*"
     # - echo "# Installing kernel ${KERN}"
-- 
GitLab