60 lines
1.5 KiB
Plaintext
60 lines
1.5 KiB
Plaintext
|
|
BOOTSOURCE='https://github.com/zador-blood-stained/u-boot-pine64-armbian.git'
|
|
BOOTDIR='u-boot-pine64'
|
|
|
|
case $BRANCH in
|
|
default)
|
|
BOOTBRANCH='branch:master'
|
|
KERNELSOURCE='https://github.com/longsleep/linux-pine64.git'
|
|
KERNELBRANCH='branch:pine64-hacks-1.2'
|
|
KERNELDIR='linux-pine64'
|
|
GOVERNOR=interactive
|
|
OFFSET=2
|
|
UBOOT_FILES="u-boot-with-dtb.bin pine64-plus.dtb pine64.dtb pine64drm-plus.dtb pine64drm.dtb"
|
|
INITRD_ARCH=arm
|
|
;;
|
|
|
|
dev)
|
|
BOOTBRANCH='branch:next'
|
|
KERNELSOURCE='https://github.com/apritzel/linux.git'
|
|
KERNELBRANCH='branch:a64-v5'
|
|
KERNELDIR='linux-pine64-dev'
|
|
GOVERNOR=ondemand
|
|
UBOOT_FILES="u-boot-with-spl.bin"
|
|
;;
|
|
esac
|
|
|
|
ARCH=arm64
|
|
KERNEL_IMAGE_TYPE=Image
|
|
|
|
CPUMIN=480000
|
|
CPUMAX=1200000
|
|
|
|
write_uboot_platform()
|
|
{
|
|
# default branch
|
|
[[ -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
|
|
if [[ -f $1/pine64-plus.dtb ]]; then
|
|
if [[ -n $CACHEDIR ]]; then
|
|
cp $1/{pine64-plus.dtb,pine64.dtb,pine64drm-plus.dtb,pine64drm.dtb} $CACHEDIR/mount/boot
|
|
else
|
|
cp $1/{pine64-plus.dtb,pine64.dtb,pine64drm-plus.dtb,pine64drm.dtb} /boot
|
|
fi
|
|
fi
|
|
# mainline
|
|
[[ -f $1/u-boot-with-spl.bin ]] && dd if=$1/u-boot-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
|
|
}
|
|
|
|
install_boot_script()
|
|
{
|
|
cp $SRC/lib/config/bootscripts/boot-pine64.cmd $CACHEDIR/sdcard/boot/boot.cmd
|
|
}
|