aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/mt7620
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-05-18 21:38:00 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-05-18 21:51:06 +0200
commitbe9eab9bca2bd269e839d38e96f5c010d799f4d2 (patch)
tree3a9c4308193c899029510b56bdfb5d835dea5ebb /target/linux/ramips/mt7620
parenta1f0fd8cba4d9233b76542fbf54be01e2cc9d5c0 (diff)
downloadupstream-be9eab9bca2bd269e839d38e96f5c010d799f4d2.tar.gz
upstream-be9eab9bca2bd269e839d38e96f5c010d799f4d2.tar.bz2
upstream-be9eab9bca2bd269e839d38e96f5c010d799f4d2.zip
ramips: set WAN address in DTS for ASUS RT-AC51U/RT-AC54U
The location 0x28 in factory partition is the common one used for ethernet address on this architecture. Despite, it contains the label MAC address for the devices at hand. Consequently, this patch moves 0x28 to the &ethernet node in DTS files (setting the WAN MAC address there) and sets up the lan_mac from 0x22 in 02_network. As a benefit, this allows to use label-mac-device in DTS instead of ucidef_set_label_macaddr. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ramips/mt7620')
-rwxr-xr-xtarget/linux/ramips/mt7620/base-files/etc/board.d/02_network3
1 files changed, 1 insertions, 2 deletions
diff --git a/target/linux/ramips/mt7620/base-files/etc/board.d/02_network b/target/linux/ramips/mt7620/base-files/etc/board.d/02_network
index 417d3d0271..b780d48179 100755
--- a/target/linux/ramips/mt7620/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/mt7620/base-files/etc/board.d/02_network
@@ -273,8 +273,7 @@ ramips_setup_macs()
;;
asus,rt-ac51u|\
asus,rt-ac54u)
- wan_mac=$(mtd_get_mac_binary factory 0x28)
- label_mac=$wan_mac
+ lan_mac=$(mtd_get_mac_binary factory 0x22)
;;
dlink,dch-m225)
lan_mac=$(mtd_get_mac_ascii factory lanmac)