mirror of
https://github.com/DrHo1y/orangepi-build.git
synced 2026-11-24 19:12:45 +07:00
Support Orange Pi CM4/3B
This commit is contained in:
49
external/config/sources/families/rockchip-rk356x.conf
vendored
Normal file
49
external/config/sources/families/rockchip-rk356x.conf
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
source "${BASH_SOURCE%/*}/include/rockchip64_common.inc"
|
||||
|
||||
BOOTBRANCH='branch:v2017.09-rk3588'
|
||||
OVERLAY_PREFIX="rk356x"
|
||||
|
||||
case $BRANCH in
|
||||
|
||||
legacy)
|
||||
KERNELBRANCH='branch:orange-pi-5.10-rk35xx'
|
||||
LINUXCONFIG='linux-rockchip-rk356x-legacy'
|
||||
;;
|
||||
esac
|
||||
|
||||
prepare_boot_configuration
|
||||
|
||||
install_balenaEtcher(){
|
||||
|
||||
if [[ $BUILD_DESKTOP == yes && $install_balena_etcher == yes ]]; then
|
||||
|
||||
balena_etcher_deb=balena-etcher-electron_1.7.9+5945ab1f_arm64.deb
|
||||
balena_etcher_url="https://github.com/Itai-Nelken/BalenaEtcher-arm/releases/download/v1.7.9/${balena_etcher_deb}"
|
||||
balena_etcher=${EXTER}/cache/debs/arm64/${balena_etcher_deb}
|
||||
|
||||
if [[ ! -f ${balena_etcher} ]]; then
|
||||
wget -P ${EXTER}/cache/debs/arm64 ${balena_etcher_url}
|
||||
fi
|
||||
|
||||
install_deb_chroot ${balena_etcher}
|
||||
fi
|
||||
}
|
||||
|
||||
family_tweaks_bsp()
|
||||
{
|
||||
:
|
||||
}
|
||||
|
||||
family_tweaks_s() {
|
||||
|
||||
rsync -a --chown=root:root "${EXTER}"/packages/bsp/rk356x/* ${SDCARD}/
|
||||
install_docker
|
||||
install_balenaEtcher
|
||||
install_wiringop
|
||||
if [[ -f ${SDCARD}/etc/pulse/default.pa && ${SELECTED_CONFIGURATION} == desktop && ${BOARD} =~ orangepicm4|orangepi3b ]]; then
|
||||
sed -i "s/auto-profiles = yes/auto-profiles = no/" ${SDCARD}/usr/share/pulseaudio/alsa-mixer/profile-sets/default.conf
|
||||
|
||||
echo "load-module module-alsa-sink device=hw:0,0 sink_name=AudioCodec-Playback sink_properties=\"device.description='Headphone'\"" >> ${SDCARD}/etc/pulse/default.pa
|
||||
echo "load-module module-alsa-sink device=hw:1,0 sink_name=HDMI-Playback sink_properties=\"device.description='HDMI Audio'\"" >> ${SDCARD}/etc/pulse/default.pa
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user