CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
orangepi-xunlong

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: orangepi-xunlong/orangepi-build
Path: blob/next/external/config/sources/families/sun50iw6.conf
Views: 3960
1
ATF_PLAT="sun50i_h6";
2
source "${BASH_SOURCE%/*}/include/sunxi64_common.inc"
3
source "${BASH_SOURCE%/*}/include/ffmepg_kodi.inc"
4
OVERLAY_PREFIX='sun50i-h6'
5
[[ -z $CPUMIN ]] && CPUMIN=480000
6
[[ -z $CPUMAX ]] && CPUMAX=1810000
7
GOVERNOR=ondemand
8
ASOUND_STATE='asound.state.sun50iw2-current'
9
10
LINUXFAMILY=sun50iw6
11
12
case $BRANCH in
13
14
legacy)
15
LINUXFAMILY=sun50iw6
16
KERNELBRANCH="branch:orange-pi-4.9-sun50iw6"
17
KERNELPATCHDIR=${BOARDFAMILY}-${BRANCH}
18
19
BOOTCONFIG="sun50iw6p1_config"
20
BOOTBRANCH='branch:v2014.07-sun50iw6-linux4.9'
21
UBOOT_TARGET_MAP=';;u-boot.bin:u-boot.fex
22
spl;;boot0_sdcard.bin:boot0_sdcard.fex'
23
UBOOT_COMPILER="arm-linux-gnueabi-"
24
UBOOT_USE_GCC='> 4.0'
25
BOOTENV_FILE=sun50iw6-default.txt
26
BOOTSCRIPT='boot-sun50iw6-legacy.cmd:boot.cmd'
27
PACK_UBOOT="yes"
28
OFFSET=20
29
ATFSOURCE=""
30
ATF_COMPILE="no"
31
INITRD_ARCH=arm
32
ASOUND_STATE='asound.state.sun50iw6-legacy'
33
BOOT_FDT_FILE=sunxi/sun50i-h6-orangepi-${BOARD:8}.dtb
34
;;
35
36
current)
37
38
ASOUND_STATE='asound.state.sun50iw6-current'
39
40
#KERNELBRANCH="branch:orange-pi-5.10"
41
#LINUXCONFIG="linux-5.10-sunxi64-current"
42
BOOTBRANCH='branch:v2021.10-sunxi'
43
KERNELBRANCH="branch:orange-pi-5.10-media"
44
LINUXCONFIG="linux-5.10-sunxi64-media"
45
;;
46
47
next)
48
49
#KERNEL_USE_GCC='> 10.0'
50
#ATF_USE_GCC='> 10.0'
51
BOOTBRANCH='branch:v2021.10-sunxi'
52
ASOUND_STATE='asound.state.sun50iw6-current'
53
KERNELBRANCH="branch:orange-pi-5.16-sunxi64"
54
LINUXCONFIG="linux-5.16-sunxi64-current"
55
56
;;
57
esac
58
59
family_tweaks_s()
60
{
61
62
if [[ $BUILD_DESKTOP == yes && $BOARD =~ orangepi3-lts|orangepi3 ]]; then
63
64
sed -i "s/auto-profiles = yes/auto-profiles = no/" ${SDCARD}/usr/share/pulseaudio/alsa-mixer/profile-sets/default.conf
65
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
66
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
67
68
fi
69
70
if [[ $BOARD == orangepi3-lts && $BRANCH == current && $RELEASE == bullseye ]]; then
71
72
ffmepg_kodi_install
73
74
fi
75
76
}
77
78
79
family_tweaks_bsp()
80
{
81
:
82
}
83
84