Skip to content

Commit 00c63de

Browse files
alardevfrezbo
authored andcommitted
feat: add support for orange pi 5 max
added support for Orange Pi 5 Max updated uboot_rk1 version to 2025.07 -- needed for Orange Pi 5 Max updated Orange Pi 5 Plus patches and Turing rk1 patches due to the newer uboot_rk1 Signed-off-by: alardev <[email protected]> Signed-off-by: Noel Georgi <[email protected]> Signed-off-by: Paul Robertson <[email protected]> Signed-off-by: Noel Georgi <[email protected]>
1 parent dc9e4f5 commit 00c63de

File tree

22 files changed

+251
-13
lines changed

22 files changed

+251
-13
lines changed

MAINTAINERS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ This document contains a list of maintainers in this repo. For now, you become a
1414
| nanopi-r5s | NanoPi R5S | [#16](https://github.com/siderolabs/sbc-rockchip/pull/16) | RK3568 | Nicklas Frahm | [nicklasfrahm](https://github.com/nicklasfrahm) |
1515
| odroid-m1 | Hardkernel Odroid M1 | [#67](https://github.com/siderolabs/sbc-rockchip/pull/67) | RK3568 | Albert Lloveras Carbonell | [alloveras](https://github.com/alloveras) |
1616
| orangepi-5 | Orange Pi 5 | [#47](https://github.com/siderolabs/sbc-rockchip/pull/47) | RK3588s | Laurin Streng | [laurinstreng](https://github.com/LaurinStreng) |
17+
| orangepi-5-max | Orange Pi 5 Max | [#77](https://github.com/siderolabs/sbc-rockchip/pull/77) | RK3588 | Alar Okas | [alardev](https://github.com/alardev) |
1718
| orangepi-5-plus | Orange Pi 5 Plus | [#52](https://github.com/siderolabs/sbc-rockchip/pull/52) | RK3588 | Ryan Persée | [rpersee](https://github.com/rpersee) |
1819
| orangepi-r1-plus-lts | Orange Pi R1 Plus LTS | [#9](https://github.com/siderolabs/sbc-rockchip/pull/9) | RK3328 | Giau. Tran Minh | [giautm](https://github.com/giautm) |
1920
| radxa-zero-3e | Radxa ZERO 3E | [#71](https://github.com/siderolabs/sbc-rockchip/pull/71) | RK3566 | Noah Craig | [tyraeis](https://github.com/tyraeis) |

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ This repo provides the overlay for RockChip based Talos image.
1111
| nanopi-r5s | NanoPi R5S | RK3568 | Overlay for NanoPi R5S (only WAN, no NVMe) |
1212
| odroid-m1 | Hardkernel Odroid M1 | RK3568 | Overlay for Hardkernel's Odroid M1 |
1313
| orangepi-5 | Orange Pi 5 | RK3588s | Overlay for Orange Pi 5 |
14+
| orangepi-5-max | Orange Pi 5 Max | RK3588 | Overlay for Orange Pi 5 Max |
1415
| orangepi-5-plus | Orange Pi 5 Plus | RK3588 | Overlay for Orange Pi 5 Plus |
1516
| orangepi-r1-plus-lts | Orange Pi R1 Plus LTS | RK3328 | Overlay for Orange Pi R1 Plus LTS |
1617
| radxa-zero-3e | Radxa ZERO 3E | RK3566 | Overlay for Radxa ZERO 3E |
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
diff --git a/include/linux/byteorder/little_endian.h b/include/linux/byteorder/little_endian.h
2+
index a4cb3bfde52..0ecd088f4a2 100644
3+
--- a/include/linux/byteorder/little_endian.h
4+
+++ b/include/linux/byteorder/little_endian.h
5+
@@ -7,7 +7,10 @@
6+
#ifndef __LITTLE_ENDIAN_BITFIELD
7+
#define __LITTLE_ENDIAN_BITFIELD
8+
#endif
9+
+
10+
+#ifndef __BYTE_ORDER
11+
#define __BYTE_ORDER __LITTLE_ENDIAN
12+
+#endif
13+
14+
#include <linux/compiler.h>
15+
#include <linux/types.h>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/configs/orangepi-5-max-rk3588_defconfig b/configs/orangepi-5-max-rk3588_defconfig
2+
index 4a99c06cde1..4e23ab8f44e 100644
3+
--- a/configs/orangepi-5-max-rk3588_defconfig
4+
+++ b/configs/orangepi-5-max-rk3588_defconfig
5+
@@ -27,6 +27,7 @@ CONFIG_LEGACY_IMAGE_FORMAT=y
6+
CONFIG_DEFAULT_FDT_FILE="rockchip/rk3588-orangepi-5-max.dtb"
7+
# CONFIG_DISPLAY_CPUINFO is not set
8+
CONFIG_DISPLAY_BOARDINFO_LATE=y
9+
+CONFIG_PCI_INIT_R=y
10+
CONFIG_SPL_MAX_SIZE=0x40000
11+
# CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
12+
CONFIG_SPL_SPI_LOAD=y
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# References:
2+
# U-Boot:
3+
# - https://u-boot.readthedocs.io/en/latest
4+
name: u-boot-orangepi-5-max
5+
variant: scratch
6+
shell: /bin/bash
7+
dependencies:
8+
- stage: base
9+
- stage: arm-trusted-firmware-rk3588
10+
- stage: rkbin-rk3588
11+
platform: linux/amd64
12+
13+
steps:
14+
- sources:
15+
- url: https://ftp.denx.de/pub/u-boot/u-boot-{{ .uboot_rk1_version }}.tar.bz2
16+
destination: u-boot.tar.bz2
17+
sha256: "{{ .uboot_rk1_sha256 }}"
18+
sha512: "{{ .uboot_rk1_sha512 }}"
19+
env:
20+
SOURCE_DATE_EPOCH: {{ .BUILD_ARG_SOURCE_DATE_EPOCH }}
21+
prepare:
22+
# orangepi-5-max-rk3588
23+
- |
24+
tar xf u-boot.tar.bz2 --strip-components=1
25+
26+
for patch in $(find /pkg/patches -type f -name "*.patch" | sort); do
27+
echo "Applying $patch"
28+
patch -p1 < $patch || (echo "Failed to apply patch $patch" && exit 1)
29+
done
30+
- |
31+
make orangepi-5-max-rk3588_defconfig
32+
build:
33+
- |
34+
make -j $(nproc) HOSTLDLIBS_mkimage="-lssl -lcrypto" BL31=/libs/arm-trusted-firmware/rk3588/bl31.elf ROCKCHIP_TPL=/libs/rkbin/rk3588_ddr_lp4_2112MHz_lp5_2400MHz_v1.19.bin
35+
install:
36+
- |
37+
mkdir -p /rootfs/artifacts/arm64/u-boot/orangepi-5-max
38+
cp -v -t /rootfs/artifacts/arm64/u-boot/orangepi-5-max u-boot-rockchip.bin u-boot-rockchip-spi.bin
39+
finalize:
40+
- from: /rootfs
41+
to: /rootfs

artifacts/orangepi-5-max/vars.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# renovate: datasource=docker versioning=docker depName=cgr.dev/chainguard/wolfi-base
2+
WOLFI_BASE_REF: sha256:8dd9ceace8b1574e550374e9c07c2baafa60cc96223c1314fac61bd2edb48c70
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/configs/orangepi-5-plus-rk3588_defconfig b/configs/orangepi-5-plus-rk3588_defconfig
2-
index 9050fceda4..d2c4a6e607 100644
2+
index 739ce732292..be64f19dd15 100644
33
--- a/configs/orangepi-5-plus-rk3588_defconfig
44
+++ b/configs/orangepi-5-plus-rk3588_defconfig
55
@@ -27,6 +27,7 @@ CONFIG_LEGACY_IMAGE_FORMAT=y
@@ -8,5 +8,5 @@ index 9050fceda4..d2c4a6e607 100644
88
CONFIG_DISPLAY_BOARDINFO_LATE=y
99
+CONFIG_PCI_INIT_R=y
1010
CONFIG_SPL_MAX_SIZE=0x40000
11-
CONFIG_SPL_PAD_TO=0x7f8000
1211
# CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
12+
CONFIG_SPL_SPI_LOAD=y

artifacts/orangepi-5-plus/u-boot/pkg.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ dependencies:
88
- stage: base
99
- stage: arm-trusted-firmware-rk3588
1010
- stage: rkbin-rk3588
11-
platform: linux/amd64
1211

1312
steps:
1413
- sources:

artifacts/orangepi-5/u-boot/pkg.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ dependencies:
88
- stage: base
99
- stage: arm-trusted-firmware-rk3588
1010
- stage: rkbin-rk3588
11-
platform: linux/amd64
1211

1312
steps:
1413
- sources:

artifacts/rock5a/u-boot/pkg.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ dependencies:
88
- stage: base
99
- stage: arm-trusted-firmware-rk3588
1010
- stage: rkbin-rk3588
11-
platform: linux/amd64
1211
steps:
1312
- sources:
1413
- url: https://ftp.denx.de/pub/u-boot/u-boot-{{ .uboot_version }}.tar.bz2

0 commit comments

Comments
 (0)