Skip to content

Commit 9c0e6b8

Browse files
committed
Add Raspberry Pi 5
Signed-off-by: Florin Sarbu <[email protected]>
1 parent eb79172 commit 9c0e6b8

File tree

4 files changed

+63
-0
lines changed

4 files changed

+63
-0
lines changed

.github/workflows/yocto-builds.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
- raspberrypi3
2626
- raspberrypi4-64
2727
- raspberrypi4
28+
- raspberrypi5-64
29+
- raspberrypi5
2830
- raspberrypi-cm3
2931
- raspberrypi-cm
3032
- raspberrypi-armv7

conf/machine/raspberrypi5-64.conf

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#@TYPE: Machine
2+
#@NAME: RaspberryPi 5 Development Board (64bit)
3+
#@DESCRIPTION: Machine configuration for the RaspberryPi 5 in 64 bits mode
4+
5+
MACHINEOVERRIDES =. "raspberrypi5:"
6+
7+
MACHINE_FEATURES += "pci"
8+
MACHINE_EXTRA_RRECOMMENDS += "\
9+
linux-firmware-rpidistro-bcm43455 \
10+
bluez-firmware-rpidistro-bcm4345c0-hcd \
11+
linux-firmware-rpidistro-bcm43456 \
12+
bluez-firmware-rpidistro-bcm4345c5-hcd \
13+
"
14+
15+
require conf/machine/include/arm/armv8-2a/tune-cortexa76.inc
16+
include conf/machine/include/rpi-base.inc
17+
18+
RPI_KERNEL_DEVICETREE = " \
19+
broadcom/bcm2712-rpi-5-b.dtb \
20+
"
21+
22+
SDIMG_KERNELIMAGE ?= "kernel8.img"
23+
SERIAL_CONSOLES ?= "115200;ttyS0"
24+
25+
UBOOT_MACHINE = "rpi_arm64_config"
26+
27+
VC4DTBO ?= "vc4-kms-v3d"
28+
29+
# When u-boot is enabled we need to use the "Image" format and the "booti"
30+
# command to load the kernel
31+
KERNEL_IMAGETYPE_UBOOT ?= "Image"
32+
# "zImage" not supported on arm64 and ".gz" images not supported by bootloader yet
33+
KERNEL_IMAGETYPE_DIRECT ?= "Image"
34+
KERNEL_BOOTCMD ?= "booti"
35+
36+
ARMSTUB ?= "armstub8-gic.bin"

conf/machine/raspberrypi5.conf

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#@TYPE: Machine
2+
#@NAME: RaspberryPi 5 Development Board (32bit)
3+
#@DESCRIPTION: Machine configuration for the RaspberryPi 5 in 32 bit mode
4+
5+
DEFAULTTUNE ?= "cortexa7thf-neon-vfpv4"
6+
require conf/machine/include/arm/armv7a/tune-cortexa7.inc
7+
include conf/machine/include/rpi-base.inc
8+
9+
MACHINE_FEATURES += "pci"
10+
MACHINE_EXTRA_RRECOMMENDS += "\
11+
linux-firmware-rpidistro-bcm43455 \
12+
bluez-firmware-rpidistro-bcm4345c0-hcd \
13+
linux-firmware-rpidistro-bcm43456 \
14+
bluez-firmware-rpidistro-bcm4345c5-hcd \
15+
"
16+
17+
# 'l' stands for LPAE
18+
SDIMG_KERNELIMAGE ?= "kernel7l.img"
19+
UBOOT_MACHINE = "rpi_4_32b_config"
20+
SERIAL_CONSOLES ?= "115200;ttyS0"
21+
22+
VC4DTBO ?= "vc4-kms-v3d"
23+
ARMSTUB ?= "armstub7.bin"

recipes-kernel/linux/linux-raspberrypi.inc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ KBUILD_DEFCONFIG:raspberrypi4 ?= "bcm2711_defconfig"
3333
KBUILD_DEFCONFIG:raspberrypi4-64 ?= "bcm2711_defconfig"
3434
KBUILD_DEFCONFIG:raspberrypi-armv7 ?= "bcm2711_defconfig"
3535
KBUILD_DEFCONFIG:raspberrypi-armv8 ?= "bcm2711_defconfig"
36+
KBUILD_DEFCONFIG:raspberrypi5 ?= "bcm2711_defconfig"
37+
KBUILD_DEFCONFIG:raspberrypi5-64 ?= "bcm2711_defconfig"
3638

3739
LINUX_VERSION_EXTENSION ?= ""
3840

0 commit comments

Comments
 (0)