forked from freifunk-franken/firmware
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:
parent
ba3c645a52
commit
cd50199cbb
28
bsp/ar71xx/root_file_system/etc/network.cpe210
Normal file
28
bsp/ar71xx/root_file_system/etc/network.cpe210
Normal 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
|
|
@ -1,7 +1,8 @@
|
||||||
machine=ar71xx
|
machine=ar71xx
|
||||||
chipset=ar71xx
|
chipset=ar71xx
|
||||||
target=$builddir/$machine
|
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-ubnt-loco-m-xw-squashfs-sysupgrade.bin"
|
||||||
"openwrt-ar71xx-generic-tl-wr740n-v4-squashfs-sysupgrade.bin"
|
"openwrt-ar71xx-generic-tl-wr740n-v4-squashfs-sysupgrade.bin"
|
||||||
"openwrt-ar71xx-generic-tl-wr741nd-v2-squashfs-sysupgrade.bin"
|
"openwrt-ar71xx-generic-tl-wr741nd-v2-squashfs-sysupgrade.bin"
|
||||||
|
|
|
@ -50,6 +50,9 @@ case "$BOARD" in
|
||||||
tl-mr3020)
|
tl-mr3020)
|
||||||
BOARD=tl-mr3020-v1
|
BOARD=tl-mr3020-v1
|
||||||
;;
|
;;
|
||||||
|
cpe510)
|
||||||
|
grep "CPE210" /var/sysinfo/model && BOARD=cpe210
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if ! uci get board.model.name; then
|
if ! uci get board.model.name; then
|
||||||
|
|
|
@ -4,6 +4,8 @@ cd /tmp/
|
||||||
. /etc/firmware_release
|
. /etc/firmware_release
|
||||||
|
|
||||||
BOARD=$(uci get board.model.name)
|
BOARD=$(uci get board.model.name)
|
||||||
|
|
||||||
|
#decide SOC
|
||||||
case $BOARD in
|
case $BOARD in
|
||||||
tl-wdr4900-v1 )
|
tl-wdr4900-v1 )
|
||||||
SOC="mpc85xx" ;;
|
SOC="mpc85xx" ;;
|
||||||
|
@ -12,6 +14,12 @@ case $BOARD in
|
||||||
esac
|
esac
|
||||||
echo -ne "\nHardware: $BOARD\n"
|
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
|
wget $(uci get firmware.upgrade.path)/release.nfo
|
||||||
if [ ! -f release.nfo ]; then
|
if [ ! -f release.nfo ]; then
|
||||||
echo -ne "Latest release information not found. Please try to update manually.\n\n"
|
echo -ne "Latest release information not found. Please try to update manually.\n\n"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user