ramips: add Huasifei MT7621 DTU network and wwan cpe settings

This commit is contained in:
coolsnowwolf 2024-08-12 16:51:44 +08:00
parent 912cb4bdc1
commit 26a04de18b
3 changed files with 11 additions and 2 deletions

View File

@ -859,7 +859,7 @@ define Device/huasifei_mt7621dtu
DEVICE_MODEL := MT7621 DTU DEVICE_MODEL := MT7621 DTU
DEVICE_PACKAGES := kmod-ata-ahci kmod-mt7603 kmod-mt76x2 kmod-sdhci-mt7620 \ DEVICE_PACKAGES := kmod-ata-ahci kmod-mt7603 kmod-mt76x2 kmod-sdhci-mt7620 \
kmod-usb3 kmod-usb-net-cdc-mbim kmod-usb-net-qmi-wwan \ kmod-usb3 kmod-usb-net-cdc-mbim kmod-usb-net-qmi-wwan \
kmod-usb-serial-option luci-proto-qmi kmod-usb-serial-option luci-proto-qmi sendat
endef endef
TARGET_DEVICES += huasifei_mt7621dtu TARGET_DEVICES += huasifei_mt7621dtu

View File

@ -93,6 +93,11 @@ ramips_setup_interfaces()
ucidef_add_switch "switch0" \ ucidef_add_switch "switch0" \
"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6u@eth0" "5u@eth1" "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6u@eth0" "5u@eth1"
;; ;;
huasifei,mt7621dtu)
ucidef_add_switch "switch0" \
"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6u@eth0" "5u@eth1"
ucidef_set_interfaces_lan_wan "eth0" "eth1 eth2"
;;
oraybox,x3a) oraybox,x3a)
ucidef_add_switch "switch0" \ ucidef_add_switch "switch0" \
"2:lan:2" "3:lan:1" "4:wan" "6u@eth0" "5u@eth1" "2:lan:2" "3:lan:1" "4:wan" "6u@eth0" "5u@eth1"

View File

@ -4,8 +4,12 @@ START=99
boot() { boot() {
case $(board_name) in case $(board_name) in
huasifei,ws1208v2) huasifei,mt7621dtu)
echo 1 > /sys/class/gpio/modem_reset/value echo 1 > /sys/class/gpio/modem_reset/value
sleep 5
sendat 0 AT+GTUSBMODE=32
sendat 0 AT+CGDCONT=2,"IP","CMNET"
sendat 0 AT+GTRNDIS=1,2
;; ;;
esac esac
} }