[source] ramips: fix used MAC addresses for Phicomm K2P

LEDE Commits lede-commits at lists.infradead.org
Thu Sep 14 22:14:59 PDT 2017


mkresin pushed a commit to source.git, branch master:
https://git.lede-project.org/9c500db89680af5d89fb679e08452c8f090d804d

commit 9c500db89680af5d89fb679e08452c8f090d804d
Author: Jiawei Wang <me at jwang.link>
AuthorDate: Wed Sep 13 14:04:22 2017 +0800

    ramips: fix used MAC addresses for Phicomm K2P
    
    The factory partition of the Phicomm K2P contains two MAC addresses.
    The lower MAC address is at offset 0xe006 and the higher one is at
    offset 0xe000.
    
    Use the lower MAC address as base mac-address which the switch driver
    increments by one for the second (wan) vlan.
    
    The MAC addresses are still inverted in contrast to the stock firmware
    where the lower MAC address is used for wan. But at least the use of a
    MAC address not intended/reserved for this particular board is fixed.
    
    Signed-off-by: Jiawei Wang <me at jwang.link>
---
 target/linux/ramips/dts/K2P.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/ramips/dts/K2P.dts b/target/linux/ramips/dts/K2P.dts
index 4089ce6..db4dc29 100644
--- a/target/linux/ramips/dts/K2P.dts
+++ b/target/linux/ramips/dts/K2P.dts
@@ -106,7 +106,7 @@
 };
 
 &ethernet {
-	mtd-mac-address = <&factory 0xe000>;
+	mtd-mac-address = <&factory 0xe006>;
 };
 
 &pinctrl {



More information about the lede-commits mailing list