local wan_mac=""
case $board in
- all0256n | \
- all5002 | \
- dir-615-h1)
- lan_mac=$(mtd_get_mac_binary factory 40)
- ;;
- 3g-6200n | \
- 3g300m | \
- w150m | \
- air3gii | \
- argus-atp52b | \
- bc2 | \
- br6425 | \
- broadway | \
- dir-620-d1 | \
- f5d8235-v1 | \
- ip2202 | \
- mpr-a1 | \
- mpr-a2 | \
- dir-300-b7 | \
- dir-320-b1 | \
- mzk-w300nh2 | \
- nw718 | \
- psr-680w | \
- rt-n15 | \
- sl-r7205 | \
- wmr300 | \
- wl-351)
- lan_mac=$(mtd_get_mac_binary factory 4)
+ *)
wan_mac=$(macaddr_add "$lan_mac" 1)
;;
- asl26555)
- lan_mac=$(mtd_get_mac_binary devdata 16388)
- ;;
-
w306r-v20)
- lan_mac=$(mtd_get_mac_binary factory 4)
wan_mac=$(macaddr_add "$lan_mac" 5)
;;
- rt-n13u | \
- hg255d | \
- fonera20n | \
- dir-810l)
- lan_mac=$(mtd_get_mac_binary factory 40)
- wan_mac=$(macaddr_add "$lan_mac" 1)
+ tew-691gr)
+ wan_mac=$(macaddr_add "$lan_mac" 3)
;;
- dir-300-b1 |\
- dir-300-b2 |\
- dir-600-b1 |\
- dir-610-a1)
- lan_mac=$(mtd_get_mac_binary devdata 16388)
- wan_mac=$(macaddr_add "$lan_mac" 1)
+ tew-692gr)
+ wan_mac=$(macaddr_add "$lan_mac" 4)
+ ;;
+
+ m3 |\
+ m4 |\
+ x5 |\
+ x8)
+ lan_mac=$(macaddr_add "$lan_mac" -1)
;;
dir-620-a1)
- lan_mac=$(mtd_get_mac_binary factory 4)
lan_mac=$(macaddr_setbit_la "$lan_mac")
wan_mac=$(macaddr_add "$lan_mac" 1)
;;
wan_mac=$(mtd_get_mac_ascii nvram wanmac)
;;
- esr-9753 | \
- ur-326n4g | \
- ur-336un)
- lan_mac=$(mtd_get_mac_binary devdata 16388)
- wan_mac=$(macaddr_add "$lan_mac" 1)
- ;;
-
- m3 |\
- m4 |\
- x5 |\
- x8)
- lan_mac=$(mtd_get_mac_binary factory 4)
- lan_mac=$(macaddr_add "$lan_mac" -1)
- ;;
-
nbg-419n | \
wcr-150gn)
- lan_mac=$(mtd_get_mac_binary factory 4)
wan_mac=$(mtd_get_mac_binary factory 40)
;;
- omni-emb-hpm)
- lan_mac=$(mtd_get_mac_binary factory 40)
- ;;
-
- f5d8235-v2)
- lan_mac=$(mtd_get_mac_binary "u-boot" 262148)
- wan_mac=$(macaddr_add "$lan_mac" 1)
- ;;
-
rt-n56u)
- lan_mac=$(mtd_get_mac_binary factory 4)
wan_mac=$(mtd_get_mac_binary factory 32772)
;;
- tew-691gr)
- lan_mac=$(mtd_get_mac_binary factory 40)
- wan_mac=$(macaddr_add "$lan_mac" 3)
- ;;
-
- tew-692gr)
- lan_mac=$(mtd_get_mac_binary factory 40)
- wan_mac=$(macaddr_add "$lan_mac" 4)
- ;;
-
all0239-3g | \
carambola | \
freestation5 | \
w502u | \
wnce2001)
- lan_mac=$(mtd_get_mac_binary factory 40)
wan_mac=$(mtd_get_mac_binary factory 46)
;;
wan_mac=$(macaddr_add "$lan_mac" 1)
;;
- d105 | \
- wli-tx4-ag300n)
- lan_mac=$(mtd_get_mac_binary factory 4)
- ;;
-
esac
[ -n "$lan_mac" ] && ucidef_set_interface_macaddr lan $lan_mac
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x28>;
+ };
+
esw@10110000 {
status = "okay";
ralink,portmap = <0x3e>;
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x28>;
+ };
+
esw@10110000 {
ralink,portmap = <0x3f>;
};
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x28>;
+ };
+
esw@10110000 {
ralink,portmap = <0x3f>;
};
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x28>;
+ };
+
esw@10110000 {
ralink,portmap = <0x3f>;
};
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x3e>;
};
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4004>;
+ };
+
esw@10110000 {
ralink,portmap = <0x1e>;
};
reg = <0x0 0x30000>;
read-only;
};
- partition@30000 {
- label = "devdata";
+ factory: partition@30000 {
+ label = "factory";
reg = <0x30000 0x10000>;
read-only;
};
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4004>;
+ };
+
esw@10110000 {
ralink,portmap = <0x1e>;
};
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
#size-cells = <1>;
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x3e>;
};
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x28>;
+ };
+
esw@10110000 {
ralink,portmap = <0x3f>;
};
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4004>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
ralink,led_polarity = <0x17>;
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
ralink,led_polarity = <0x17>;
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4004>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4004>;
+ };
+
esw@10110000 {
status = "okay";
ralink,portmap = <0x2f>;
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x28>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x28>;
+ };
+
gsw@10110000 {
ralink,port4 = "ephy";
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4004>;
+ };
+
esw@10110000 {
ralink,portmap = <0x3e>;
};
ethernet@400000 {
status = "okay";
+ mtd-mac-address = <&factory 0x4>;
port@0 {
ralink,fixed-link = <1000 1 1 1>;
#address-cells = <1>;
#size-cells = <1>;
- partition@0 {
+ uboot: partition@0 {
label = "u-boot";
reg = <0x0 0x50000>;
read-only;
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&uboot 0x40004>;
+ };
+
esw@10110000 {
ralink,portmap = <0x3f>;
};
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x28>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x28>;
+ };
+
esw@10110000 {
ralink,portmap = <0x01>;
};
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x28>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
ralink,led_polarity = <1>;
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
ralink,led_polarity = <1>;
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
ralink,led_polarity = <1>;
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
ethernet@10100000 {
phy-handle = <&phy0>;
phy-mode = "rgmii";
+ mtd-mac-address = <&factory 0x28>;
mdio-bus {
status = "okay";
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x3e>;
};
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x28>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
ethernet@400000 {
status = "okay";
+ mtd-mac-address = <&factory 0x4>;
port@0 {
ralink,fixed-link = <1000 1 1 1>;
};
ethernet@10100000 {
- port@0 {
+ mtd-mac-address = <&factory 0x4>;
+ port@0 {
ralink,fixed-link = <1000 1 1 1>;
};
};
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x3e>;
};
};
ethernet@10100000 {
+ mtd-mac-address = <&factory 0x28>;
port@0 {
phy-handle = <&phy0>;
phy-mode = "rgmii";
ethernet@10100000 {
status = "okay";
+ mtd-mac-address = <&factory 0x28>;
port@0 {
phy-handle = <&phy0>;
phy-mode = "rgmii";
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4004>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
#size-cells = <1>;
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4004>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x3e>;
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x28>;
+ };
+
/dts-v1/;
/include/ "rt3050.dtsi"
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x28>;
+ };
+
esw@10110000 {
ralink,portmap = <0x3e>;
};
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
};
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x3f>;
ralink,fct2 = <0x0002500c>;
ethernet@400000 {
status = "okay";
+ mtd-mac-address = <&factory 0x4>;
port@0 {
ralink,fixed-link = <1000 1 1 1>;
};
ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
ralink,port-map = "wllll";
};
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x28>;
+ };
+
gpio-leds {
compatible = "gpio-leds";
power-green {
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
ralink,led_polarity = <1>;
};
};
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
+ };
+
esw@10110000 {
ralink,portmap = <0x2f>;
ralink,led_polarity = <1>;