Conversation
|
Information about MAC address available via device tree can be retrieved as follows: Please run For each of the returned paths (if there are any), retrieve the mac-address, e.g. Now check which of those returned MAC addresses matches the one on the label/sticker/case/box of your device and tell me the device-tree path leading to it. Note that you do not have to post your MAC addresses here, but just a statement about which match, e.g. like There may be one, two or no paths giving the correct address. It may also happen that the If device tree does not lead to the relevant MAC address, we can still set it in 02_network. In this case, I need to set Thanks. |
|
@angelsl @rogerpueyo @dengqf6 @musashino205 @alex-eri @nbriggs @jwischka @amdodak @wifiseguro @drvlabo @aparcar |
|
@DinoTse @gvlaev @981213 @dengqf6 @djbonet @CHKDSK88 @DavideFioravanti @liuyuf78fk @nickberry17 @kapieyow @kristrev @iscilyas @p055877632 @musashino205 @ChalesYu @vk496 @ptpt52 @eikepedia @tvc @arapov @SNMetamorph @7tobias @crdotson @squigley @majo-icutech @hackpascal @Linaro1985 @donothingloop |
|
All jboot devices have MAC stored in Amit config partition. Please look this:
In this case: And what about devices (mostly Chinese) without stored MAC, like Unielec U7621? |
That effectively narrows down to all the devices in the case-block you referenced (at least that's what some quick grepping tells me)?
That's an interesting question indeed. It strongly depends on what you want to use the label MAC address for after it is accessible in OpenWrt. However, this is just my personal feeling about this topic, it represent no consensus or member's opinion. |
|
As @CHKDSK88 said, |
Yes. Only this devices.
I agree with You. |
|
Update: Added jboot devices. |
|
Hello, # find /proc/device-tree/ -name "*mac-address"
/proc/device-tree/ethernet@1e100000/mac-address
/proc/device-tree/ethernet@1e100000/mtd-mac-addressFor The second one |
|
Hello again, # find /proc/device-tree/ -name "*mac-address"
/proc/device-tree/ethernet@1e100000/mac-address
/proc/device-tree/ethernet@1e100000/mtd-mac-addressFor The second one |
|
My EnGenius ESR600 has the following files present: but none of them contain the label MAC address, which is the WAN address. |
|
I guess I should point out that the new ESR600 DTS file is one I have a PR in for, so if there's something that should be changed, now is a good time to talk about that. |
|
@nbriggs Okay, you would then just add |
|
Thanks, I've added the data for mtc,wr1201, netgear,r6220 and TP-Link RE650 v1. |
|
Hello. I checked my device and got some results. |
|
@SNMetamorph Thanks. Does "valid MAC address" mean it's the one on the label or only that it actually is a MAC address compared to the second one? |
|
@adrianschmutzler Yes. It's address from device label. |
|
Here is what I have for a Belkin F9K1109v1
This router uses u-boot and has the WAN MAC in a u-boot config partition. It does match the label on the unit. Let me know if you need anything else from the device. |
|
Update: Added zyxel,keenetic-start and belkin,f9k1109v1. |
|
Extremely late response, but here goes: for the Xiaomi Mi R3P this, however is not the MAC address on the sticker, which is 50:64:2b:33:06:dd fwiw |
|
@iscilyas Thanks for the response, it's not so much late - I expect this PR to be left open for quite a while still. If you report that <&factory 0xe006> is the label address, this means that I could exploit lan_mac in 02_network? |
well, that depends on what so, what on earth is the "sticker mac address" supposed to represent (in general)? just a "unique key" for the router? |
|
Have a look at #2159 for introduction of the feature and at #1370 for an example use case. Briefly: Concerning label_mac: |
|
@adrianschmutzler : thanks for the links. i think i got it: the "label" mac address is a lan-side thing for the administrator to distinguish between different openwrt devices.
yeah. but weren't you trying to get this into the dts? or is that the "long-term" solution while 02_network is the short-term hack? |
|
Tidy up done. |
e215b02 to
a5109d2
Compare
|
Update: Exploited some cases where ðernet has same address as &wmac, but only the former is available via DTS. |
|
Update: added newifi-d1,-d2,-y1,-y1s. |
|
Rebased and added iptime,a604m. |
@adrianschmutzler |
|
Rebased and added ADSLR G7. |
746d419 to
f8c4927
Compare
|
Added netgear_r6260_r6350_r6850. |
|
Just to sum up MAC address findings for WE1326v5: OpenWrt: |
|
Here is the result from a ZBT WE3526 (as also posted here #2319 (comment) ) The MAC address on the label is actually |
This will be either phy0 or phy1 on the running device. Can you check which of them? |
f8c4927 to
617db08
Compare
|
Added dir-810l. |
617db08 to
52177b2
Compare
|
Rebased after MAC address fixup in 02_network. |
This patch adds the label MAC address for several devices in ramips. Some devices require setting the MAC address in 02_network: For the following devices, the netif device can be linked in device tree, but the MAC address cannot be read: - cudy,wr1000 - dlink,dir-615-d - dlink,dir-615-h1 - dlink,dir-860l-b1 - glinet,gl-mt300a - glinet,gl-mt300n - glinet,gl-mt750 - vocore,vocore2 - vocore,vocore2-lite - zbtlink,zbt-we1326 - zbtlink,zbt-wg3526 For the following devices, label MAC address is tied to lan or wan, so no node to link to exists in device tree: - dlink,dir-510l - dlink,dwr-116-a1 - dlink,dwr-118-a1 - dlink,dwr-118-a2 - dlink,dwr-921-c1 - dlink,dwr-922-e2 - all hiwifi devices - lava,lr-25g001 - xiaomi,mir3p Signed-off-by: Adrian Schmutzler <[email protected]>
52177b2 to
8c21f86
Compare
|
Thanks! Pulled into my staging tree at https://git.openwrt.org/openwrt/staging/ynezz.git |
|
Merged commit is: |
This patch adds the label MAC address for several devices in ramips.
It depends on #2159.
I create this as a separate PR so we can collect ramips devices here for some time without deferring the PR providing initial support any further.
Feel free to post information about additional devices, even if it needs discussion/finalization.
Many of the devices already added in patch need to be verified (marked with ToDo comments): Does the DTS actually refer to MAC addresses?
Devices with open pull-request and reported address:
Edimax RG21S https://patchwork.ozlabs.org/patch/1134509/
label-mac-device = &wifi0;Archer C5 v4 #2174
label-mac-device = &wmac;ipTIME A604M #2260label-mac-device = ðernet;