Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
orangepi-xunlong
GitHub Repository: orangepi-xunlong/orangepi-build
Path: blob/next/external/config/sources/families/rk3399.conf
18286 views
1
source "${BASH_SOURCE%/*}/include/rockchip64_common.inc"
2
source "${BASH_SOURCE%/*}/include/ffmepg_kodi.inc"
3
4
BOOTPATCHDIR="u-boot-rockchip64-mainline"
5
BOOT_SOC="rk3399"
6
ASOUND_STATE="asound.state.rk3399"
7
BOOTBRANCH="branch:v2020.04-rockchip64"
8
LINUXCONFIG='linux-rk3399-'$BRANCH
9
LINUXFAMILY=rk3399
10
11
case $BRANCH in
12
13
legacy)
14
15
BOOTBRANCH="branch:v2020.10-rockchip64"
16
KERNELBRANCH='branch:orange-pi-4.4-rockchip64'
17
#KERNELBRANCH='branch:orange-pi-4.4-rk3399'
18
#LINUXCONFIG=linux-rk3399-new-legacy
19
KERNEL_USE_GCC='> 7.0'
20
KERNEL_COMPILER='aarch64-linux-gnu-'
21
22
[[ ${BOARD} == orangepi800 ]] && ASOUND_STATE='asound.state.orangepi800-es8316'
23
[[ ${BOARD} == orangepi4-lts ]] && ASOUND_STATE='asound.state.orangepi4-es8316'
24
25
if [[ $RELEASE == xenial && $BUILD_DESKTOP == yes ]]; then
26
PACKAGE_LIST_FAMILY="bison flex libffi-dev libmount-dev libpcre3 libpcre3-dev zlib1g-dev libssl-dev gtk-doc-tools \
27
automake autoconf libtool gettext make autopoint g++ xz-utils net-tools libasound2-dev \
28
libx11-dev unzip libxext-dev libjpeg62-dev gdisk librtmp-dev libxv-dev libpulse-dev libgl1-mesa-dev libgles2-mesa \
29
v4l-utils libpng16-16 cmake make"
30
31
PACKAGE_LIST_FAMILY_REMOVE="gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-pulseaudio \
32
gstreamer1.0-plugins-ugly-amr libgstreamer-plugins-base1.0-0 libgstreamer-plugins-good1.0-0 libgstreamer1.0-0"
33
34
elif [[ $RELEASE == bionic && $BUILD_DESKTOP == yes ]]; then
35
PACKAGE_LIST_FAMILY="bison flex libffi-dev libmount-dev libpcre3 libpcre3-dev zlib1g-dev libssl-dev gtk-doc-tools \
36
automake autoconf libtool gettext make autopoint g++ xz-utils net-tools unzip cmake make libglib2.0-dev \
37
xutils-dev libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad \
38
gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa \
39
gstreamer1.0-pulseaudio libgstreamer-plugins-base1.0-dev"
40
41
fi
42
;;
43
44
current)
45
46
BOOTBRANCH="branch:v2020.10-rockchip64"
47
KERNELBRANCH='branch:orange-pi-5.10-rk35xx'
48
LINUXCONFIG='linux-5.10-rk3399'
49
[[ ${BOARD} == orangepi4-lts ]] && ASOUND_STATE='asound.state.orangepi4-es8316'
50
[[ ${BOARD} == orangepi800 ]] && ASOUND_STATE='asound.state.orangepi800-es8316'
51
;;
52
53
next)
54
55
BOOTBRANCH='branch:v2020.10-rockchip64'
56
KERNELBRANCH='branch:orange-pi-5.18'
57
LINUXCONFIG='linux-5.18-next'
58
[[ ${BOARD} =~ orangepi800|orangepi4-lts ]] && ASOUND_STATE='asound.state.orangepi800-next'
59
;;
60
61
esac
62
63
if [[ $BOARD =~ orangepi4|orangepi4-lts|orangepi800 ]]; then
64
65
BOOT_USE_BLOBS=yes
66
DDR_BLOB='rk33/rk3399_ddr_933MHz_v1.30.bin'
67
MINILOADER_BLOB='rk33/rk3399_miniloader_v1.19.bin'
68
BL31_BLOB='rk33/rk3399_bl31_v1.36.elf'
69
70
else
71
72
BOOT_USE_BLOBS=yes
73
DDR_BLOB='rk33/rk3399_ddr_800MHz_v1.24.bin'
74
MINILOADER_BLOB='rk33/rk3399_miniloader_v1.19.bin'
75
BL31_BLOB='rk33/rk3399_bl31_v1.30.elf'
76
77
fi
78
79
family_tweaks_s()
80
{
81
82
if [[ -f ${SDCARD}/etc/pulse/default.pa && ${BOARD} == orangepi800 ]]; then
83
84
sed -i "s/auto-profiles = yes/auto-profiles = no/" ${SDCARD}/usr/share/pulseaudio/alsa-mixer/profile-sets/default.conf
85
86
echo "load-module module-alsa-sink device=hw:0,0 sink_name=AudioCodec-Playback sink_properties=\"device.description='Headphone or Speaker'\"" >> ${SDCARD}/etc/pulse/default.pa
87
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
88
89
elif [[ -f ${SDCARD}/etc/pulse/default.pa && ${BOARD} =~ orangepi4|orangepi4-lts ]]; then
90
91
sed -i "s/auto-profiles = yes/auto-profiles = no/" ${SDCARD}/usr/share/pulseaudio/alsa-mixer/profile-sets/default.conf
92
93
echo "load-module module-alsa-sink device=hw:0,0 sink_name=AudioCodec-Playback sink_properties=\"device.description='Headphone'\"" >> ${SDCARD}/etc/pulse/default.pa
94
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
95
96
fi
97
98
if [[ $BRANCH == next && $RELEASE == jammy ]]; then
99
100
ffmepg_kodi_install
101
102
fi
103
}
104
105
prepare_boot_configuration
106
107
atf_custom_postprocess()
108
{
109
:
110
}
111
112