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/sun8i.conf
Views: 3960
source "${BASH_SOURCE%/*}/include/sunxi_common.inc"12if [[ -z ${OVERLAY_PREFIX} ]]; then3OVERLAY_PREFIX='sun8i-h3'4fi56[[ -z $CPUMIN ]] && CPUMIN=4800007[[ -z $CPUMAX ]] && CPUMAX=140000089family_tweaks_s()10{1112if [[ -f $SDCARD/lib/systemd/system/ap6212-bluetooth.service && $BRANCH == current ]]; then1314# install and enable Bluetooth15chroot $SDCARD /bin/bash -c "apt-get -y -qq install rfkill bluetooth bluez bluez-tools >/dev/null 2>&1"16chroot $SDCARD /bin/bash -c "systemctl --no-reload enable ap6212-bluetooth.service >/dev/null 2>&1"17fi1819if [[ $BOARD == orangepizeroplus2h3 && $BRANCH == legacy ]]; then2021chroot $SDCARD /bin/bash -c "apt-get -y -qq install rfkill bluetooth bluez bluez-tools >/dev/null 2>&1"2223cat <<-EOF > "${SDCARD}"/etc/rc.local24#!/bin/sh -e25#26# rc.local27#28# This script is executed at the end of each multiuser runlevel.29# Make sure that the script will "exit 0" on success or any other30# value on error.31#32# In order to enable or disable this script just change the execution33# bits.34#35# By default this script does nothing.3637/usr/bin/zeroplus2-bt.sh3839exit 040EOF41chmod +x "${SDCARD}"/etc/rc.local42fi43}4445family_tweaks_bsp_s()46{4748if [[ $BOARD == orangepizeroplus2h3 && $BRANCH == current ]]; then4950install -m 755 $EXTER/packages/blobs/bt/brcm_patchram_plus/brcm_patchram_plus_$ARCH $destination/usr/bin/brcm_patchram_plus51cp $EXTER/packages/bsp/sunxi/ap6212-bluetooth.service $destination/lib/systemd/system/52fi5354if [[ $BOARD == orangepizeroplus2h3 && $BRANCH == legacy ]]; then5556install -m 755 $EXTER/packages/blobs/bt/brcm_patchram_plus/brcm_patchram_plus_$ARCH $destination/usr/bin/brcm_patchram_plus57install -m 755 $EXTER/packages/bsp/sunxi/zeroplus2-bt.sh $destination/usr/bin/58fi5960if [[ $BRANCH == legacy ]]; then6162arm-linux-gnueabihf-gcc $EXTER/packages/bsp/sunxi-temp/sunxi_tp_temp.c -o $destination/usr/bin/sunxi_tp_temp63# convert and add fex files64mkdir -p $destination/boot/bin65for i in $(ls -w1 $EXTER/config/fex/*.fex | xargs -n1 basename); do66fex2bin $EXTER/config/fex/${i%*.fex}.fex $destination/boot/bin/${i%*.fex}.bin67done68fi6970# h3disp for sun8i/3.4.x71if [[ $BRANCH == legacy ]]; then7273install -m 755 $EXTER/packages/bsp/{h3disp,h3consumption,setsystem} $destination/usr/bin74fi75}767778