56 lines
1.4 KiB
Plaintext
56 lines
1.4 KiB
Plaintext
|
|
source "${BASH_SOURCE%/*}/sunxi64_common.inc"
|
|
|
|
OVERLAY_PREFIX='sun50i-h6'
|
|
BOOTENV_FILE='sun50iw2-next.txt'
|
|
|
|
[[ -z $CPUMIN ]] && CPUMIN=480000
|
|
[[ -z $CPUMAX ]] && CPUMAX=1510000
|
|
GOVERNOR=ondemand
|
|
|
|
ASOUND_STATE='asound.state.sun50iw2-dev'
|
|
|
|
ATFSOURCE='https://github.com/ARM-software/arm-trusted-firmware'
|
|
ATFDIR='arm-trusted-firmware-sunxi-mainline'
|
|
ATFBRANCH='branch:master'
|
|
ATF_USE_GCC='> 6.3'
|
|
ATF_TARGET_MAP='PLAT=sun50i_h6 DEBUG=1 bl31;;build/sun50i_h6/debug/bl31.bin'
|
|
|
|
BOOTSOURCE='https://github.com/Icenowy/u-boot'
|
|
BOOTDIR=$MAINLINE_UBOOT_DIR
|
|
BOOTBRANCH='branch:h6-hdmi-rebased-1'
|
|
BOOTPATCHDIR='u-boot-sun50iw6'
|
|
UBOOT_USE_GCC='> 7.0'
|
|
UBOOT_TARGET_MAP=';;spl/sunxi-spl.bin u-boot.itb'
|
|
BOOTSCRIPT='boot-sun50i-next.cmd:boot.cmd'
|
|
|
|
case $BRANCH in
|
|
dev)
|
|
KERNELSOURCE='https://github.com/Icenowy/linux'
|
|
KERNELBRANCH='branch:h6-integrate-2-ugly'
|
|
KERNELDIR=$MAINLINE_KERNEL_DIR
|
|
KERNEL_USE_GCC='> 7.0'
|
|
KERNELPATCHDIR='sunxi-dev-h6'
|
|
|
|
KERNELSOURCE=$MAINLINE_KERNEL_SOURCE
|
|
KERNELBRANCH='branch:linux-4.18.y'
|
|
KERNELDIR=$MAINLINE_KERNEL_DIR
|
|
KERNEL_USE_GCC='> 7.0'
|
|
KERNELPATCHDIR='sunxi-dev'
|
|
|
|
;;
|
|
esac
|
|
|
|
|
|
family_tweaks_s()
|
|
{
|
|
# enable serial gadget on OTG port since the board doesn't have Ethernet
|
|
case ${BOARD} in
|
|
nanopi*|orangepizero*)
|
|
mkdir -p $SDCARD/etc/systemd/system/serial-getty@ttyGS0.service.d
|
|
chroot $SDCARD /bin/bash -c "systemctl --no-reload enable serial-getty@ttyGS0.service > /dev/null"
|
|
echo "ttyGS0" >> $SDCARD/etc/securetty
|
|
;;
|
|
esac
|
|
}
|