armbian-build/config/sources/sun50iw1.conf
2017-05-13 17:27:39 +03:00

57 lines
1.4 KiB
Plaintext

source "${BASH_SOURCE%/*}/sunxi64_common.inc"
OVERLAY_PREFIX='sun50i-a64'
case $BRANCH in
default)
# for backwards compatibility
LINUXFAMILY=pine64
BOOTSOURCE='https://github.com/armbian/u-boot-pine64-legacy.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/
if [[ $BOARD == pinebook-a64 ]]; then
cp $SRC/lib/config/asound.state.pinebooka64-default $CACHEDIR/$SDCARD/var/lib/alsa/asound.state
else
cp $SRC/lib/config/asound.state.pine64-default $CACHEDIR/$SDCARD/var/lib/alsa/asound.state
fi
fi
if [[ $BRANCH == dev && $BOARD == pine64so ]]; then
echo "mmc0-broken-cd=on" >> $CACHEDIR/$SDCARD/boot/armbianEnv.txt
fi
}