diff --git a/target/linux/ramips/dts/mt7621_tplink_er605-v2.dts b/target/linux/ramips/dts/mt7621_tplink_er605-v2.dts index 1299b02806..28c8e8b083 100644 --- a/target/linux/ramips/dts/mt7621_tplink_er605-v2.dts +++ b/target/linux/ramips/dts/mt7621_tplink_er605-v2.dts @@ -84,7 +84,7 @@ &gmac1 { status = "okay"; - label = "eth0"; + label = "wan1"; phy-handle = <ðphy0>; }; @@ -97,22 +97,22 @@ port@1 { status = "okay"; - label = "eth1"; + label = "lan2"; }; port@2 { status = "okay"; - label = "eth2"; + label = "lan3"; }; port@3 { status = "okay"; - label = "eth3"; + label = "lan4"; }; port@4 { status = "okay"; - label = "eth4"; + label = "lan5"; }; }; }; diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk index 2932f13e99..70454bcbaf 100644 --- a/target/linux/ramips/image/mt7621.mk +++ b/target/linux/ramips/image/mt7621.mk @@ -2732,6 +2732,8 @@ TARGET_DEVICES += tplink_ec330-g5u-v1 define Device/tplink_er605-v2 $(Device/nand) + DEVICE_COMPAT_VERSION := 1.2 + DEVICE_COMPAT_MESSAGE := Config cannot be migrated because interface names have changed DEVICE_VENDOR := TP-Link DEVICE_MODEL := ER605 DEVICE_VARIANT := v2 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 f72fd46f82..12098f0bbf 100644 --- a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network +++ b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network @@ -148,7 +148,7 @@ ramips_setup_interfaces() ucidef_set_interface_lan "lan0 lan1 lan2 lan3" ;; tplink,er605-v2) - ucidef_set_interfaces_lan_wan "eth1 eth2 eth3 eth4" "eth0" + ucidef_set_interfaces_lan_wan "lan2 lan3 lan4 lan5" "wan1" ;; tplink,tl-wpa8631p-v3) ucidef_set_interface_lan "lan1 lan2 lan3 plc0" diff --git a/target/linux/ramips/mt7621/base-files/etc/board.d/05_compat-version b/target/linux/ramips/mt7621/base-files/etc/board.d/05_compat-version index c510dfd81a..acc69021d0 100644 --- a/target/linux/ramips/mt7621/base-files/etc/board.d/05_compat-version +++ b/target/linux/ramips/mt7621/base-files/etc/board.d/05_compat-version @@ -11,6 +11,9 @@ case "$(board_name)" in iptime,ax2004m) ucidef_set_compat_version "2.0" ;; + tplink,er605-v2) + ucidef_set_compat_version "1.2" + ;; *) ucidef_set_compat_version "1.1" ;;