armbian-build/config/sources/sun8i.conf
Igor Pečovnik a57ce78b37
Reverting sunxi/sunxi64 NEXT to 4.14. (#1087)
* 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
2018-08-21 10:41:10 +02:00

53 lines
1.3 KiB
Plaintext

source "${BASH_SOURCE%/*}/sunxi_common.inc"
[[ -z $OVERLAY_PREFIX ]] && OVERLAY_PREFIX='sun8i-h3'
case $BRANCH in
default)
BOOTENV_FILE='sun8i-default.txt'
KERNELSOURCE='https://github.com/igorpecovnik/linux'
KERNELBRANCH='branch:sun8i'
KERNELDIR='linux-sun8i'
KERNEL_USE_GCC='> 5.0'
ASOUND_STATE='asound.state.sun8i-default'
;;
dev)
GOVERNOR=ondemand
ASOUND_STATE='asound.state.sun8i-dev'
;;
esac
[[ -z $CPUMIN ]] && CPUMIN=480000
[[ -z $CPUMAX ]] && CPUMAX=1010000
family_tweaks_s()
{
# enable serial gadget on OTG port since the board doesn't have Ethernet
case ${BOARD} in
orangepilite|nanopi*|orangepizero*|bananapim2plus)
mkdir -p $SDCARD/etc/systemd/system/serial-getty@ttyGS0.service.d
if [[ $BRANCH == default ]]; then
cat <<-EOF > $SDCARD/etc/systemd/system/serial-getty@ttyGS0.service.d/10-switch-role.conf
[Service]
ExecStartPre=-/bin/sh -c "echo 2 > /sys/bus/platform/devices/sunxi_usb_udc/otg_role"
EOF
fi
chroot $SDCARD /bin/bash -c "systemctl --no-reload enable serial-getty@ttyGS0.service > /dev/null 2>&1"
echo "ttyGS0" >> $SDCARD/etc/securetty
;;
esac
}
family_tweaks_bsp_s()
{
# h3disp for sun8i/3.4.x
if [[ $BRANCH == default ]]; then
install -m 755 $SRC/packages/bsp/{h3disp,h3consumption} $destination/usr/bin
fi
}