diff options
author | David Bauer <mail@david-bauer.net> | 2019-10-13 23:37:59 +0200 |
---|---|---|
committer | David Bauer <mail@david-bauer.net> | 2019-10-19 23:05:27 +0200 |
commit | bcb0fd1fa1f1265d7a911c0e8bd036e2347b112f (patch) | |
tree | b7cc3b203e557994ae735bf40cde6803caecbe51 /target/linux/mpc85xx/base-files | |
parent | e5ab602c6925ba9cdf92c8f5ebfc2d18734c1238 (diff) | |
download | upstream-bcb0fd1fa1f1265d7a911c0e8bd036e2347b112f.tar.gz upstream-bcb0fd1fa1f1265d7a911c0e8bd036e2347b112f.tar.bz2 upstream-bcb0fd1fa1f1265d7a911c0e8bd036e2347b112f.zip |
mpc85xx: correct TP-LINK TL-WDR4900 MAC addresses
This commit fixes TP-Link TL-WDR4900 v1 MAC address assignment.
Previously, the MAC addrss was read for the ethernet from the "config"
partition. However, the content of this partition is dependent on the
firmware which was previously installed on the device.
Switch the MAC address source to the U-Boot partition, where the MAC
address is always present at a fixed partition. The partition was
previously already used for the WiFi MAC-addresses.
Reviewed-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Signed-off-by: David Bauer <mail@david-bauer.net>
(cherry picked from commit 07e555d8735e8fa272e3f6abd35acc9f1ab44367)
Signed-off-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'target/linux/mpc85xx/base-files')
-rwxr-xr-x | target/linux/mpc85xx/base-files/etc/board.d/02_network | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/mpc85xx/base-files/etc/board.d/02_network b/target/linux/mpc85xx/base-files/etc/board.d/02_network index d6b4eebf14..aa33a4af96 100755 --- a/target/linux/mpc85xx/base-files/etc/board.d/02_network +++ b/target/linux/mpc85xx/base-files/etc/board.d/02_network @@ -21,7 +21,7 @@ ocedo,panda) tplink,tl-wdr4900-v1) ucidef_add_switch "switch0" \ "0@eth0" "2:lan:1" "3:lan:2" "4:lan:3" "5:lan:4" "1:wan" - ucidef_set_interface_macaddr "wan" "$(mtd_get_mac_binary config 332)" + ucidef_set_interface_macaddr "wan" "$(macaddr_add $(mtd_get_mac_binary u-boot 0x4fc00) 1)" ;; *) ucidef_set_interfaces_lan_wan "eth0" "eth1" |