hw_mac_addr=$(mtd_get_mac_ascii hwconfig HW.WAN.MAC.Address)
ucidef_set_interface_macaddr "wan" "$(macaddr_add $hw_mac_addr 1)"
;;
- linksys,e8350-v1)
- hw_mac_addr=$(mtd_get_mac_ascii 0:appsblenv ethaddr)
- ucidef_set_interface_macaddr "lan" "$(macaddr_add $hw_mac_addr 2)"
- ucidef_set_interface_macaddr "wan" "$(macaddr_add $hw_mac_addr 3)"
- ;;
esac
}
label = "0:appsblenv";
reg = <0x0130000 0x0040000>;
read-only;
+
+ nvmem-layout {
+ compatible = "u-boot,env";
+
+ macaddr_uboot_ethaddr: ethaddr {
+ #nvmem-cell-cells = <1>;
+ };
+ };
};
art: partition@170000 {
pinctrl-0 = <&rgmii2_pins>;
pinctrl-names = "default";
+ nvmem-cells = <&macaddr_uboot_ethaddr 3>;
+ nvmem-cell-names = "mac-address";
+
fixed-link {
speed = <1000>;
full-duplex;
phy-mode = "sgmii";
qcom,id = <2>;
+ nvmem-cells = <&macaddr_uboot_ethaddr 2>;
+ nvmem-cell-names = "mac-address";
+
fixed-link {
speed = <1000>;
full-duplex;