Skip to content
Snippets Groups Projects
Commit 9cd2738b authored by Christian Dresel's avatar Christian Dresel Committed by Tim Niemeyer
Browse files

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: default avatarChristian Dresel <fff@chrisi01.de>
Reviewed-by: default avatarJan Kraus <mayosemmel@gmail.com>
Reviewed-by: default avatarTim Niemeyer <tim@tn-x.org>
parent 32df7e55
No related branches found
Tags 20170218-alpha
No related merge requests found
......@@ -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
......
......@@ -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"
......
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
......
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
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment