* Bump to 4.18, removing the obvious, fixing build problems, put some on waiting. * Pin 4.18 to DEV, rollback 4.14 to NEXT, adjust configs, remove one deprecated patch from NEXT and add board-h3-address-some-stability-issues.patch * Adjust few boards in development to new reality, removing it from NEXT for now * Adjust few board configs * Board config adjustement * Adjust few boards configs * Port NeoCore2 and Neo21.1 to 4.14.y * Adjust board config * Adjust board config
98 lines
2.9 KiB
Plaintext
98 lines
2.9 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'
|
|
|
|
BOOTDELAY=0
|
|
|
|
BOOTSOURCE=$MAINLINE_UBOOT_SOURCE
|
|
BOOTDIR=$MAINLINE_UBOOT_DIR
|
|
BOOTBRANCH='tag:v2018.07'
|
|
|
|
SERIALCON=ttyS2
|
|
|
|
case $BRANCH in
|
|
default)
|
|
KERNELSOURCE='https://github.com/rockchip-linux/kernel.git'
|
|
KERNELBRANCH='branch:release-4.4'
|
|
KERNELPATCHDIR='rockchip-default'
|
|
KERNELDIR='linux-rockchip'
|
|
|
|
KERNEL_USE_GCC='> 7.0'
|
|
;;
|
|
|
|
next)
|
|
KERNELSOURCE=$MAINLINE_KERNEL_SOURCE
|
|
KERNELBRANCH='branch:linux-4.14.y'
|
|
KERNELDIR=$MAINLINE_KERNEL_DIR
|
|
|
|
KERNEL_USE_GCC='> 7.0'
|
|
;;
|
|
|
|
dev)
|
|
KERNELSOURCE=$MAINLINE_KERNEL_SOURCE
|
|
KERNELBRANCH='branch:linux-4.18.y'
|
|
KERNELDIR=$MAINLINE_KERNEL_DIR
|
|
|
|
KERNEL_USE_GCC='> 7.0'
|
|
;;
|
|
|
|
esac
|
|
|
|
CPUMIN="600000"
|
|
CPUMAX="1900000"
|
|
GOVERNOR="ondemand"
|
|
|
|
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
|
|
echo "console=ttyS3,115200n8" >> $SDCARD/boot/armbianEnv.txt
|
|
chroot $SDCARD /bin/bash -c "systemctl --no-reload enable tinker-bluetooth.service >/dev/null 2>&1"
|
|
sed -i -e '/#load-module module-alsa-sink/r $SDCARD/usr/local/bin/pulseaudio.txt' $SDCARD/etc/pulse/default.pa >/dev/null 2>&1
|
|
rm -f /usr/local/bin/pulseaudio.txt
|
|
fi
|
|
}
|
|
|
|
family_tweaks_bsp()
|
|
{
|
|
#HDMI Hotplug
|
|
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
|
|
cp $SRC/packages/bsp/rockchip/50-hevc.rules $destination/etc/udev/rules.d
|
|
cp $SRC/packages/bsp/rockchip/50-mali.rules $destination/etc/udev/rules.d
|
|
cp $SRC/packages/bsp/rockchip/50-vpu.rules $destination/etc/udev/rules.d
|
|
cp $SRC/packages/bsp/rockchip/60-media.rules $destination/etc/udev/rules.d
|
|
cp $SRC/packages/bsp/rockchip/pulseaudio.txt $destination/usr/local/bin
|
|
install -m 755 $SRC/packages/bsp/rockchip/hdmi-hotplug $destination/usr/local/bin
|
|
|
|
# Peripheral access for specific groups
|
|
addgroup --system --quiet --gid 997 gpio
|
|
addgroup --system --quiet --gid 998 i2c
|
|
cp $SRC/packages/bsp/rockchip/70-gpio.rules $destination/etc/udev/rules.d
|
|
cp $SRC/packages/bsp/rockchip/71-i2c.rules $destination/etc/udev/rules.d
|
|
|
|
# Bluetooth
|
|
install -m 755 $SRC/packages/bsp/rockchip/rtk_hciattach $destination/usr/bin
|
|
install -m 755 $SRC/packages/bsp/rockchip/start_bt.sh $destination/usr/local/bin
|
|
cp $SRC/packages/bsp/rockchip/tinker-bluetooth.service $destination/lib/systemd/system/
|
|
|
|
# Sound
|
|
cp $SRC/packages/bsp/rockchip/asound.conf $destination/etc/
|
|
}
|