Updating the kernel branch for all sources at once may break things since it takes time to update patches and configuration
70 lines
1.5 KiB
Plaintext
70 lines
1.5 KiB
Plaintext
BOOTSCRIPT="boot-rockchip.cmd:boot.cmd"
|
|
BOOTENV_FILE='rockchip-default.txt'
|
|
|
|
UBOOT_TARGET_MAP=";;$SRC/packages/blobs/rockchip/rk3288_boot.bin u-boot-rockchip-with-spl.bin"
|
|
|
|
UBOOT_USE_GCC='> 6.3'
|
|
|
|
HAS_UUID_SUPPORT=yes
|
|
BOOTDELAY=0
|
|
|
|
BOOTSOURCE=$MAINLINE_UBOOT_SOURCE
|
|
BOOTDIR=$MAINLINE_UBOOT_DIR
|
|
BOOTBRANCH=$MAINLINE_UBOOT_BRANCH
|
|
|
|
SERIALCON=ttyS2
|
|
|
|
case $BRANCH in
|
|
default)
|
|
KERNELSOURCE='https://github.com/mqmaker/linux-rockchip'
|
|
KERNELBRANCH='branch:miqi/release-4.4'
|
|
KERNELDIR='linux-rockchip'
|
|
;;
|
|
|
|
next)
|
|
KERNELSOURCE=$MAINLINE_KERNEL_SOURCE
|
|
KERNELBRANCH='branch:linux-4.13.y'
|
|
KERNELDIR=$MAINLINE_KERNEL_DIR
|
|
;;
|
|
|
|
dev)
|
|
KERNELSOURCE=$MAINLINE_KERNEL_SOURCE
|
|
KERNELBRANCH='branch:master'
|
|
KERNELDIR=$MAINLINE_KERNEL_DIR
|
|
;;
|
|
|
|
esac
|
|
|
|
CPUMIN="600000"
|
|
CPUMAX="1900000"
|
|
GOVERNOR="conservative"
|
|
|
|
write_uboot_platform()
|
|
{
|
|
dd if=/dev/zero of=$2 bs=1k count=1023 seek=1 status=noxfer > /dev/null 2>&1
|
|
dd if=$1/u-boot-rockchip-with-spl.bin of=$2 seek=64 conv=notrunc > /dev/null 2>&1
|
|
}
|
|
|
|
uboot_custom_postprocess()
|
|
{
|
|
tools/mkimage -n rk3288 -T rksd -d spl/u-boot-spl-dtb.bin u-boot-rockchip-with-spl.bin
|
|
cat u-boot-dtb.bin >> u-boot-rockchip-with-spl.bin
|
|
}
|
|
|
|
family_tweaks()
|
|
{
|
|
if [[ $BOARD == tinkerboard ]]; then
|
|
echo "fdt_file=rk3288-miniarm.dtb" >> $SDCARD/boot/armbianEnv.txt
|
|
fi
|
|
}
|
|
|
|
family_tweaks_bsp()
|
|
{
|
|
if [[ $BRANCH != default ]]; then
|
|
mkdir -p $destination/etc/udev/rules.d
|
|
mkdir -p $destination/usr/local/bin
|
|
cp $SRC/packages/bsp/rockchip/hdmi.rules $destination/etc/udev/rules.d
|
|
install -m 755 $SRC/packages/bsp/rockchip/hdmi-hotplug $destination/usr/local/bin
|
|
fi
|
|
}
|