source "${BASH_SOURCE%/*}/sunxi64_common.inc" OVERLAY_PREFIX='sun50i-a64' case $BRANCH in default) BOOTSOURCE='https://github.com/zador-blood-stained/u-boot-pine64-armbian.git' BOOTDIR='u-boot-pine64' BOOTBRANCH='branch:master' BOOTSCRIPT='boot-pine64-default.cmd:boot.cmd' BOOTENV_FILE='pine64-default.txt' UBOOT_TARGET_MAP=';;u-boot-with-dtb.bin' BOOTPATCHDIR='u-boot-pine64-default' KERNELSOURCE='https://github.com/longsleep/linux-pine64.git' KERNELBRANCH='branch:pine64-hacks-1.2' KERNELDIR='linux-pine64' GOVERNOR=interactive INITRD_ARCH=arm ;; dev) BOOTENV_FILE='sun50iw1-next.txt' GOVERNOR=ondemand ;; esac CPUMIN=480000 CPUMAX=1200000 write_uboot_platform() { # default [[ -f $1/u-boot-with-dtb.bin ]] && dd if=$1/u-boot-with-dtb.bin of=$2 bs=1k seek=8 conv=fsync > /dev/null 2>&1 || true # mainline [[ -f $1/u-boot-sunxi-with-spl.bin ]] && dd if=$1/u-boot-sunxi-with-spl.bin of=$2 bs=1k seek=8 conv=fsync > /dev/null 2>&1 || true } family_tweaks() { if [[ $BRANCH == default ]]; then mkdir -p $CACHEDIR/$SDCARD/var/lib/alsa/ cp $SRC/lib/config/asound.state.pine64-default $CACHEDIR/$SDCARD/var/lib/alsa/asound.state fi if [[ $BRANCH == default && $BOARD == pine64so ]]; then echo "pine64_model=pine64so" >> $CACHEDIR/$SDCARD/boot/armbianEnv.txt fi if [[ $BRANCH == dev && $BOARD == pine64so ]]; then echo "mmc0-broken-cd=on" >> $CACHEDIR/$SDCARD/boot/armbianEnv.txt fi }