OrangePi_CM5/external/config/sources/families/sun50iw6.conf

83 lines
2.2 KiB
Plaintext
Raw Normal View History

2020-10-30 09:50:39 +08:00
ATF_PLAT="sun50i_h6";
source "${BASH_SOURCE%/*}/include/sunxi64_common.inc"
source "${BASH_SOURCE%/*}/include/ffmepg_kodi.inc"
2020-10-30 09:50:39 +08:00
OVERLAY_PREFIX='sun50i-h6'
[[ -z $CPUMIN ]] && CPUMIN=480000
[[ -z $CPUMAX ]] && CPUMAX=1810000
GOVERNOR=ondemand
ASOUND_STATE='asound.state.sun50iw2-current'
2020-10-30 09:50:39 +08:00
2022-03-07 16:26:01 +08:00
LINUXFAMILY=sun50iw6
2020-10-30 09:50:39 +08:00
case $BRANCH in
2020-11-26 09:32:04 +08:00
2022-03-07 16:26:01 +08:00
legacy)
2020-10-30 09:50:39 +08:00
LINUXFAMILY=sun50iw6
2022-03-07 16:26:01 +08:00
KERNELBRANCH="branch:orange-pi-4.9-sun50iw6"
KERNELPATCHDIR=${BOARDFAMILY}-${BRANCH}
2020-10-30 09:50:39 +08:00
BOOTCONFIG="sun50iw6p1_config"
2022-03-07 16:26:01 +08:00
BOOTBRANCH='branch:v2014.07-sun50iw6-linux4.9'
UBOOT_TARGET_MAP=';;u-boot.bin:u-boot.fex
2020-11-26 09:32:04 +08:00
spl;;boot0_sdcard.bin:boot0_sdcard.fex'
2022-03-07 16:26:01 +08:00
UBOOT_COMPILER="arm-linux-gnueabi-"
UBOOT_USE_GCC='> 4.0'
BOOTENV_FILE=sun50iw6-default.txt
BOOTSCRIPT='boot-sun50iw6-legacy.cmd:boot.cmd'
PACK_UBOOT="yes"
OFFSET=20
ATFSOURCE=""
ATF_COMPILE="no"
INITRD_ARCH=arm
2020-11-26 09:32:04 +08:00
ASOUND_STATE='asound.state.sun50iw6-legacy'
BOOT_FDT_FILE=sunxi/sun50i-h6-orangepi-${BOARD:8}.dtb
2022-03-07 16:26:01 +08:00
;;
2021-11-25 19:16:52 +08:00
current)
2022-03-25 17:28:23 +08:00
ASOUND_STATE='asound.state.sun50iw6-current'
#KERNELBRANCH="branch:orange-pi-5.10"
#LINUXCONFIG="linux-5.10-sunxi64-current"
BOOTBRANCH='branch:v2021.10-sunxi'
KERNELBRANCH="branch:orange-pi-5.10-media"
LINUXCONFIG="linux-5.10-sunxi64-media"
2022-03-25 17:28:23 +08:00
;;
next)
#KERNEL_USE_GCC='> 10.0'
#ATF_USE_GCC='> 10.0'
BOOTBRANCH='branch:v2021.10-sunxi'
2022-03-25 17:28:23 +08:00
ASOUND_STATE='asound.state.sun50iw6-current'
KERNELBRANCH="branch:orange-pi-5.16-sunxi64"
LINUXCONFIG="linux-5.16-sunxi64-current"
2021-11-25 19:16:52 +08:00
;;
2020-10-30 09:50:39 +08:00
esac
family_tweaks_s()
{
2022-04-12 16:12:28 +08:00
if [[ $BUILD_DESKTOP == yes && $BOARD =~ orangepi3-lts|orangepi3 ]]; then
2022-03-21 11:55:20 +08:00
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='Audio Codec'\"" >> ${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
if [[ $BOARD == orangepi3-lts && $BRANCH == current && $RELEASE == bullseye ]]; then
ffmepg_kodi_install
fi
}
family_tweaks_bsp()
{
2022-04-12 16:12:28 +08:00
:
}