Add support for wr1043 v4

Dieses Patch fügt den Support für den WR1043 v4 hinzu. Dieses Patch
baut auf den LEDE Patch auf und darf erst nach dem LEDE Patch
applied werden.

Signed-off-by: Christian Dresel <fff@chrisi01.de>
Reviewed-by: Jan Kraus <mayosemmel@gmail.com>
Reviewed-by: Tim Niemeyer <tim@tn-x.org>
This commit is contained in:
Christian Dresel 2017-02-17 20:39:42 +01:00 committed by Tim Niemeyer
parent 32df7e55fe
commit 9cd2738b36
5 changed files with 24 additions and 1 deletions

View File

@ -32,6 +32,8 @@ CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_tl-wr1043nd-v2=y
CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_generic_DEVICE_tl-wr1043nd-v2=""
CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_tl-wr1043nd-v3=y
CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_generic_DEVICE_tl-wr1043nd-v3=""
CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_tl-wr1043nd-v4=y
CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_generic_DEVICE_tl-wr1043nd-v4=""
CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_tl-wr740n-v4=y
CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_generic_DEVICE_tl-wr740n-v4=""
CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_tl-wr741nd-v2=y

View File

@ -17,6 +17,7 @@ images=("lede-ar71xx-generic-cpe210-220-squashfs-sysupgrade.bin"
"lede-ar71xx-generic-tl-wr1043nd-v1-squashfs-sysupgrade.bin"
"lede-ar71xx-generic-tl-wr1043nd-v2-squashfs-sysupgrade.bin"
"lede-ar71xx-generic-tl-wr1043nd-v3-squashfs-sysupgrade.bin"
"lede-ar71xx-generic-tl-wr1043nd-v4-squashfs-sysupgrade.bin"
"lede-ar71xx-generic-tl-wa860re-v1-squashfs-sysupgrade.bin"
"lede-ar71xx-generic-tl-wa850re-v1-squashfs-sysupgrade.bin"
"lede-ar71xx-generic-gl-ar150-squashfs-sysupgrade.bin"

View File

@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=fff-network
PKG_VERSION:=0.0.4
PKG_VERSION:=0.0.5
PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/fff-network

View File

@ -0,0 +1,16 @@
WANDEV=eth0
SWITCHDEV=eth0
CLIENT_PORTS="1 2 0t"
WAN_PORTS="5 0t"
BATMAN_PORTS="3 4 0t"
. /lib/functions/system.sh
. /lib/functions/uci-defaults.sh
. /lib/ar71xx.sh
# Load second MAC from Flash because we haven't any Interface with this MAC where we can copy the MAC from
# https://github.com/lede-project/source/pull/613/files#diff-abd6f42f54204372151e73eac0556db1
NEWMAC=$(mtd_get_mac_binary config 0x1017c)
ETHMESHMAC=1
ROUTERMAC=eth0

View File

@ -108,6 +108,10 @@ if [[ -n "$ETHMESHMAC" ]]; then
echo "Fixing MAC on eth0.3 (ethmesh)"
sleep 10
NEW_MACADDR=$(cat /sys/class/net/$ETHMESHMAC/address)
# We need this to set the second MAC for the wr1043 v4 from a variable and not from an Interface
if [[ -n "$NEWMAC" ]]; then
NEW_MACADDR=$NEWMAC
fi
uci set network.ethmesh.macaddr=$NEW_MACADDR
uci commit
ifconfig eth0.3 down