Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
a4dfc45
meta-balena-raspberrypi: docs: remove secure boot documentation
alexgg Aug 7, 2025
18deff9
meta-balena-raspberrypi: bootfiles: rpi-cmdline: move out secure boot…
alexgg Aug 7, 2025
eb80f95
meta-balena-raspberrypi: images: balena-image*: move out secure boot …
alexgg Aug 7, 2025
81a6f2d
meta-balena-raspberrypi: hostapp-update-hooks: move out secure boot s…
alexgg Aug 7, 2025
6b5fc29
meta-balena-raspberrypi: conf: machine: remove raspberrypicm4-ioboard-sb
alexgg Aug 7, 2025
92c9937
meta-balena-raspberrypi: classes: move out secure boot support
alexgg Aug 7, 2025
3a4e3d4
meta-balena-raspberrypi: balena-keys: move out secure boot support
alexgg Aug 7, 2025
5a068ff
meta-balena-raspberrypi: os-helpers: move out secure boot support
alexgg Aug 7, 2025
62c5a94
meta-balena-raspberrypi: resin-init: move out secure boot support
alexgg Aug 7, 2025
2aa9e60
meta-balena-raspberrypi: initrdscripts: move out secure boot support
alexgg Aug 7, 2025
6e226e7
meta-balena-raspberrypi: resin-mounts: move out secure boot support
alexgg Aug 7, 2025
22cb5ce
meta-balena-raspberrypi: balena-image-initramfs: move out secure boot…
alexgg Aug 7, 2025
1c8c379
meta-balena-raspberrypi: rpi-eeprom: move out secure boot support
alexgg Aug 7, 2025
7a59755
meta-balena-raspberrypi: bootfiles: move out secure boot support
alexgg Aug 7, 2025
3e823f2
meta-balena-raspberrypi: usboot: move out secure boot support
alexgg Aug 7, 2025
d808e05
meta-balena-raspberrypi: linux-balena-bootloader: move out secure boo…
alexgg Aug 7, 2025
e0e9c59
meta-balena-raspberrypi: linux-raspberrypi: move out secure boot support
alexgg Aug 7, 2025
6d0f909
.gitmodules: add meta-balena-rpi-sb
alexgg Aug 7, 2025
e85ebbb
raspberrypicm4-ioboard-sb: use raspberrypicm4-ioboard machine
alexgg Aug 8, 2025
b38b10f
raspberrypi5-sb: add coffee file
alexgg Aug 24, 2025
4fda38b
rpi-eeprom: adapt for the Raspberrypi5
alexgg Aug 24, 2025
1ebb9a1
rpi-eeprom: update firmware to 2025-05-08
alexgg Aug 28, 2025
140b406
balena-image: raspberrypi5: add EEPROM update binaries
alexgg Aug 27, 2025
3d64a8e
hostapp-update-hooks: add rpi-eeprom dependency for RPI5
alexgg Aug 26, 2025
efe45a1
resin-init-flasher-board: add rpi-eeprom dependency for RPI5
alexgg Aug 26, 2025
b21071f
userlandtools: use for the Raspberrypi5 too
alexgg Aug 24, 2025
74aa02c
bootfiles: rpi-config: limit audio dtparam to raspberrypi4
alexgg Aug 26, 2025
ce74593
[UPSTREAM] use meta-balena-rpi-sb at alexgg/cm5-sb
alexgg Aug 27, 2025
e85519f
rpi-bootfiles: clean-up for Raspberrypi 5
alexgg Aug 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/raspberrypicm4-ioboard-sb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ jobs:
if: (github.event.pull_request.head.repo.full_name == github.repository) == (github.event_name == 'pull_request')
secrets: inherit
with:
machine: raspberrypicm4-ioboard-sb
machine: raspberrypicm4-ioboard
slug: raspberrypicm4-ioboard-sb
build-args: '--templates-path layers/meta-balena-rpi-sb/conf/samples/raspberrypicm4-ioboard-sb'
# Hardcode the device repo in case this workflow is called by another workflow
device-repo: balena-os/balena-raspberrypi
device-repo-ref: ${{ inputs.device-repo-ref || github.ref }}
Expand Down
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,7 @@
path = layers/meta-cyclonedx
url = https://github.com/balena-os/meta-cyclonedx
branch = kirkstone
[submodule "layers/meta-balena-rpi-sb"]
path = layers/meta-balena-rpi-sb
url = https://github.com/balena-os/meta-balena-rpi-sb.git
branch = master
144 changes: 0 additions & 144 deletions docs/rpi-secure-boot.md

This file was deleted.

