25 lines
600 B
Plaintext
25 lines
600 B
Plaintext
|
|
source "${BASH_SOURCE%/*}/sunxi64_common.inc"
|
|
|
|
OVERLAY_PREFIX='sun50i-h5'
|
|
|
|
BOOTENV_FILE='sun50iw2-next.txt'
|
|
|
|
[[ -z $CPUMIN ]] && CPUMIN=480000
|
|
[[ -z $CPUMAX ]] && CPUMAX=1010000
|
|
GOVERNOR=ondemand
|
|
|
|
ASOUND_STATE='asound.state.sun50iw2-dev'
|
|
|
|
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
|
|
}
|