Skip to content

Commit

Permalink
Add board targets for the Orange Pi 5 Max and CM5
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua-Riek committed Jul 23, 2024
1 parent 169debb commit c4a463a
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
30 changes: 30 additions & 0 deletions config/boards/orangepi-5-max.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# shellcheck shell=bash

export BOARD_NAME="Orange Pi 5 Max"
export BOARD_MAKER="Xulong"
export BOARD_SOC="Rockchip RK3588"
export BOARD_CPU="ARM Cortex A76 / A55"
export UBOOT_PACKAGE="u-boot-radxa-rk3588"
export UBOOT_RULES_TARGET="orangepi-5-max-rk3588"

function config_image_hook__orangepi-5-max() {
local rootfs="$1"

# Install panfork
chroot "${rootfs}" add-apt-repository -y ppa:jjriek/panfork-mesa
chroot "${rootfs}" apt-get update
chroot "${rootfs}" apt-get -y install mali-g610-firmware
chroot "${rootfs}" apt-get -y dist-upgrade

# Install libmali blobs alongside panfork
chroot "${rootfs}" apt-get -y install libmali-g610-x11

# Install the rockchip camera engine
chroot "${rootfs}" apt-get -y install camera-engine-rkaiq-rk3588

# Install wiring orangepi package
chroot "${rootfs}" apt-get -y install wiringpi-opi libwiringpi2-opi libwiringpi-opi-dev
echo "BOARD=orangepi5max" > "${rootfs}/etc/orangepi-release"

return 0
}
30 changes: 30 additions & 0 deletions config/boards/orangepi-cm5.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# shellcheck shell=bash

export BOARD_NAME="Orange Pi CM5"
export BOARD_MAKER="Xulong"
export BOARD_SOC="Rockchip RK3588"
export BOARD_CPU="ARM Cortex A76 / A55"
export UBOOT_PACKAGE="u-boot-radxa-rk3588"
export UBOOT_RULES_TARGET="orangepi-cm5-rk3588s"

function config_image_hook__orangepi-cm5() {
local rootfs="$1"

# Install panfork
chroot "${rootfs}" add-apt-repository -y ppa:jjriek/panfork-mesa
chroot "${rootfs}" apt-get update
chroot "${rootfs}" apt-get -y install mali-g610-firmware
chroot "${rootfs}" apt-get -y dist-upgrade

# Install libmali blobs alongside panfork
chroot "${rootfs}" apt-get -y install libmali-g610-x11

# Install the rockchip camera engine
chroot "${rootfs}" apt-get -y install camera-engine-rkaiq-rk3588

# Install wiring orangepi package
chroot "${rootfs}" apt-get -y install wiringpi-opi libwiringpi2-opi libwiringpi-opi-dev
echo "BOARD=orangepicm5" > "${rootfs}/etc/orangepi-release"

return 0
}

0 comments on commit c4a463a

Please sign in to comment.