127 changes: 0 additions & 127 deletions layers/meta-balena-raspberrypi/classes/image-sign-rpi.bbclass

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,31 @@ do_deploy:append() {
rm -f ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/start4db.elf

if echo ${MACHINEOVERRIDES} | grep -i "raspberrypi4-64"; then
# exclude from raspberrypi4-64 based balenaOS builds the binaries which are for previous RaspberryPi versions
# exclude the binaries which are for previous RaspberryPi versions
rm -f ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/fixup.dat
rm -f ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/fixup_cd.dat
rm -f ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/fixup_x.dat
rm -f ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/start.elf
rm -f ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/start_cd.elf
rm -f ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/start_x.elf
# bootcode.bin is not used anymore on rpi4 as the boot code is now in an EEPROM (https://www.raspberrypi.org/documentation/hardware/raspberrypi/booteeprom.md)
# bootcode.bin is not used anymore on rpi4i/rpi5 as the boot code is now in an EEPROM (https://www.raspberrypi.org/documentation/hardware/raspberrypi/booteeprom.md)
rm -f ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/bootcode.bin
elif echo ${MACHINEOVERRIDES} | grep -i "raspberrypi5"; then
# exclude the binaries which are for previous RaspberryPi versions
rm -f ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/fixup.dat
rm -f ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/fixup_cd.dat
rm -f ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/fixup_x.dat
rm -f ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/start.elf
rm -f ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/start_cd.elf
rm -f ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/start_x.elf
# exclude RaspberryPi4 specific firmware from non raspberrypi4-64 based balenaOS builds
rm -f ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/fixup4.dat
rm -f ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/fixup4cd.dat
rm -f ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/fixup4x.dat
rm -f ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/start4.elf
rm -f ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/start4cd.elf
rm -f ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/start4x.elf
# bootcode.bin is not used anymore on rpi4i/rpi5 as the boot code is now in an EEPROM (https://www.raspberrypi.org/documentation/hardware/raspberrypi/booteeprom.md)
rm -f ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/bootcode.bin
else
# exclude RaspberryPi4 specific firmware from non raspberrypi4-64 based balenaOS builds
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
# Set console accordingly to build type
CMDLINE += " dwc_otg.lpm_enable=0 rootwait"
CMDLINE += "${OS_KERNEL_CMDLINE} ${@oe.utils.conditional('SIGN_API','','',"${OS_KERNEL_SECUREBOOT_CMDLINE}",d)}"

# Add earlycon with OS_DEVELOPMENT=1
CMDLINE:prepend:raspberrypi4-64 = " ${@bb.utils.contains('DISTRO_FEATURES','osdev-image',"earlycon=uart8250,mmio32,0xfe215040 console=tty1","",d)}"
CMDLINE:prepend:raspberrypi400-64 = " ${@bb.utils.contains('DISTRO_FEATURES','osdev-image',"earlycon=uart8250,mmio32,0xfe215040 console=tty1","",d)}"
CMDLINE:prepend:raspberrypicm4-ioboard = " ${@bb.utils.contains('DISTRO_FEATURES','osdev-image',"earlycon=uart8250,mmio32,0xfe215040 console=tty1","",d)}"
CMDLINE:prepend:raspberrypicm4-ioboard-sb = " ${@bb.utils.contains('DISTRO_FEATURES','osdev-image',"earlycon=uart8250,mmio32,0xfe215040 console=tty1","",d)}"

# See https://github.com/raspberrypi/linux/commit/9b0efcc1ec497b2985c6aaa60cd97f0d2d96d203
CMDLINE += " cgroup_enable=memory"
CMDLINE:remove = "root=/dev/mmcblk0p2"
CMDLINE_DEBUG = ""

# Necessary for balena bootloader to work
# These will not be passed to the actual kernel
CMDLINE:append:raspberrypicm4-ioboard-sb := " balena_stage2 nr_cpus=1"
CMDLINE:append:raspberrypi5 := " balena_stage2 maxcpus=0"
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ do_deploy:append() {
if ! ${@bb.utils.contains('DISTRO_FEATURES','osdev-image','true','false',d)}; then
echo "avoid_warnings=1" >>${DEPLOYDIR}/bootfiles/config.txt
fi
}

do_deploy:append:raspberrypi4-64() {
# Enable audio (loads snd_bcm2835)
echo "dtparam=audio=on" >> ${DEPLOYDIR}/bootfiles/config.txt
}
Expand Down Expand Up @@ -43,12 +46,6 @@ do_deploy:append:revpi-connect-4() {
echo "dtparam=ant2" >> ${DEPLOYDIR}/bootfiles/config.txt
}

do_deploy:append:raspberrypicm4-ioboard-sb() {
echo "dtoverlay=dwc2,dr_mode=host" >> ${DEPLOYDIR}/bootfiles/config.txt
# Remap audio pins to free GPIOs 40/41 for SPI0 EEPROM programming
echo "dtoverlay=audremap" >> ${DEPLOYDIR}/bootfiles/config.txt
}

do_deploy:append:raspberrypi3-unipi-neuron() {
# Use the dt overlays required by the UniPi Neuron family of boards
echo "dtoverlay=neuronee" >> ${DEPLOYDIR}/bootfiles/config.txt
Expand Down
Loading
Loading