28 lines
869 B
Plaintext
28 lines
869 B
Plaintext
#
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Copyright (c) 2013-2023 Igor Pecovnik, igor@armbian.com
|
|
#
|
|
# This file is a part of the Armbian Build Framework
|
|
# https://github.com/armbian/build/
|
|
#
|
|
source "${BASH_SOURCE%/*}/include/sunxi_common.inc"
|
|
|
|
if [[ -z ${OVERLAY_PREFIX} ]]; then
|
|
OVERLAY_PREFIX='sun8i-h3'
|
|
fi
|
|
|
|
[[ -z $CPUMIN ]] && CPUMIN=480000
|
|
[[ -z $CPUMAX ]] && CPUMAX=1400000
|
|
|
|
family_tweaks_s() {
|
|
if [[ ${BOARD} == nanopi-r1 ]]; then
|
|
# rename eth1 to wan0
|
|
echo 'SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",ATTR{address}=="00:00:00:00:00:00",ATTR{dev_id}=="0x0", ATTR{type}=="1",KERNEL=="eth1", NAME="wan0"' > $SDCARD/etc/udev/rules.d/70-persisetn-net.rules
|
|
# change default console to tty1 which is wired to the chasis
|
|
sed -i "s/ttyS0/ttyS1/" $SDCARD/boot/boot.cmd
|
|
mkimage -C none -A arm -T script -d $SDCARD/boot/boot.cmd $SDCARD/boot/boot.scr
|
|
fi
|
|
|
|
}
|