openwrt / openwrt/mt76

mt7628an_tplink_tl-wr841n-v14.dts mac address

Open
#626 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
888
Forks
436
PR merge metrics
No merged PRs in 30d

Description

mt7628an_tplink_tl-wr841n-v14.dts file does not read correctly mac address for the router.
I suspect all mediatek 7628 routers does not do this correctly after the movement to new nvmem-cell


&wmac {
status = "okay";

mediatek,mtd-eeprom = <&factory 0x0>;

nvmem-cells = <&macaddr_factory_f100>;
nvmem-cell-names = "mac-address";

};

&ethernet {
nvmem-cells = <&macaddr_factory_f100>;
nvmem-cell-names = "mac-address";
};

&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;

macaddr_factory_f100: macaddr@f100 {
	reg = <0xf100 0x6>;
};

};


This is not working.
As a result we have this in the log file:
[ 0.587159] rt3050-esw 10110000.esw: mediatek esw at 0xb0110000, irq 25 initialized
[ 0.595239] mtk_soc_eth 10100000.ethernet: generated random MAC address 96:52:65:56:8d:42
[ 0.605928] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5

If i remove the patches for nvmem-cell mac address is read correct.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with mt7628an_tplink_tl-wr841n-v14.dts and inspect the wmac, ethernet, and factory nvmem-cell definitions shown in the report. Reproduce the boot log and compare the nvmem-cell configuration with the behavior when those patches are removed; done means the router reads its factory MAC instead of generating a random address.

Written by the indexing model from the issue text.

Assessment

Domain
embedded-iot, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.