From 0a79c77a4e9d33d352974874a8860c7412e49bd5 Mon Sep 17 00:00:00 2001 From: Andrey Butirsky Date: Thu, 8 Sep 2022 01:19:35 +0300 Subject: ramips: add support for Kroks Rt-Pot mXw DS RSIM router Aka "Kroks KNdRt31R19". Ported from v19.07.8 of OpenWrt fork: see https://github.com/kroks-free/openwrt for support of other models. Device specs: - CPU: MediaTek MT7628AN - Flash: 16MB SPI NOR - RAM: 64MB - Bootloader: U-Boot - Ethernet: 1x 10/100 Mbps - 2.4 GHz: b/g/n SoC - mPCIe: 1x (usually equipped with an LTE modem by vendor) - Buttons: reset - LEDs: 1x Modem, 1x Injector, 1x Wi-Fi, 1x Status Flashing: - sysupgrade image via stock firmware WEB interface. - U-Boot launches a WEB server if Reset button is held during power up. Server IP: 192.168.1.1 SIM card switching: The device supports up to 4 SIM cards - 2 locally on board and 2 on remote SIM-injector. By default, 1-st local SIM is active. To switch to e.g. 1-st remote SIM: echo 0 > /sys/class/gpio/modem1power/value echo 0 > /sys/class/gpio/modem1sim1/value echo 1 > /sys/class/gpio/modem1rsim1/value echo 1 > /sys/class/gpio/modem1power/value MAC addresses as verified by OEM firmware: vendor OpenWrt source LAN eth0 factory 0x4 (label) 2g wlan0 label Signed-off-by: Kroks [butirsky@gmail.com: port to master; drop dts-v1] Signed-off-by: Andrey Butirsky --- target/linux/ramips/image/mt76x8.mk | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'target/linux/ramips/image/mt76x8.mk') diff --git a/target/linux/ramips/image/mt76x8.mk b/target/linux/ramips/image/mt76x8.mk index 21126c32d9..ecb4075d62 100644 --- a/target/linux/ramips/image/mt76x8.mk +++ b/target/linux/ramips/image/mt76x8.mk @@ -310,6 +310,17 @@ define Device/jotale_js76x8-32m endef TARGET_DEVICES += jotale_js76x8-32m +define Device/kroks_kndrt31r19 + IMAGE_SIZE := 16064k + DEVICE_VENDOR := Kroks + DEVICE_MODEL := Rt-Pot mXw DS RSIM + DEVICE_ALT0_VENDOR := Kroks + DEVICE_ALT0_MODEL := KNdRt31R19 + DEVICE_PACKAGES := kmod-usb2 uqmi + SUPPORTED_DEVICES += kndrt31r19 +endef +TARGET_DEVICES += kroks_kndrt31r19 + define Device/mediatek_linkit-smart-7688 IMAGE_SIZE := 32448k DEVICE_VENDOR := MediaTek -- cgit v1.2.3