diff options
| author | Andrii Kuiukoff | 2025-10-14 12:05:37 +0000 |
|---|---|---|
| committer | Hauke Mehrtens | 2025-11-16 20:59:28 +0000 |
| commit | 97256a28fe9cc5e844abb697febf47c07957d6de (patch) | |
| tree | 24a2f08592adfae4a9f6d682a8fa5a4b7ddc4a9e | |
| parent | 59ecc11ccf2bc33c6d3ecb41b2eab1c3f070dd1f (diff) | |
| download | openwrt-97256a28fe9cc5e844abb697febf47c07957d6de.tar.gz | |
ramips: add support for EDUP EP-RT2960S
EDUP EP-RT2960S has the similar hardware design as the SIMAX1800T.
The main difference is the arrangement of the GPIO pins
and the location of the MAC address.
Specification
-------------
- SoC : Mediatek MT7621
- RAM : 256 MiB DDR3
- Flash : 128 MiB NAND Flash
- WLAN : Mediatek MT7905 DBDC
- 2.4 GHz : 2x2 MIMO WiFi6
- 5 GHz : 2x2 MIMO WiFi6
- Ethernet : MT7621 built-in 10/100/1000 Mbps 1x WAN; 3x LAN
- UART : 3.3V, 115200n8
- Buttons : 1x RESET; 1x WPS/MESH
- LEDs : 1x Multi-Color(Blue;Green;Red)
- Power : DC 12V1A
- CMIIT ID : 2022AP7163
- TFTP IP :
- server : 192.168.1.254
- router : 192.168.1.28
TFTP Installation(recommend)
------------
1. Set local tftp server IP "192.168.1.254" and NetMask "255.255.255.0".
2. Rename initramfs-kernel.bin to "factory.bin" and put it in the root
directory of the tftp server. tftpd64 is a good choice for Windows.
3. Remove all Ethernet cables and WiFi connections from the PC, except
for the one connected to the EDUP EP-RT2960S. Start the TFTP server, plug
in the power adapter and wait for the OpenWrt system to boot.
4. Backup "firmware" partition and rename it to "firmware.bin". We need
it to back to the stock firmware.
5. Use "fw_printenv" command to list envs. If "firmware_select=2" is
observed then set u-boot env variable via command:
`fw_setenv firmware_select 1`
6. Apply sysupgrade.bin in OpenWrt LuCI.
Web UI Installation
------------
1. Apply update by uploading initramfs-factory.bin to the web UI.
2. Use "fw_printenv" command to list envs. If "firmware_select=2" is
observed then set u-boot env variable via command:
`fw_setenv firmware_select 1`
3. Apply squashfs-sysupgrade.bin in OpenWrt LuCI.
Return to Stock Firmware
----------------------------
Restore the backup firmware partition in the installation step 4.
MAC addresses
-------------
+---------+-------------------+
| | MAC example |
+---------+-------------------+
| LABEL | 24:D5:1C:xx:xx:xx |
| LAN | 24:D5:1C:xx:xx:xx |
| WAN | 24:D5:1C:xx:xx:xx |
| WLAN2G | 24:D5:1C:xx:xx:xx |
| WLAN5G | 26:D5:1C:xx:xx:xx |
+---------+-------------------+
Tips:
-----------
User can use `TFTP Installation` method to recover a brick device.
Signed-off-by: Andrii Kuiukoff <andros.ua@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20600
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
| -rw-r--r-- | target/linux/ramips/dts/mt7621_edup_ep-rt2960s.dts | 54 | ||||
| -rw-r--r-- | target/linux/ramips/dts/mt7621_haier-sim_wr1800k.dtsi | 2 | ||||
| -rw-r--r-- | target/linux/ramips/image/mt7621.mk | 7 | ||||
| -rw-r--r-- | target/linux/ramips/mt7621/base-files/etc/board.d/02_network | 1 | ||||
| -rw-r--r-- | target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac | 15 | ||||
| -rw-r--r--[-rwxr-xr-x] | target/linux/ramips/mt7621/base-files/lib/upgrade/platform.sh | 1 |
6 files changed, 72 insertions, 8 deletions
diff --git a/target/linux/ramips/dts/mt7621_edup_ep-rt2960s.dts b/target/linux/ramips/dts/mt7621_edup_ep-rt2960s.dts new file mode 100644 index 0000000000..6bdf44d491 --- /dev/null +++ b/target/linux/ramips/dts/mt7621_edup_ep-rt2960s.dts @@ -0,0 +1,54 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +#include "mt7621_haier-sim_wr1800k.dtsi" + +/ { + compatible = "edup,ep-rt2960s", "mediatek,mt7621-soc"; + model = "EDUP EP-RT2960S"; + + keys { + reset { + gpios = <&gpio 16 GPIO_ACTIVE_LOW>; + }; + + wps { + gpios = <&gpio 18 GPIO_ACTIVE_LOW>; + }; + }; + + leds { + led_status_blue: led-0 { + gpios = <&gpio 15 GPIO_ACTIVE_LOW>; + }; + + led_status_green: led-1 { + gpios = <&gpio 13 GPIO_ACTIVE_LOW>; + }; + + led_status_red: led-2 { + gpios = <&gpio 17 GPIO_ACTIVE_LOW>; + }; + }; +}; + +ðphy4 { + /delete-property/ interrupts; +}; + +&gmac0 { + nvmem-cells = <&macaddr_factory_3fff4 0>; +}; + +&gmac1 { + phy-handle = <ðphy4>; + + nvmem-cells = <&macaddr_factory_3fff4 (-3)>; +}; + +&nvmem_layout { + macaddr_factory_3fff4: macaddr@3fff4 { + compatible = "mac-base"; + reg = <0x3fff4 0x6>; + #nvmem-cell-cells = <1>; + }; +}; diff --git a/target/linux/ramips/dts/mt7621_haier-sim_wr1800k.dtsi b/target/linux/ramips/dts/mt7621_haier-sim_wr1800k.dtsi index 8bd63967c0..cb050c90d4 100644 --- a/target/linux/ramips/dts/mt7621_haier-sim_wr1800k.dtsi +++ b/target/linux/ramips/dts/mt7621_haier-sim_wr1800k.dtsi @@ -95,7 +95,7 @@ reg = <0x0100000 0x0080000>; read-only; - nvmem-layout { + nvmem_layout: nvmem-layout { compatible = "fixed-layout"; #address-cells = <1>; #size-cells = <1>; diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk index ea78c92e40..a5131f901a 100644 --- a/target/linux/ramips/image/mt7621.mk +++ b/target/linux/ramips/image/mt7621.mk @@ -1227,6 +1227,13 @@ define Device/edimax_rg21s endef TARGET_DEVICES += edimax_rg21s +define Device/edup_ep-rt2960s + $(Device/haier-sim_wr1800k) + DEVICE_VENDOR := EDUP + DEVICE_MODEL := EP-RT2960S +endef +TARGET_DEVICES += edup_ep-rt2960s + define Device/elecom_wrc-gs $(Device/dsa-migration) $(Device/uimage-lzma-loader) 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 a4ae58ed94..eb5a64ab34 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 @@ -14,6 +14,7 @@ ramips_setup_interfaces() buffalo,wsr-2533dhpls|\ confiabits,mt7621-v1|\ dlink,dir-x1860-b1|\ + edup,ep-rt2960s|\ gehua,ghl-r-001|\ h3c,tx1800-plus|\ h3c,tx1801-plus|\ diff --git a/target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac b/target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac index bbd1c7f630..175dcf20f8 100644 --- a/target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac +++ b/target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac @@ -71,13 +71,7 @@ case "$board" in macaddr_setbit_la "$base_mac" > /sys${DEVPATH}/macaddress fi ;; - h3c,tx1800-plus|\ - h3c,tx1801-plus|\ - h3c,tx1806) - addr=$(macaddr_setbit $(macaddr_add $(mtd_get_mac_ascii u-boot-env ethaddr) 2) 7) - [ "$PHYNBR" = "0" ] && echo -n ${addr:0:9}'1'${addr:10:7} > /sys${DEVPATH}/macaddress - [ "$PHYNBR" = "1" ] && echo -n ${addr:0:9}'7'${addr:10:7} > /sys${DEVPATH}/macaddress - ;; + edup,ep-rt2960s|\ haier,har-20s2u1|\ jcg,y2|\ sim,simax1800t|\ @@ -85,6 +79,13 @@ case "$board" in [ "$PHYNBR" = "1" ] && \ macaddr_setbit_la "$(mtd_get_mac_binary factory 0x4)" > /sys${DEVPATH}/macaddress ;; + h3c,tx1800-plus|\ + h3c,tx1801-plus|\ + h3c,tx1806) + addr=$(macaddr_setbit $(macaddr_add $(mtd_get_mac_ascii u-boot-env ethaddr) 2) 7) + [ "$PHYNBR" = "0" ] && echo -n ${addr:0:9}'1'${addr:10:7} > /sys${DEVPATH}/macaddress + [ "$PHYNBR" = "1" ] && echo -n ${addr:0:9}'7'${addr:10:7} > /sys${DEVPATH}/macaddress + ;; hiwifi,hc5962) [ "$PHYNBR" = "1" ] && \ macaddr_unsetbit "$(cat /sys${DEVPATH}/macaddress)" 6 > /sys${DEVPATH}/macaddress diff --git a/target/linux/ramips/mt7621/base-files/lib/upgrade/platform.sh b/target/linux/ramips/mt7621/base-files/lib/upgrade/platform.sh index a68120caab..cc33885423 100755..100644 --- a/target/linux/ramips/mt7621/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/mt7621/base-files/lib/upgrade/platform.sh @@ -93,6 +93,7 @@ platform_do_upgrade() { dlink,dir-3060-a1|\ dlink,dir-853-a3|\ dlink,dir-x1860-b1|\ + edup,ep-rt2960s|\ elecom,wmc-x1800gst|\ elecom,wsc-x1800gs|\ etisalat,s3|\ |