Userspace handling is deprecated.
As with all ws-ap devices, a redundant u-boot environment is used.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/23146
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
phy-mode = "rgmii-id";
phy-handle = <&phy0>;
+
+ nvmem-cells = <&macaddr_cfg1_ethaddr>;
+ nvmem-cell-names = "mac-address";
};
&spi {
label = "cfg1";
reg = <0xe80000 0x40000>;
read-only;
+
+ nvmem-layout {
+ compatible = "u-boot,env-redundant-bool";
+ env-size = <0x10000>;
+
+ macaddr_cfg1_ethaddr: ethaddr {
+ };
+ };
};
partition@ec0000 {
ip link set dev eth0 address $(mtd_get_mac_ascii bdcfg "lanmac")
ip link set dev eth1 address $(mtd_get_mac_ascii bdcfg "wanmac")
;;
- siemens,ws-ap3610)
- ip link set dev eth0 address $(mtd_get_mac_ascii cfg1 ethaddr)
- ;;
moxa,awk-1137c)
ip link set dev eth0 address $(mtd_get_mac_ascii u-boot-env mac_addr)
;;