aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-01-08 16:27:52 +0100
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-01-08 16:27:52 +0100
commit04222bc5bc1435172223a1ad68ed5d0019c367e3 (patch)
treee03a1a0c3bb1cf2e1b8ce3679dd8a8f6c129aa0d /target/linux
parentdf41cc7445098b78c95e010f79ec17351cad1446 (diff)
downloadupstream-04222bc5bc1435172223a1ad68ed5d0019c367e3.tar.gz
upstream-04222bc5bc1435172223a1ad68ed5d0019c367e3.tar.bz2
upstream-04222bc5bc1435172223a1ad68ed5d0019c367e3.zip
ramips: add label MAC address for Xiaomi MIR3G
The device label shows the address currently assigned to the OpenWrt LAN interface. Current setup is: LAN *:b8 factory 0xe006 label WAN *:b7 factory 0xe000 For vendor FW bootlog we get (manually removed parts of the address): [ 7.520000] set LAN/WAN LWLLL [ 7.530000] GMAC1_MAC_ADRH -- : 0x00004031 [ 7.530000] GMAC1_MAC_ADRL -- : 0x3c****b7 [ 7.530000] GDMA2_MAC_ADRH -- : 0x00004031 [ 7.540000] GDMA2_MAC_ADRL -- : 0x3c****b8 [ 7.540000] eth1: ===> VirtualIF_open Without further information, this does not allow verification of the currently unexpected LAN/WAN assignment (we would expect 0xe000 to be LAN). Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux')
-rwxr-xr-xtarget/linux/ramips/mt7621/base-files/etc/board.d/02_network8
1 files changed, 3 insertions, 5 deletions
diff --git a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
index ad6d6cd5fe..85105c870b 100755
--- a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
@@ -258,17 +258,15 @@ ramips_setup_macs()
wan_mac=$(mtd_get_mac_binary factory 0x2e)
label_mac=$wan_mac
;;
- xiaomi,mir3g)
+ xiaomi,mir3g|\
+ xiaomi,mir3p)
lan_mac=$(mtd_get_mac_binary factory 0xe006)
+ label_mac=$lan_mac
;;
xiaomi,mir3g-v2)
wan_mac=$(mtd_get_mac_binary factory 0xe006)
label_mac=$wan_mac
;;
- xiaomi,mir3p)
- lan_mac=$(mtd_get_mac_binary factory 0xe006)
- label_mac=$lan_mac
- ;;
zbtlink,zbt-we1326)
wan_mac=$(mtd_get_mac_binary factory 0xe006)
label_mac=$(mtd_get_mac_binary factory 0x4)