<div dir="ltr"><div><div><div>Hi,<br><br></div>I tried with 0x8004 and I also got a random IP address. Actually, I changed this block in in eeprom.c (line 571) [1]:<br><br>if (!is_valid_ether_addr(dev->macaddr)) {<br>    eth_random_addr(dev->macaddr);<br>    dev_printk(KERN_INFO, dev->dev,<br>        "Invalid MAC address, using random address %pM\n",<br>    dev->macaddr);<br>}<br><br></div>to:<br><br>if (!is_valid_ether_addr(dev->macaddr)) {<br>    dev_printk(KERN_INFO, dev->dev,<br>        "Invalid MAC address %pM\n",<br>        dev->macaddr);<br>    eth_random_addr(dev->macaddr);<br>    dev_printk(KERN_INFO, dev->dev,<br>        "Using random address %pM\n",<br>        dev->macaddr);<br>}<br><br></div>and I see this message:<br><br>[   15.000000] ASIC revision: 76120044<br>[   15.000000] mt76pci 0000:01:00.0: Invalid MAC address ff:ff:ff:ff:ff:ff<br>[   15.000000] mt76pci 0000:01:00.0: Using random address ca:a8:87:d8:65:45<br>[   15.320000] ROM patch already applied<br>[   15.330000] Firmware Version: 0.0.00<br>[   15.330000] Build: 1<br>[   15.330000] Build Time: 201406241830____<br>[   15.360000] Firmware running!<br>[   15.370000] pci device driver attached<br><br><div><br>[1] <a href="https://github.com/openwrt/mt76/blob/master/eeprom.c">https://github.com/openwrt/mt76/blob/master/eeprom.c</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-02-04 17:56 GMT+01:00 John Crispin <span dir="ltr"><<a href="mailto:blogic@openwrt.org" target="_blank">blogic@openwrt.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
On 04/02/2015 17:08, Roger Pueyo Centelles wrote:<br>
> Hi,<br>
><br>
><br>
><br>
> 2015-02-04 12:44 GMT+01:00 Chuanhong Guo <<a href="mailto:gch981213@gmail.com">gch981213@gmail.com</a><br>
</span>> <mailto:<a href="mailto:gch981213@gmail.com">gch981213@gmail.com</a>>>:<br>
><br>
>     From: 郭传鈜 <<a href="mailto:gch981213@gmail.com">gch981213@gmail.com</a> <mailto:<a href="mailto:gch981213@gmail.com">gch981213@gmail.com</a>>><br>
<span class="">><br>
>     2ghz should be disabled on this router.<br>
><br>
><br>
> You're right. This should be patched.<br>
><br>
><br>
>     And I think 'mediatek,mtd-eeprom' should be defined as<&factory<br>
>     32768> instead of <&factory 0x8000> according to WHR-1166D.dts<br>
>     Actually I didn't have this router.But I think this is the reason<br>
>     that the MT7612E radio always gets a random MAC address on this router.<br>
><br>
><br>
> Both definitions are the same, since 0x8000 hex == 32768 dec.<br>
><br>
<br>
</span>try 0x8004 as 0x8000 holds the chip id and right after that is where the<br>
mac is located<br>
<span class=""><br>
<br>
<br>
<br>
><br>
><br>
>     BTW,Roger,could you please test if this patch can fix the MAC<br>
>     address problem you told in your mail?<br>
><br>
><br>
> I tried both, with equal results.<br>
><br>
><br>
><br>
><br>
</span>> _______________________________________________<br>
> openwrt-devel mailing list<br>
> <a href="mailto:openwrt-devel@lists.openwrt.org">openwrt-devel@lists.openwrt.org</a><br>
> <a href="https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel" target="_blank">https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel</a><br>
><br>
_______________________________________________<br>
openwrt-devel mailing list<br>
<a href="mailto:openwrt-devel@lists.openwrt.org">openwrt-devel@lists.openwrt.org</a><br>
<a href="https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel" target="_blank">https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel</a><br>
</blockquote></div><br></div>