Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Path: blob/next/external/config/sources/families/sun50iw2.conf
Views: 3960
ATF_PLAT="sun50i_a64"1source "${BASH_SOURCE%/*}/include/sunxi64_common.inc"2OVERLAY_PREFIX='sun50i-h5'3[[ -z $CPUMIN ]] && CPUMIN=4800004[[ -z $CPUMAX ]] && CPUMAX=13680005GOVERNOR=ondemand6ASOUND_STATE='asound.state.sun50iw2-current'78[[ $RELEASE == focal ]] && MODULES_BLACKLIST_CURRENT="lima"910case $BRANCH in11legacy)1213LINUXFAMILY=sun50iw21415KERNELBRANCH="branch:orange-pi-3.10-sun50iw2"16KERNELPATCHDIR=${BOARDFAMILY}-${BRANCH}17KERNEL_COMPILER="aarch64-linux-gnu-"18KERNEL_USE_GCC='> 3.0'1920BOOTCONFIG="sun50iw2p1_config"21BOOTBRANCH='branch:v2014.07-sun50iw2-linux3.10'22UBOOT_TARGET_MAP=';;u-boot.bin:u-boot.fex23spl;;boot0_sdcard.bin:boot0_sdcard.fex'24UBOOT_COMPILER="arm-linux-gnueabi-"25UBOOT_USE_GCC='> 4.0'26BOOTENV_FILE=sun50iw2-legacy.txt27BOOTSCRIPT='boot-sun50iw2-legacy.cmd:boot.cmd'28PACK_UBOOT="yes"29OFFSET=2030ATFSOURCE=""31ATF_COMPILE="no"32INITRD_ARCH=arm33ASOUND_STATE='asound.state.sun50iw2-legacy'34BOOT_FDT_FILE=sun50i-h5-orangepi-${BOARD:8}.dtb35;;3637current)3839if [[ $BOARD =~ orangepipch5|orangepioneh5 ]]; then4041KERNELBRANCH="branch:orange-pi-5.10"42LINUXCONFIG=linux-5.10-sunxi64-current43fi44;;45esac4647family_tweaks_s()48{4950if [[ -f $SDCARD/lib/systemd/system/ap6212-bluetooth.service ]]; then5152# install and enable Bluetooth53chroot $SDCARD /bin/bash -c "apt-get -y -qq install rfkill bluetooth bluez bluez-tools >/dev/null 2>&1"54chroot $SDCARD /bin/bash -c "systemctl --no-reload enable ap6212-bluetooth.service >/dev/null 2>&1"55fi5657if [[ -f $SDCARD/lib/systemd/system/rtl8723bs-bluetooth.service ]]; then5859# install and enable Bluetooth60chroot $SDCARD /bin/bash -c "apt-get -y -qq install rfkill bluetooth bluez bluez-tools >/dev/null 2>&1"61chroot $SDCARD /bin/bash -c "systemctl --no-reload enable rtl8723bs-bluetooth.service >/dev/null 2>&1"62fi6364if [[ $BOARD == orangepizeroplus2h5 && $BRANCH == legacy ]]; then6566chroot $SDCARD /bin/bash -c "apt-get -y -qq install rfkill bluetooth bluez bluez-tools >/dev/null 2>&1"6768cat <<-EOF > "${SDCARD}"/etc/rc.local69#!/bin/sh -e70#71# rc.local72#73# This script is executed at the end of each multiuser runlevel.74# Make sure that the script will "exit 0" on success or any other75# value on error.76#77# In order to enable or disable this script just change the execution78# bits.79#80# By default this script does nothing.8182/usr/bin/zeroplus2-bt.sh8384exit 085EOF86chmod +x "${SDCARD}"/etc/rc.local87fi88}8990family_tweaks_bsp()91{9293if [[ $BOARD == orangepizeroplus2h5 ]]; then9495install -m 755 $EXTER/packages/blobs/bt/brcm_patchram_plus/brcm_patchram_plus_$ARCH $destination/usr/bin/brcm_patchram_plus9697if [[ $BRANCH == current ]]; then98cp $EXTER/packages/bsp/sunxi/ap6212-bluetooth.service $destination/lib/systemd/system/99fi100101if [[ $BRANCH == legacy ]]; then102cp ${EXTER}/packages/bsp/sunxi/ap6212.conf $destination//etc/modprobe.d/103install -m 755 $EXTER/packages/bsp/sunxi/zeroplus2-bt-legacy.sh $destination/usr/bin/zeroplus2-bt.sh104fi105fi106107if [[ $BOARD == orangepiprime ]]; then108109install -m 755 $EXTER/packages/blobs/bt/hciattach/rtk_hciattach_$ARCH $destination/usr/bin/rtk_hciattach110cp $EXTER/packages/bsp/sunxi/rtl8723bs-bluetooth.service $destination/lib/systemd/system/111fi112}113114115