aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ramips')
-rw-r--r--target/linux/ramips/dts/mt7621_ubiquiti_edgerouterx.dtsi21
-rwxr-xr-xtarget/linux/ramips/mt7621/base-files/etc/board.d/02_network4
2 files changed, 18 insertions, 7 deletions
diff --git a/target/linux/ramips/dts/mt7621_ubiquiti_edgerouterx.dtsi b/target/linux/ramips/dts/mt7621_ubiquiti_edgerouterx.dtsi
index 6fed4a0b7b..b10953f45e 100644
--- a/target/linux/ramips/dts/mt7621_ubiquiti_edgerouterx.dtsi
+++ b/target/linux/ramips/dts/mt7621_ubiquiti_edgerouterx.dtsi
@@ -25,35 +25,42 @@
&gmac0 {
mtd-mac-address = <&factory 0x22>;
+ label = "dsa";
};
&switch0 {
ports {
port@0 {
status = "okay";
- label = "wan";
- mtd-mac-address = <&factory 0x22>;
- mtd-mac-address-increment = <1>;
+ label = "eth0";
};
port@1 {
status = "okay";
- label = "lan1";
+ label = "eth1";
+ mtd-mac-address = <&factory 0x22>;
+ mtd-mac-address-increment = <1>;
};
port@2 {
status = "okay";
- label = "lan2";
+ label = "eth2";
+ mtd-mac-address = <&factory 0x22>;
+ mtd-mac-address-increment = <2>;
};
port@3 {
status = "okay";
- label = "lan3";
+ label = "eth3";
+ mtd-mac-address = <&factory 0x22>;
+ mtd-mac-address-increment = <3>;
};
port@4 {
status = "okay";
- label = "lan4";
+ label = "eth4";
+ mtd-mac-address = <&factory 0x22>;
+ mtd-mac-address-increment = <4>;
};
};
};
diff --git a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
index 6205fab301..e2a8a9392d 100755
--- a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
@@ -39,6 +39,10 @@ ramips_setup_interfaces()
ubnt,unifi-nanohd)
ucidef_set_interface_lan "lan"
;;
+ ubiquiti,edgerouterx|\
+ ubiquiti,edgerouterx-sfp)
+ ucidef_set_interface_lan "eth0 eth1 eth2 eth3 eth4"
+ ;;
*)
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan"
;;