mirror of
https://github.com/rosalinux/image-builder.git
synced 2025-02-23 18:32:51 +00:00
add rpi5 stuff
This commit is contained in:
parent
7f809910f2
commit
05956b4af2
5 changed files with 15 additions and 4 deletions
|
@ -6,6 +6,7 @@ Architecture=arm64
|
||||||
[Output]
|
[Output]
|
||||||
Format=disk
|
Format=disk
|
||||||
CompressOutput=xz
|
CompressOutput=xz
|
||||||
|
ImageId=rosapi
|
||||||
# RPI firmware does not support
|
# RPI firmware does not support
|
||||||
# 4k sectors
|
# 4k sectors
|
||||||
SectorSize=512
|
SectorSize=512
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
set -x
|
||||||
|
set -e
|
||||||
|
BOOTDIR=${BUILDROOT}/boot/firmware
|
||||||
|
ls -la ${BOOTDIR}
|
||||||
|
mkdir -p ${BOOTDIR}
|
||||||
# Find vmlinuz and initrd files in the /boot directory
|
# Find vmlinuz and initrd files in the /boot directory
|
||||||
vmlinuz_file=$(find ${BUILDROOT}/boot -name 'vmlinuz-*' -type f | head -n 1)
|
vmlinuz_file=$(find ${BUILDROOT}/boot -name 'vmlinuz-*' -type f | head -n 1)
|
||||||
initrd_file=$(find ${BUILDROOT}/boot -name 'initrd-*.img' -type f | head -n 1)
|
initrd_file=$(find ${BUILDROOT}/boot -name 'initrd-*.img' -type f | head -n 1)
|
||||||
|
@ -13,10 +18,15 @@ fi
|
||||||
kernel_name=$(basename "$vmlinuz_file")
|
kernel_name=$(basename "$vmlinuz_file")
|
||||||
initrd_name=$(basename "$initrd_file")
|
initrd_name=$(basename "$initrd_file")
|
||||||
|
|
||||||
# Append the required lines to /boot/config.txt
|
printf "move kernel, initrd and dtb files to /boot/firmware/"
|
||||||
|
mv ${vmlinuz_file} ${BOOTDIR}
|
||||||
|
mv ${initrd_file} ${BOOTDIR}
|
||||||
|
mv ${BUILDROOT}/boot/dtb-*/broadcom/bcm*.dtb ${BOOTDIR}
|
||||||
|
|
||||||
|
# Append the required lines to /boot/firmware/config.txt#
|
||||||
{
|
{
|
||||||
printf "kernel=%s\n" "$kernel_name"
|
printf "kernel=%s\n" "$kernel_name"
|
||||||
printf "initramfs %s followkernel\n" "$initrd_name"
|
printf "initramfs %s followkernel\n" "$initrd_name"
|
||||||
} >> ${BUILDROOT}/boot/config.txt
|
} >> ${BOOTDIR}/config.txt
|
||||||
|
|
||||||
printf "The kernel and initrd entries have been added to /boot/config.txt.\n"
|
printf "The kernel and initrd entries have been added to /boot/firmware/config.txt.\n"
|
||||||
|
|
|
@ -2,6 +2,6 @@
|
||||||
Type=esp
|
Type=esp
|
||||||
Label=bootfs
|
Label=bootfs
|
||||||
Format=vfat
|
Format=vfat
|
||||||
CopyFiles=/boot/:/
|
CopyFiles=/boot/firmware:/firmware
|
||||||
SizeMinBytes=256M
|
SizeMinBytes=256M
|
||||||
SizeMaxBytes=256M
|
SizeMaxBytes=256M
|
||||||
|
|
Loading…
Add table
Reference in a new issue