adds support for tp-link cpe210

Signed-off-by: Tobias Klaus <tk+ff@meskal.net>
Reviewed-by: Jan Kraus <mayosemmel@gmail.com>
Reviewed-by: Christian Dresel <fff@chrisi01.de>
Reviewed-by: Tim Niemeyer <tim@tn-x.org>
This commit is contained in:
Tobias Klaus 2016-05-11 08:40:27 +02:00 committed by Tim Niemeyer
parent ba3c645a52
commit cd50199cbb
4 changed files with 41 additions and 1 deletions

View File

@ -0,0 +1,28 @@
WANDEV=eth0
SWITCHDEV=eth0
CLIENT_PORTS="0t"
WAN_PORTS="0t"
BATMAN_PORTS="0t"
CLIENTIF="w2ap eth0.1"
ETHMESHMAC="w2ap"
. /etc/network.mode
#LAN0: default: BATMAN
if [ "${LAN0MODE}" = "BATMAN" ] ; then
BATMAN_PORTS="${BATMAN_PORTS} 5"
elif [ "${LAN0MODE}" = "CLIENT" ] ; then
CLIENT_PORTS="${CLIENT_PORTS} 5"
else
WAN_PORTS="${WAN_PORTS} 5"
fi
#LAN1: default: BATMAN
if [ "${LAN1MODE}" = "WAN" ] ; then
WAN_PORTS="${WAN_PORTS} 4"
elif [ "${LAN1MODE}" = "CLIENT" ] ; then
CLIENT_PORTS="${CLIENT_PORTS} 4"
else
BATMAN_PORTS="${BATMAN_PORTS} 4"
fi

View File

@ -1,7 +1,8 @@
machine=ar71xx
chipset=ar71xx
target=$builddir/$machine
images=("openwrt-ar71xx-generic-ubnt-nano-m-squashfs-sysupgrade.bin"
images=("openwrt-ar71xx-generic-cpe210-220-510-520-squashfs-sysupgrade.bin"
"openwrt-ar71xx-generic-ubnt-nano-m-squashfs-sysupgrade.bin"
"openwrt-ar71xx-generic-ubnt-loco-m-xw-squashfs-sysupgrade.bin"
"openwrt-ar71xx-generic-tl-wr740n-v4-squashfs-sysupgrade.bin"
"openwrt-ar71xx-generic-tl-wr741nd-v2-squashfs-sysupgrade.bin"

View File

@ -50,6 +50,9 @@ case "$BOARD" in
tl-mr3020)
BOARD=tl-mr3020-v1
;;
cpe510)
grep "CPE210" /var/sysinfo/model && BOARD=cpe210
;;
esac
if ! uci get board.model.name; then

View File

@ -4,6 +4,8 @@ cd /tmp/
. /etc/firmware_release
BOARD=$(uci get board.model.name)
#decide SOC
case $BOARD in
tl-wdr4900-v1 )
SOC="mpc85xx" ;;
@ -12,6 +14,12 @@ case $BOARD in
esac
echo -ne "\nHardware: $BOARD\n"
#rewrite BOARD
case $BOARD in
cpe210 )
BOARD="cpe210-220-510-520" ;;
esac
wget $(uci get firmware.upgrade.path)/release.nfo
if [ ! -f release.nfo ]; then
echo -ne "Latest release information not found. Please try to update manually.\n\n"