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/rockchip-rk356x.conf
Views: 3960
source "${BASH_SOURCE%/*}/include/rockchip64_common.inc"12BOOTBRANCH='branch:v2017.09-rk3588'3OVERLAY_PREFIX="rk356x"45CPUMIN=4080006CPUMAX=180000078case $BRANCH in910legacy)11KERNELBRANCH='branch:orange-pi-5.10-rk35xx'12LINUXCONFIG='linux-rockchip-rk356x-legacy'13;;14current)15KERNELBRANCH='branch:orange-pi-6.6-rk35xx'16LINUXCONFIG='linux-rockchip-rk356x-current'17;;18esac1920prepare_boot_configuration2122install_balenaEtcher(){2324if [[ $BUILD_DESKTOP == yes && $install_balena_etcher == yes ]]; then2526balena_etcher_deb=balena-etcher-electron_1.7.9+5945ab1f_arm64.deb27balena_etcher_url="https://github.com/Itai-Nelken/BalenaEtcher-arm/releases/download/v1.7.9/${balena_etcher_deb}"28balena_etcher=${EXTER}/cache/debs/arm64/${balena_etcher_deb}2930if [[ ! -f ${balena_etcher} ]]; then31wget -P ${EXTER}/cache/debs/arm64 ${balena_etcher_url}32fi3334install_deb_chroot ${balena_etcher}35fi36}3738family_tweaks_bsp()39{40install -m 755 $EXTER/packages/bsp/adb/adbd-${ARCH} ${destination}/usr/bin/adbd41}4243family_tweaks_s() {4445rsync -a --chown=root:root "${EXTER}"/packages/bsp/rk356x/* ${SDCARD}/4647chroot $SDCARD /bin/bash -c "apt-get -y -qq install dnsmasq v4l-utils swig python3-dev python3-setuptools bluez libncurses-dev" >> "${DEST}"/${LOG_SUBPATH}/install.log 2>&14849[[ ${RELEASE} == jammy ]] && rm ${SDCARD}/etc/profile.d/orangepi-ssh-title.sh # for adbd50chroot "${SDCARD}" /bin/bash -c "systemctl --no-reload enable usbdevice.service >/dev/null 2>&1"5152if [[ -f "${SDCARD}"/etc/profile.d/im-config_wayland.sh && ${DESKTOP_ENVIRONMENT} =~ xfce|kde-plasma ]]; then53chroot $SDCARD /bin/bash -c "rm /etc/profile.d/im-config_wayland.sh" # for adbd54fi5556install_balenaEtcher57install_wiringop58if [[ -f ${SDCARD}/etc/pulse/default.pa && ${SELECTED_CONFIGURATION} == desktop && ${BOARD} =~ orangepicm4|orangepi3b ]]; then59sed -i "s/auto-profiles = yes/auto-profiles = no/" ${SDCARD}/usr/share/pulseaudio/alsa-mixer/profile-sets/default.conf6061echo "load-module module-alsa-sink device=hw:0,0 sink_name=AudioCodec-Playback sink_properties=\"device.description='Headphone'\"" >> ${SDCARD}/etc/pulse/default.pa62echo "load-module module-alsa-sink device=hw:1,0 sink_name=HDMI-Playback sink_properties=\"device.description='HDMI Audio'\"" >> ${SDCARD}/etc/pulse/default.pa63fi64}656667