Skip to content

Commit

Permalink
raspberrypi5.conf: Fix boot kernel panic on CM5
Browse files Browse the repository at this point in the history
The Raspberry Compute Module 5 needs new dtb's and depends on
the bcm2712d0 overlay.

Signed-off-by: Gijs Peskens <gijs.peskens@munisense.com>
  • Loading branch information
Gijs Peskens committed Dec 23, 2024
1 parent 97d7a6b commit c5a6df1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions conf/machine/raspberrypi5.conf
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ MACHINE_EXTRA_RRECOMMENDS += "\

RPI_KERNEL_DEVICETREE = " \
broadcom/bcm2712-rpi-5-b.dtb \
broadcom/bcm2712-rpi-cm5-cm5io.dtb \
broadcom/bcm2712-rpi-cm5-cm4io.dtb \
broadcom/bcm2712-rpi-cm5l-cm5io.dtb \
broadcom/bcm2712-rpi-cm5l-cm4io.dtb \
"

SDIMG_KERNELIMAGE ?= "kernel_2712.img"
Expand All @@ -30,3 +34,5 @@ KERNEL_IMAGETYPE_DIRECT ?= "Image"
KERNEL_BOOTCMD ?= "booti"

UBOOT_MACHINE = "rpi_arm64_config"

RPI_KERNEL_DEVICETREE_OVERLAYS:append = " overlays/bcm2712d0.dtbo"
3 changes: 3 additions & 0 deletions recipes-bsp/u-boot/u-boot_%.bbappend
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ SRC_URI:append:rpi = " \

SRC_URI:append:rpi = " file://0001-rpi-always-set-fdt_addr-with-firmware-provided-FDT-address.patch"


SRC_URI:append:rpi = " file://memory_size.cfg"

DEPENDS:append:rpi = " u-boot-default-script"

do_install:append:rpi () {
Expand Down

0 comments on commit c5a6df1

Please sign in to comment.