Skip to content

Commit

Permalink
bcm27xx: add new bcm2712 subtarget
Browse files Browse the repository at this point in the history
This patch adds support for Raspberry Pi 5.

Instead of using 16K pages like Raspberry Pi OS, OpenWrt uses 4K pages due to
incompatibilities with F2FS and other applications.
There are multiple RPi forum posts with different cases and users are forcing
kernel8.img to workaround them, which is the 64 bit kernel of the RPi 4.
However, this isn't possible in OpenWrt because we only ship one kernel and we
would have to add RPi 5 support to bcm2711 subtarget (RPi 4) for that
workaround to work in OpenWrt.

Specification:
- Processor Broadcom BCM2712 2.4GHz quad-core 64-bit Arm Cortex-A76 CPU,
  with cryptographic extension, 512KB L2 caches per core, 2048KB L3 cache
Features:
- VideoCore VII GPU, supports OpenGL ES 3.1, Vulkan 1.2
- Dual 4Kp60 HDMI display output with HDR support 4Kp60 HEVC decoder
- LPDDR4X-4267 SDRAM 4GB and 8GB
- Dual-band 802.11ac Wi-Fi
- Bluetooth 5.0 / Bluetooth Low Energy
- microSD card slot, with support for SDR104 high-speed mode
- 2 x USB 3.0 ports
- 2 x USB 2.0 ports
- Gigabit Ethernet
- 2 x 4 lane MIPI camera/display
- PCIe 2.0 x1
- 5V/5A power via USB-C
- Raspberry Pi standard 40-pin header
- Real-time clock RTC
- Power button

Build system: x86_64
Build-tested: bcm2712
Run-tested: bcm2712/RPi5

Signed-off-by: Marty Jones <[email protected]>
[Remove device variant, improve description]
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
  • Loading branch information
mj22226 authored and Noltari committed Jan 25, 2024
1 parent beccf65 commit 8b63d9a
Show file tree
Hide file tree
Showing 6 changed files with 633 additions and 1 deletion.
2 changes: 1 addition & 1 deletion target/linux/bcm27xx/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ARCH:=arm
BOARD:=bcm27xx
BOARDNAME:=Broadcom BCM27xx
FEATURES:=audio boot-part display ext4 fpu gpio rootfs-part rtc squashfs usb usbgadget
SUBTARGETS:=bcm2708 bcm2709 bcm2710 bcm2711
SUBTARGETS:=bcm2708 bcm2709 bcm2710 bcm2711 bcm2712

KERNEL_PATCHVER:=6.1

Expand Down
1 change: 1 addition & 0 deletions target/linux/bcm27xx/base-files/etc/board.d/02_network
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ raspberrypi,3-model-b-plus |\
raspberrypi,400 |\
raspberrypi,4-compute-module |\
raspberrypi,4-model-b |\
raspberrypi,5-model-b |\
raspberrypi,model-b |\
raspberrypi,model-b-plus |\
raspberrypi,model-b-rev2)
Expand Down
1 change: 1 addition & 0 deletions target/linux/bcm27xx/base-files/etc/diag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ set_state() {
raspberrypi,400 |\
raspberrypi,4-compute-module |\
raspberrypi,4-model-b |\
raspberrypi,5-model-b |\
raspberrypi,model-b-plus)
status_led="led1"
;;
Expand Down
Loading

0 comments on commit 8b63d9a

Please sign in to comment.