<div dir="ltr">Actually, you only need to run "make target/linux/clean" :D</div><div class="gmail_extra"><br><div class="gmail_quote">2015-02-05 22:40 GMT+08:00 Roger Pueyo Centelles <span dir="ltr"><<a href="mailto:rogerpueyo@rogerpueyo.com" target="_blank">rogerpueyo@rogerpueyo.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi 郭传鈜,<br><br></div>I did a make clean and then recompiled. Let me try with a completely new build, I will tell you in an hour or so.<br><br></div>Thanks!<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2015-02-05 13:56 GMT+01:00 郭传鈜 <span dir="ltr"><<a href="mailto:gch981213@gmail.com" target="_blank">gch981213@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I've asked someone to test this patch and he told me that the mt7612 got a correct MAC address.......</div><div><br></div>Why not try to print the EEPROM partition name and offest in eeprom.c?<div>Line 72: <span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap">part = </span><span style="color:rgb(0,134,179);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap">of_get_property</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap">(np, </span><span style="color:rgb(223,80,0);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap"><span>"</span>label<span>"</span></span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap">, </span><span style="color:rgb(0,134,179);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap">NULL</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap">);</span><br><div>Line 83: <span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap">offset = </span><span style="color:rgb(0,134,179);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap">be32_to_cpup</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap">(list); </span></div><div><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap">I'm not sure if 0x8000 could be passed correctly here.</span></div><div><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre-wrap">BTW, have you recompiled the dts file after modifying it? </span></div></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">2015-02-05 3:18 GMT+08:00 Roger Pueyo Centelles <span dir="ltr"><<a href="mailto:rogerpueyo@rogerpueyo.com" target="_blank">rogerpueyo@rogerpueyo.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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" target="_blank">https://github.com/openwrt/mt76/blob/master/eeprom.c</a><br></div></div><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><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" target="_blank">gch981213@gmail.com</a><br>
</span>> <mailto:<a href="mailto:gch981213@gmail.com" target="_blank">gch981213@gmail.com</a>>>:<br>
><br>
> From: 郭传鈜 <<a href="mailto:gch981213@gmail.com" target="_blank">gch981213@gmail.com</a> <mailto:<a href="mailto:gch981213@gmail.com" target="_blank">gch981213@gmail.com</a>>><br>
<span>><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><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" target="_blank">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" target="_blank">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>
</div></div><br>_______________________________________________<br>
openwrt-devel mailing list<br>
<a href="mailto:openwrt-devel@lists.openwrt.org" target="_blank">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></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>