Support Orange Pi 5 Max

This commit is contained in:
baiywt
2024-01-19 17:29:30 +08:00
parent 2563495460
commit afe4ff8335
7 changed files with 8619 additions and 2 deletions

View File

@@ -0,0 +1,14 @@
# Rockchip RK3588 SoC
BOARD_NAME="Orange Pi 5 Max"
BOARDFAMILY="rockchip-rk3588"
BOOTCONFIG="orangepi_5_max_defconfig"
KERNEL_TARGET="legacy"
BOOT_LOGO="desktop"
BOOT_FDT_FILE="rockchip/rk3588-orangepi-5-max.dtb"
BOOT_SCENARIO="spl-blobs"
IMAGE_PARTITION_TABLE="gpt"
BOOT_SUPPORT_SPI="yes"
SKIP_BOOTSPLASH="yes" # Skip boot splash patch, conflicts with CONFIG_VT=yes
DISTRIB_TYPE_LEGACY="bullseye bookworm bionic focal jammy"
BOOTFS_TYPE="fat"
REVISION="1.0.0"

File diff suppressed because it is too large Load Diff

View File

@@ -34,7 +34,7 @@ rk35xx_gpu_vpu_tweaks()
if [[ $BOARDFAMILY == "rockchip-rk3588" ]]; then
dpkg_install_deb_chroot "${debs_dir}/common/libmali/libmali-valhall-g610-g13p0-x11-gbm_1.9-1_arm64.deb"
dpkg_install_deb_chroot "${debs_dir}/common/rkaiq/camera-engine-rkaiq_rk3588_arm64.deb"
dpkg_install_deb_chroot "${debs_dir}/common/rkaiq/camera_engine_rkaiq_rk3588_arm64.deb"
elif [[ $BOARDFAMILY == "rockchip-rk356x" ]]; then
dpkg_install_deb_chroot "${debs_dir}/common/libmali/libmali-bifrost-g52-g13p0-x11-gbm_1.9-1_arm64.deb"
dpkg_install_deb_chroot "${debs_dir}/common/rkaiq/camera_engine_rkaiq_rk3568_arm64.deb"

View File

@@ -18,6 +18,7 @@ case $BRANCH in
KERNELPATCHDIR='rockchip-rk3588-legacy'
LINUXCONFIG="linux-rockchip-rk3588-legacy"
[[ ${BOARD} == orangepi5pro ]] && LINUXCONFIG="linux-rockchip-rk3588-legacy-opi5pro"
[[ ${BOARD} == orangepi5max ]] && LINUXCONFIG="linux-rockchip-rk3588-legacy-opi5max"
if [[ "${build_rt_image}" =~ yes ]]; then
KERNELBRANCH='branch:orange-pi-5.10-rk35xx-rt'

View File

@@ -97,7 +97,7 @@ prepare_board() {
rockpro64|renegade-elite|pinebook-pro|station-p1)
BOARDFAMILY=rk3399
;;
orangepi5|orangepicm5|orangepi5b|orangepi5plus|orangepi5pro|orangepitab|orangepi900)
orangepi5|orangepicm5|orangepi5b|orangepi5plus|orangepi5pro|orangepi5max|orangepitab|orangepi900)
[[ $BOARD =~ orangepi5|orangepi5b ]] && echo host > /sys/kernel/debug/usb/fc000000.usb/mode
if [[ $BOARD =~ orangepi900 ]]; then
@@ -154,6 +154,12 @@ prepare_board() {
rfkill unblock all
brcm_patchram_plus --bd_addr_rand --enable_hci --no2bytes --use_baudrate_for_download --tosleep 200000 \
--baudrate 1500000 --patchram /lib/firmware/BCM4345C0.hcd /dev/ttyS9 &
elif [[ $BOARD =~ orangepi5max ]]; then
rfkill unblock all
brcm_patchram_plus --bd_addr_rand --enable_hci --no2bytes --use_baudrate_for_download --tosleep 200000 \
--baudrate 1500000 --patchram /lib/firmware/SYN43711A0.hcd /dev/ttyS7 &
fi
;;
orangepi3-lts)

View File

@@ -0,0 +1,14 @@
#!/bin/bash
base_dir="/sys/devices/platform"
pwm_base="$1"
[[ ! -d "$base_dir"/"$pwm_base".pwm ]] && echo "pwm not found !" && exit
cd "$base_dir"/"$pwm_base".pwm/pwm/pwmchip*
echo 0 > export
echo 20000000 > pwm0/period
echo 10000000 > pwm0/duty_cycle
echo 1 > pwm0/enable
echo 0 > unexport
cd - 2>&1 > /dev/null