forked from Joshua-Riek/ubuntu-rockchip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add board targets for the Orange Pi 5 Max and CM5
- Loading branch information
1 parent
169debb
commit c4a463a
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |