From e6e5a536b931a9aca54c9f95fbb69d4e5cada0ba Mon Sep 17 00:00:00 2001 From: AmadeusGhost <42570690+AmadeusGhost@users.noreply.github.com> Date: Mon, 6 Jul 2020 12:32:29 +0800 Subject: [PATCH] ramips: adjust device settings --- target/linux/ramips/image/mt7621.mk | 10 +++++----- .../linux/ramips/mt7621/base-files/etc/board.d/01_leds | 4 ++-- .../ramips/mt7621/base-files/etc/board.d/02_network | 5 ++++- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk index 15fe94beb3..927d4c8313 100644 --- a/target/linux/ramips/image/mt7621.mk +++ b/target/linux/ramips/image/mt7621.mk @@ -252,8 +252,8 @@ define Device/d-team_newifi-d2 IMAGE_SIZE := 32448k DEVICE_VENDOR := Newifi DEVICE_MODEL := D2 - DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 \ - kmod-usb-ledtrig-usbport wpad-openssl + DEVICE_PACKAGES := kmod-mt7603e kmod-mt76x2e kmod-usb3 \ + kmod-usb-ledtrig-usbport luci-app-mtwifi endef TARGET_DEVICES += d-team_newifi-d2 @@ -753,7 +753,7 @@ define Device/phicomm_k2p DEVICE_VENDOR := Phicomm DEVICE_MODEL := K2P SUPPORTED_DEVICES += k2p - DEVICE_PACKAGES := luci-app-mtwifi + DEVICE_PACKAGES := kmod-mt7615d luci-app-mtwifi endef TARGET_DEVICES += phicomm_k2p @@ -999,7 +999,7 @@ define Device/xiaomi_mi-router-ac2100 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata DEVICE_VENDOR := Xiaomi DEVICE_MODEL := Mi Router AC2100 - DEVICE_PACKAGES := kmod-mt7603 kmod-mt7615e wpad-openssl uboot-envtools + DEVICE_PACKAGES := kmod-mt7603e kmod-mt7615d luci-app-mtwifi uboot-envtools endef TARGET_DEVICES += xiaomi_mi-router-ac2100 @@ -1016,7 +1016,7 @@ define Device/xiaomi_redmi-router-ac2100 IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | check-size $$$$(IMAGE_SIZE) DEVICE_VENDOR := Xiaomi DEVICE_MODEL := Redmi Router AC2100 - DEVICE_PACKAGES := kmod-mt7603 kmod-mt7615e wpad-openssl uboot-envtools + DEVICE_PACKAGES := kmod-mt7603e kmod-mt7615d luci-app-mtwifi uboot-envtools endef TARGET_DEVICES += xiaomi_redmi-router-ac2100 diff --git a/target/linux/ramips/mt7621/base-files/etc/board.d/01_leds b/target/linux/ramips/mt7621/base-files/etc/board.d/01_leds index caec0f896e..d126fb90af 100755 --- a/target/linux/ramips/mt7621/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/mt7621/base-files/etc/board.d/01_leds @@ -19,8 +19,8 @@ led_wlan="$(get_dt_led wlan)" case $board in d-team,newifi-d2) ucidef_set_led_netdev "internet" "internet" "$boardname:amber:internet" "wan" - ucidef_set_led_netdev "wlan2g" "WiFi 2.4GHz" "$boardname:blue:wlan2g" "wlan0" - ucidef_set_led_netdev "wlan5g" "WiFi 5GHz" "$boardname:blue:wlan5g" "wlan1" + ucidef_set_led_netdev "wlan2g" "WiFi 2.4GHz" "$boardname:blue:wlan2g" "ra0" + ucidef_set_led_netdev "wlan5g" "WiFi 5GHz" "$boardname:blue:wlan5g" "rai0" ;; d-team,pbr-m1|\ gehua,ghl-r-001) 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 43dfbd116f..7a50565446 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 @@ -20,12 +20,15 @@ ramips_setup_interfaces() xiaomi,mir4) ucidef_set_interfaces_lan_wan "lan1 lan2" "wan" ;; + d-team,newifi-d2) + ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4 ra0 rai0" "wan" + ;; gehua,ghl-r-001|\ hiwifi,hc5962|\ xiaomi,mir3p|\ xiaomi,mi-router-ac2100|\ xiaomi,redmi-router-ac2100) - ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" "wan" + ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 ra0 rai0" "wan" ;; gnubee,gb-pc1|\ gnubee,gb-pc2)