From f35527d57486fa8f907381081e42edb5c7fc942e Mon Sep 17 00:00:00 2001 From: Anupam Basak <anupam.basak27@gmail.com> Date: Tue, 4 Jun 2024 11:17:51 +0530 Subject: [PATCH] Update firmware and bootloader --- .gitlab-ci.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2fb7d4b..e75d7ac 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -32,12 +32,14 @@ build-zynthbox-image-armhf: # 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 - xz -dv ./raspios-${debian_release_name}-armhf-lite.img.xz - # - sudo mount -o loop,offset=$(get_partition_start_offset root ./raspios-${debian_release_name}-armhf-lite.img),sizelimit=$(get_partition_size root ./raspios-${debian_release_name}-armhf-lite.img) ./raspios-${debian_release_name}-armhf-lite.img $mountdir - # - sudo mount -o loop,offset=$(get_partition_start_offset boot ./raspios-${debian_release_name}-armhf-lite.img),sizelimit=$(get_partition_size boot ./raspios-${debian_release_name}-armhf-lite.img) ./raspios-${debian_release_name}-armhf-lite.img $mountdir/boot - # - sudo mount --bind /dev $mountdir/dev - # - sudo mount --bind /dev/pts $mountdir/dev/pts - # - sudo mount --bind /proc $mountdir/proc - # - sudo mount --bind /sys $mountdir/sys + - sudo mount -o loop,offset=$(get_partition_start_offset root ./raspios-${debian_release_name}-armhf-lite.img),sizelimit=$(get_partition_size root ./raspios-${debian_release_name}-armhf-lite.img) ./raspios-${debian_release_name}-armhf-lite.img $mountdir + - sudo mount -o loop,offset=$(get_partition_start_offset boot ./raspios-${debian_release_name}-armhf-lite.img),sizelimit=$(get_partition_size boot ./raspios-${debian_release_name}-armhf-lite.img) ./raspios-${debian_release_name}-armhf-lite.img $mountdir/boot + - sudo mount --bind /dev $mountdir/dev + - sudo mount --bind /dev/pts $mountdir/dev/pts + - sudo mount --bind /proc $mountdir/proc + - sudo mount --bind /sys $mountdir/sys + - echo "# Updating firmware and bootloader" + - sudo SKIP_WARNING=1 ROOT_PATH=$mountdir BOOT_PATH=$mountdir/boot 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}" @@ -53,8 +55,8 @@ build-zynthbox-image-armhf: # - sudo chroot $mountdir mv /boot/vmlinuz-$KERN /boot/$KERN/ # - sudo chroot $mountdir mv /boot/System.map-$KERN /boot/$KERN/ # - sudo chroot $mountdir cp /boot/config-$KERN /boot/$KERN/ - # - sudo umount $mountdir/boot/ $mountdir/dev/pts $mountdir/dev/ $mountdir/proc/ $mountdir/sys/ - # - sudo umount $mountdir + - sudo umount $mountdir/boot/ $mountdir/dev/pts $mountdir/dev/ $mountdir/proc/ $mountdir/sys/ + - sudo umount $mountdir - zip ./raspios-${debian_release_name}-armhf-lite.img.zip ./raspios-${debian_release_name}-armhf-lite.img # Clone repositories required to generate zynthbox image -- GitLab