Extract the base MAC address from the u-boot environment instead of relying on a properly passed ethaddr kernel command-line parameter.
Signed-off-by: Mathias Kresin <d...@kresin.me> --- target/linux/lantiq/base-files/etc/board.d/02_network | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/linux/lantiq/base-files/etc/board.d/02_network b/target/linux/lantiq/base-files/etc/board.d/02_network index 3bb4e6e..43ab17f 100755 --- a/target/linux/lantiq/base-files/etc/board.d/02_network +++ b/target/linux/lantiq/base-files/etc/board.d/02_network @@ -75,6 +75,8 @@ ARV4518PWR01*) ;; DGN3500*) + lan_mac=$(mtd_get_mac_ascii uboot-env ethaddr) + wan_mac=$(macaddr_add "$lan_mac" 1) ucidef_add_switch "switch0" \ "3:lan:1" "2:lan:2" "1:lan:3" "0:lan:4" "5t@eth0" ;; -- 1.9.1 _______________________________________________ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev