Add support for Ubiquiti EdgeRouter X (SFP)

Signed-off-by: Fabian Bläse <fabian@blaese.de>
Reviewed-by: Christian Dresel <fff@chrisi01.de>
This commit is contained in:
Fabian Bläse 2019-08-14 01:00:41 +02:00
parent d8ea5c652f
commit 6fdc930301
5 changed files with 48 additions and 1 deletions

9
bsp/board_mt7621.bsp Normal file
View File

@ -0,0 +1,9 @@
machine=mt7621
chipset=ramips
subtarget=mt7621
target=$builddir/$machine
images=(
"openwrt-ramips-mt7621-ubnt-erx-squashfs-sysupgrade.tar"
"openwrt-ramips-mt7621-ubnt-erx-sfp-squashfs-sysupgrade.tar"
)

18
bsp/mt7621/.config Normal file
View File

@ -0,0 +1,18 @@
# Generated using "./buildscript config openwrt".
# Do no edit manually
#
CONFIG_TARGET_ramips=y
CONFIG_TARGET_ramips_mt7621=y
CONFIG_TARGET_MULTI_PROFILE=y
CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_ubnt-erx=y
CONFIG_TARGET_DEVICE_ramips_mt7621_DEVICE_ubnt-erx-sfp=y
CONFIG_BUSYBOX_CUSTOM=y
CONFIG_CLEAN_IPKG=y
CONFIG_PACKAGE_kmod-ifb=y
CONFIG_PACKAGE_kmod-ledtrig-heartbeat=y
CONFIG_PACKAGE_kmod-ledtrig-netdev=y
CONFIG_PACKAGE_kmod-sched-connmark=y
CONFIG_PACKAGE_qos-scripts=y
CONFIG_PACKAGE_tc=y
CONFIG_STRIP_KERNEL_EXPORTS=y
CONFIG_TARGET_SQUASHFS_BLOCK_SIZE=512

View File

@ -8,7 +8,9 @@ case "$BOARD" in
CPUPORT="5t"
;;
tl-wr1043nd-v2|\
tl-wr1043nd-v3)
tl-wr1043nd-v3|\
ubnt-erx|\
ubnt-erx-sfp)
CPUPORT="6t"
;;
cpe210-v2|\

View File

@ -0,0 +1,9 @@
. /lib/functions/fff/network
WANDEV=eth0
SWITCHDEV=eth0
CLIENT_PORTS="6t 3 4"
WAN_PORTS="6t 0"
BATMAN_PORTS="6t 1 2"
ROUTERMAC=$(cat /sys/class/net/eth0/address)

View File

@ -0,0 +1,9 @@
. /lib/functions/fff/network
WANDEV=eth0
SWITCHDEV=eth0
CLIENT_PORTS="6t 3 4"
WAN_PORTS="6t 0"
BATMAN_PORTS="6t 1 2"
ROUTERMAC=$(cat /sys/class/net/eth0/address)