[OpenWrt-Devel] [PATCH] ramips: Fix sysupgrade for Xiaomi mir3g

Hauke Mehrtens hauke at hauke-m.de
Tue Jan 7 17:04:32 EST 2020


On 1/7/20 12:39 PM, Adrian Schmutzler wrote:
> Hi Hauke,
> 
> since you seem to have a mir3g, maybe you can look into the following MAC address issue/question when you find some time:
> 
> For the mir3g, 02_network sets the lan_mac to factory 0xe006, while the address from 0xe000 set to &ethernet is (thus) used for wan:
> https://github.com/openwrt/openwrt/blob/master/target/linux/ramips/mt7621/base-files/etc/board.d/02_network#L262
> 
> That's the opposite of what's usual for mt7621 (lan: 0xe000, wan: 0xe006). Therefore, if you happen to have some spare time, it would be interesting to check which assignment is correct (with vendor OS). When dealing with this anyway, it would also be interesting whether the device has a label MAC address.
> 
> However, this is not really a pressing issue, so if you're short on time just ignore me.
> 
> Best
> 
> Adrian
> 

Hi,

I haven't checked the vendor FW, I only have OpenWrt on it and would
have to flash somehow back.

The LAN MAC in OpenWrt is: 40:31:3c:02:8f:b8
The WAN MAC in OpenWrt is: 40:31:3c:02:8f:b7

The label says: 40:31:3C:02:8F:B8

In the bootlog of the vendor FW I see this:
[    7.520000] set LAN/WAN LWLLL
[    7.530000] GMAC1_MAC_ADRH -- : 0x00004031
[    7.530000] GMAC1_MAC_ADRL -- : 0x3c028fb7
[    7.530000] GDMA2_MAC_ADRH -- : 0x00004031
[    7.540000] GDMA2_MAC_ADRL -- : 0x3c028fb8
[    7.540000] eth1: ===> VirtualIF_open

Hauke

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20200107/61d1d6e2/attachment.sig>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list