From cd5fe577771fc5d0916479d6508a59ff187f96e0 Mon Sep 17 00:00:00 2001 From: AmadeusGhost <42570690+AmadeusGhost@users.noreply.github.com> Date: Sun, 29 Mar 2020 13:45:09 +0800 Subject: [PATCH] ramips: k2p: adjust network definition --- target/linux/ramips/image/mt7621.mk | 2 -- .../linux/ramips/mt7621/base-files/etc/board.d/02_network | 6 +++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk index 57e18e1775..53d5110dbe 100644 --- a/target/linux/ramips/image/mt7621.mk +++ b/target/linux/ramips/image/mt7621.mk @@ -678,8 +678,6 @@ define Device/phicomm_k2p IMAGE_SIZE := 15744k DEVICE_VENDOR := Phicomm DEVICE_MODEL := K2P - DEVICE_ALT0_VENDOR := Phicomm - DEVICE_ALT0_MODEL := KE 2P SUPPORTED_DEVICES += k2p DEVICE_PACKAGES := luci-app-mtwifi endef 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 a68ffe6126..536eb2439f 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 @@ -18,7 +18,6 @@ ramips_setup_interfaces() mediatek,mt7621-eval-board|\ mqmaker,witi|\ mtc,wr1201|\ - phicomm,k2p|\ planex,vr500|\ samknows,whitebox-v8|\ storylink,sap-g3200u3|\ @@ -134,6 +133,11 @@ ramips_setup_interfaces() ucidef_add_switch "switch0" \ "0:lan" "6@eth0" ;; + phicomm,k2p) + ucidef_add_switch "switch0" \ + "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6@eth0" + ucidef_set_interface_lan "eth0.1 ra0 rax0 apcli0 apclix0" + ;; xiaomi,mir3g) ucidef_add_switch "switch0" \ "2:lan:2" "3:lan:1" "1:wan" "6t@eth0"