armbian-build/config/sources/pine64.conf
2016-06-13 22:25:46 +03:00

50 lines
1.0 KiB
Plaintext

BOOTLOADER='https://github.com/zador-blood-stained/u-boot-pine64-armbian.git'
BOOTBRANCH=''
BOOTSOURCE='u-boot-pine64-armbian'
UBOOT_NEEDS_GCC='<4.9'
OFFSET=20
BOOTSIZE=64
case $BRANCH in
default)
LINUXKERNEL='https://github.com/longsleep/linux-pine64.git'
KERNELBRANCH='pine64-hacks-1.2'
LINUXSOURCE='linux-pine64'
GOVERNOR=interactive
;;
dev)
LINUXKERNEL='https://github.com/apritzel/linux.git'
KERNELBRANCH='a64-wip'
LINUXSOURCE='linux-pine64-dev'
GOVERNOR=ondemand
;;
esac
ARCH=arm64
CPUMIN=480000
CPUMAX=1200000
UBOOT_FILES="boot0.bin u-boot-with-dtb.bin pine64-plus.dtb pine64.dtb"
write_uboot_platform()
{
dd if=$1/boot0.bin of=$2 bs=1k seek=8 conv=fsync > /dev/null 2>&1
dd if=$1/u-boot-with-dtb.bin of=$2 bs=1k seek=19096 conv=fsync > /dev/null 2>&1
if [[ -n $CACHEDIR ]]; then
cp $1/pine64-plus.dtb $CACHEDIR/mount/boot
cp $1/pine64.dtb $CACHEDIR/mount/boot
else
cp $1/pine64-plus.dtb /boot
cp $1/pine64.dtb /boot
fi
}
install_boot_script()
{
cp $SRC/lib/config/bootscripts/boot-pine64.cmd $CACHEDIR/sdcard/boot/boot.cmd
}