aboutsummaryrefslogtreecommitdiff
path: root/target/linux/ramips/mt76x8/base-files
Commit message (Collapse)AuthorAge
* ramips: CREALITY BOX WB01Axel Sepulveda3 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CREALITY BOX WB01 is small footprint router based on MediaTek MT7688, is a device intended to interface Creality brand 3D printers to a cloud service. Specifications: - SoC: MediaTek MT7688AN @ 580MHz - RAM: DDR2 128M (Winbond W971GG6SB-25) - Flash: BoyaMicro BY25Q128AS (16 MiB, SPI NOR) handled by BoHong bh25q128as driver - WiFi: 2.4GHz 1T1R internal panel antenna - Ethernet: 1x LAN (10/100) - USB: 2x USB2.0 port (Genesys Logic GL850G 2 port USB 2.0 hub) - UART: 3.3V, TX, RX, GND / 56700 8N1 / only pads on PCB - microSD SD-XC Class 10 slot - micro USB input (for power only) - reset button - FCC ID: 2AXH6CREALITY-BOX MAC addresses as verified by OEM firmware: vendor OpenWrt source LAN eth0 factory 0x2e 2.4GHz phy0-ap0 factory 0x04 (label) LEDs color vendor OpenWRT configurable red SD card activity - yes green Cloud connectivity status yes blue LAN activity eth0 yes yellow WIFI activity phy0tpt yes Return to OEM & debrick - download "cxsw_update.tar.bz2" from manufacturer site - extract archive to FAT32 USB stick root - put USB stick in USB2 port - press & hold reset button - power on device while holding reset - wait approx 10 sec - release reset button Installation with SD Card - power on device - wait for device to finish starting - copy "openwrt-ramips-mt76x8-creality_wb-01-squashfs-cxsw_update.tar.bz2" to root of FAT32 SD card - rename openwrt-ramips-mt76x8-creality_wb-01-squashfs-cxsw_update.tar.bz2 to "cxsw_update.tar.bz2" - put SD card in device - device will install OpenWRT on internal flash Installation via telnet: - extract the "factory.bin" and "install.sh" from newly created openwrt-ramips-mt76x8-creality_wb-01-squashfs-cxsw_update.tar.bz2 to FAT32 USB stick root - telnet to 10.10.10.254, user: root, password: cxswprin - plug the USB in USB1 port - cd /media/usbdisk/ - sh install.sh - device will write "factory.bin" to internal flash Co-authored-by: George Brooke <figgyc@figgyc.uk> Co-authored-by: Peca Nesovanovic <peca.nesovanovic@sattrakt.com> Co-authored-by: shivajiva101 <github.com/shivajiva101> Co-authored-by: Axel Sepulveda <ansepulveda@uc.cl> Signed-off-by: Axel Sepulveda <ansepulveda@uc.cl> Link: https://github.com/openwrt/openwrt/pull/19686 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* ramips: add support for Hongdian H7920 v40Coia Prant2025-08-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an industrial 4G router equipped with OpenWrt SNAPSHOT OEM customized version WARNING: The original firmware device tree is modified from evb boards, and the device tree name is evb board. This submitted device tree is a modified version, which deletes the non-this-device parts and adds GPIO watchdog. Specification: - SoC: MediaTek MT7628NN - Flash: 16 MB - RAM: 128 MB - Power: DC 5V-36V 1.5A - Ethernet: 1x WAN [slot not install], 1x LAN (10/100 Mbps) - Wireless radio: 802.11n 2.4g-only [antenna not install] - LED: System/Power (RUN): GPIO/37 active-low Modem: GPIO/3 active-low RF (Modem Signal): GPIO/2 active-low - Button: WPS / RESET: GPIO/11 active-low - UART: 1x UART on PCB - 115200 8N1 - Serial / COM: 1X RS232/RS485 on board (GPIO/6 hi:RS485 lo:RS232) - GPIO Watchdog: GPIO/0 mode=toggle timeout=1s - Modem: 1x Built-in modem on board (Power: GPIO/4 active-high) - PCIe: 1x miniPCIe for modem [slot not install] - SIM Slots: 1x SIM Slots Issue: - Factory partition not store mac address on original firmware Flash instruction: Using SSH/Telnet: 1. Connect the board to the computer via RJ45 Ethernet 2. Login 192.168.8.1 with root password "superzxmn" (SSH Port 22, Telnet Port 5188) 3. Download openwrt firmware on the computer. 4. Use scp or sftp put firmware to board /tmp 5. Use command "mtd -r write openwrt-ramips-mt76x8-hongdian_h7920-v40-squashfs-sysupgrade.bin firmware" to flash Original Firmware Dump / More details: https://blog.gov.cooking/archives/research-hongdian-h7920-v40-and-flash.html Signed-off-by: Coia Prant <coiaprant@gmail.com> Tested-by: Coia Prant <coiaprant@gmail.com> Link: https://github.com/openwrt/openwrt/pull/17726 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* ramips: add support for Wavlink WL-WN570HA2Jonathan Sturges2025-07-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Wavlink Aerial HD3 (WL-WN570HA2) is an AC1200 dual-band outdoor access point. It supports 802.3AT/AF PoE and is IP67 waterproof. It is based on the MediaTek MT7628DAN SoC and MT7613BEN WiFi 5 chip. This model uses the 100Mbit LAN and 2.4Ghz WiFi elements of the MT7628 and the 5Ghz WiFi of the MT7613. Specification: - SoC: MediaTek MT7628DAN (1C/1T) @ 580MHz - RAM: 64MB DDR2 (integrated in SoC) - FLASH: 16MB SPI NOR (Fudan FM25Q128A) - Ethernet: 1x 10/100Mbps - WiFi: 2.4/5 GHz 2T2R - 2.4GHz MediaTek MT7628DAN bgn - 5GHz MediaTek MT7613BEN nac - Antennas: 2x detachable, dual-band 7dBi with RP-SMA connectors. - USB: none - BTN: Reset - LED: 6 total: power; WAN/LAN; WiFi; WiFi low; WiFi med; Wifi high - UART: surface-mount on PCB. Pins are marked via silkscreen. pin1 (square pad, towards Ethernet)=Vcc, pin2=RX, pin3=TX, pin4=GND. Settings: 57600/8N1. NOTE: The TX & RX silkscreens were reversed on my test unit. Installation: 1) This device requires a HTTP recovery procedure to do an initial load of OpenWRT. You will need: a. A web browser (private window recommended) b. Configure an Ethernet interface to 192.168.1.x/24; don't use .1 c. Connect a cable between the computer and the Wavlink's PoE injector. 2) Put the Wavlink in HTTP recovery mode. a. Do this by pressing and holding the reset button on the bottom while powering the unit on. b. As soon as all 6 LEDs light up blue (roughly 2-3 seconds), release the button. c. The LEDs should all remain lit, indicating it's in HTTP recovery. 3) Point the browser at http://192.168.1.1/index.html 4) Click "Choose File" and select the OpenWRT sysupgrade image. 5) Click the "Update Firmware" button and wait while the unit flashes the image and reboots. 6) When the system comes back up fully, only the power LED will be lit. Wait an extra minute then you should be able to reach OpenWRT on http://192.168.1.1 5) Log into LuCI as root; there is no password. Revert to the OEM Firmware: -------------------------- * U-boot HTTP: Follow the HTTP recovery steps, and use a firmware image downloaded from Wavlink. Signed-off-by: Jonathan Sturges <jsturges@redhat.com> Link: https://github.com/openwrt/openwrt/pull/18856 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* ramips: mt76x8: add support for Keenetic 4G (KN-1212)Anton Yu. Ivanusev2025-06-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Specification: SoC: MediaTek MT7628NN RAM: 128 MB, EtronTech EM68C16CWQG-25H (DDR2) Flash: 32MB, Winbond 25Q256JVFQ (Dual Boot, SPI) Switch: MediaTek MT7628AN, 4 ports 100 Mbps WiFi: MediaTek MT7603 2T2R/2.4GHz 802.11n GPIO: 3 buttons (Wi-Fi, Reset, FN), 3 LEDs (Power, Internet, Wi-Fi), 1 port USB 2.0 Disassembly: At the bottom, under the LEDs, there are 2 screws hidden by rubber feet. After removing the screws, pry the gray plastic part around (it is secured with latches) and remove it. Serial Interface: The serial interface can be connected to the 5 pin dots located on the right between the operating mode switch and the antenna. Pins (from antenna to operating mode switch): VCC TX RX NC GND Settings: 115200, 8N1 Flashing via OEM recovery software: 1. Download the OEM recovery software from the manufacturer's website 2. Download the firmware image (for OpenWRT it is *-squashfs-factory.bin), rename it to KN-1212_recovery.bin 3. Replace the file in the fw folder OEM recovery software with the file from step 2. 4. Run the OEM recovery software and follow the instructions. Flashing via TFTP: 1. Connect your PC and router to port 1-3, configure PC interface using IP 192.168.1.2, mask 255.255.255.252 2. Serve the firmware image (for OpenWRT it is *-squashfs-factory.bin) renamed to KN-1212_recovery.bin via TFTP 3. Power up the router while pressing Reset button on the back 4. Release Restart button when Power LED starts blinking To revert back to OEM firmware: The return to the OEM firmware is carried out by using the methods described above with the help of the appropriate firmware image. When using OEM bootloader, the firmware image size cannot exceed the size of one OEM «Firmware_x» partition or Kernel + rootFS size. Signed-off-by: Anton Yu. Ivanusev <ivanusevanton@yandex.ru> Link: https://github.com/openwrt/openwrt/pull/19157 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* ramips: mt76x8: add support for Keenetic Start (KN-1112)Anton Yu. Ivanusev2025-06-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Specification: SoC: MediaTek MT7628NN RAM: 128 MB, EtronTech EM68C16CWQG-25H (DDR2) Flash: 32MB, Winbond 25Q256JVFQ (Dual Boot, SPI) Switch: MediaTek MT7628AN, 4 ports 100 Mbps WiFi: MediaTek MT7603 2T2R/2.4GHz 802.11n GPIO: 2 buttons (Wi-Fi, Reset), 3 LEDs (Power, Internet, Wi-Fi), 1 mode switch Disassembly: At the bottom, under the LEDs, there are 2 screws hidden by rubber feet. After removing the screws, pry the gray plastic part around (it is secured with latches) and remove it. Serial Interface: The serial interface can be connected to the 5 pin dots located on the right between the operating mode switch and the antenna. Pins (from antenna to operating mode switch): VCC TX RX NC GND Settings: 115200, 8N1 Flashing via OEM recovery software: 1. Download the OEM recovery software from the manufacturer's website 2. Download the firmware image (for OpenWRT it is *-squashfs-factory.bin), rename it to KN-1112_recovery.bin 3. Replace the file in the fw folder OEM recovery software with the file from step 2. 4. Run the OEM recovery software and follow the instructions. Flashing via TFTP: 1. Connect your PC and router to port 1-3, configure PC interface using IP 192.168.1.2, mask 255.255.255.252 2. Serve the firmware image (for OpenWRT it is *-squashfs-factory.bin) renamed to KN-1112_recovery.bin via TFTP 3. Power up the router while pressing Reset button on the back 4. Release Restart button when Power LED starts blinking To revert back to OEM firmware: The return to the OEM firmware is carried out by using the methods described above with the help of the appropriate firmware image. When using OEM bootloader, the firmware image size cannot exceed the size of one OEM «Firmware_x» partition or Kernel + rootFS size. Signed-off-by: Anton Yu. Ivanusev <ivanusevanton@yandex.ru> Link: https://github.com/openwrt/openwrt/pull/19091 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* ramips: some minor FDT improvements for HiWiFi devicesShiji Yang2025-06-08
| | | | | | | | | | | | | | | | | | | | | | This patch contains various minor FDT improvements for ramips HiWiFi series devices: * Add mt76 driver compatibles. * Remove useless platform compatibles. * Add default USB LED trigger for HC5861. * Disable unused usbphy for HC5661, HC5661A and HC581B. * Add switch port map properties based on 02_network scripts. * Move aliases node to device dts because the LED nodes it references only exist in the device specific dts. * Rename gpio-leds nodes to follow the upstream dt-bindings suggested pattern "(^led-[0-9a-f]$|led)". * Convert deprecated LED label property to color and function. "system" LED has been renamed to "status", it is acceptable because these LEDs do not have text labels. Signed-off-by: Shiji Yang <yangshiji66@outlook.com> Link: https://github.com/openwrt/openwrt/pull/18251 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* ramips: convert HiWiFi devices MAC address to NVMEM formatShiji Yang2025-06-08
| | | | | | | | | | | | | | | For all HiWiFi series devices, the base MAC address is stored on "bdinfo" partition, offset 0x18a, ASCII text format. The recently introduced "mac-base" nvmem layout can handle the ASCII text now, so it's time to move MAC address configurations to dts. There is no valid MAC info in the "factory" partition, hence they will be replaced with the correct ones. Tested on HiWiFi HC5661A and HC5861. Signed-off-by: Shiji Yang <yangshiji66@outlook.com> Link: https://github.com/openwrt/openwrt/pull/18251 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* ramips: mt76x8: add Teltonika RUT951/RUT901 supportSimonas Tamošaitis2025-06-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Specification: - MediaTek MT7628AN SoC - 128 MB of RAM EtronTech EM68C16CWQG-25IH - 16MB of Flash Winbond W25Q128 SPI - 4x 10/100 Mbps Ethernet, with passive PoE support on LAN1 - MediaTek MT7628AN 2.4 GHz 802.11n WiFi - Quectel EC25-EUX 4G cat 4 modem (RUT951) or Quectel EC200A-EU 4G cat 4 modem (RUT901) - 1x Digital input - 1x Digital output - 2x SIM slot (can be swapped via GPIO) - eSIM (depends on hardware configuration, can be swapped via GPIO) GPIO: - 1 button (Reset) - 7 LEDs (power, status green/red, RSSI 1,2,3,4,5) - 5 Modem control (power button, reset, status, SIM select, eSIM select) - 1 Digital input - 1 Digital output Flashing via OEM WebUI: 1. Download the firmware image *-squashfs-factory.bin 2. Upload firmware image via OEM WebUI firmware update, do not keep settings To revert back to OEM firmware: https://wiki.teltonika-networks.com/view/Bootloader_menu Mobile data connection: Quectel EC200A-EU send command to modem: echo -ne 'AT+QNETDEVCTL=3,1\r\n' > /dev/ttyUSB2 Create DHCP interface with usb0 device. Quectel EC25-EUX create proto qmi interface. Signed-off-by: Simonas Tamošaitis <simsasss@gmail.com> Link: https://github.com/openwrt/openwrt/pull/18788 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* ramips: mt76x8: add Teltonika RUT956/RUT906 supportSimonas Tamošaitis2025-06-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Specification: - MediaTek MT7628AN SoC - 128 MB of RAM EtronTech EM68C16CWQG-25IH - 16MB of Flash Winbond W25Q128 SPI - 4x 10/100 Mbps Ethernet, with passive PoE support on LAN1 - MediaTek MT7628AN 2.4 GHz 802.11n WiFi - Quectel EC25-EUX (RUT956) or Meig SLM770A (RUT906) modem - GNSS - RS232, DB9 connector, Cypress ACM via USB, /dev/ttyACM0 - RS485 /dev/ttyS1 - microSD card slot - 2.0 USB Type-A HOST port - analog 0-24V input (MCP3221) - Relay - 2x Digital input - 2x Digital output - 2x SIM slot (can be swapped via GPIO) - eSIM (depends on hardware configuration, can be swapped via GPIO) GPIO: - 1 button (Reset) - 7 LEDs (power, status green/red, RSSI 1,2,3,4,5) - 5 Modem control (power button, reset, status (v5 hw), SIM select, eSIM select) - 2 Digital input - 2 Digital output - 1 Isolated input - 1 RS485 tx enable - 1 RS485 rx enable - 1 Relay - 1 Data Carrier Detect (DCD) Flashing via OEM WebUI: 1. Download the firmware image *-squashfs-factory.bin 2. Upload firmware image via OEM WebUI firmware update, do not keep settings To revert back to OEM firmware: https://wiki.teltonika-networks.com/view/Bootloader_menu Mobile data connection: Meig SLM770 create proto DHCP interface with usb0 device. Quectel EC25-EUX create proto qmi interface. Signed-off-by: Simonas Tamošaitis <simsasss@gmail.com> Link: https://github.com/openwrt/openwrt/pull/18788 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* ramips: Add support for Xiaomi MiWiFi 3AOlgun Demir2025-04-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Xiaomi MiWiFi 3A wireless router has a similar system architecture as the Xiaomi Mi 4A router, which is already officially supported by OpenWrt. Product website: https://www.mi.com/miwifi3a Device specification -------------------- SoC: MT7628AN MIPS_24KEc @ 580 MHz 2.4G-bgn 2x2 WiFi: MT7612EN 5G-an, ac 80 MHz 2T2R Flash: 16 MB DRAM: 64 MB Switch: MT7628AN (integrated in SoC) Ethernet: 1 x 10 /100 Mbps USB: None Antennas: 2 x 2,4 GHz and 2 x 5 GHz (all are external and non-detachable) LEDs: blue/red/amber Buttons: Reset Serial: 115200,8n1 MAC addresses as verified by OEM firmware: ------------------------------------------ use address source LAN *:DD factory 0x28 WAN *:DD factory 0x28 2g *:DE factory 0x4 5g *:DF factory 0x8004 OEM firmware uses VLAN's to create the network interface for WAN and LAN. Bootloader info: ---------------- The stock bootloader uses a "Dual ROM Partition System". OS1 is a deep copy of OS2. The bootloader starts OS2 by default. To force start OS1 it is needed to set "flag_try_sys2_failed=1". How to install: --------------- 1- Use OpenWRTInvasion to gain Telnet, SSH and FTP access: https://github.com/acecilia/OpenWRTInvasion [IP: 192.168.31.1 | Username: root | Password: root | FTP-Port: 21] 2- Connect to router using telnet or ssh. 3- Backup all partitions. Use command "dd if=/dev/mtd0 of=/tmp/mtd0". Copy /tmp/mtd0 to computer using ftp. 4- Copy openwrt-ramips-mt76x8-xiaomi_miwifi-3a-squashfs-sysupgrade.bin to /tmp in router using ftp. 5- Enable UART access and change start image to OS1. nvram set uart_en=1 nvram set flag_last_success=1 nvram set boot_wait=on nvram set flag_try_sys2_failed=1 nvram commit 6- Erase OS1 & OS2 and install OpenWrt mtd erase OS1 mtd erase OS2 mtd -r write /tmp/openwrt-ramips-mt76x8-xiaomi_miwifi-3a-squashfs-sysupgrade.bin OS1 Credits: -------- This PR is based on the work of Zehao Zhang (Github: @ZZH-Finalize) that he had published in the PR: #15698 Signed-off-by: Olgun Demir <olgun.demir@mail.com.tr> Link: https://github.com/openwrt/openwrt/pull/18427 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* ramips: mt76x8: add support for Teltonika RUT200Simonas Tamošaitis2025-04-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Specification: SoC: MediaTek MT7628AN RAM: 128 MB EtronTech EM68C16CWQG-25IH Flash: 16MB Winbond W25Q128 SPI Switch: MediaTek MT7628AN, 2 ports 100 Mbps WiFi: MediaTek MT7628AN 2.4 GHz 802.11n Modem: Quectel EC200A 4G, cat 4 GPIO: - 1 button (Reset) - 8 LEDs (2G, 3G, 4G, RSSI 1,2,3,4,5) - 2 Modem control (power button, reset) - 1 Digital input - 1 Digital output Flashing via OEM WebUI: 1. Download the firmware image *-squashfs-factory.bin 2. Upload firmware image via OEM WebUI firmware update, do not keep settings To revert back to OEM firmware: https://wiki.teltonika-networks.com/view/Bootloader_menu To enable mobile data connection send command to modem: echo -ne 'AT+QNETDEVCTL=3,1\r\n' > /dev/ttyUSB2 Create DHCP interface with usb0 device. Signed-off-by: Simonas Tamošaitis <simsasss@gmail.com>
* ramips: mt76x8: add support for Teltonika RUT241Simonas Tamošaitis2025-04-18
| | | | | | | | | | | | | | | | | | | | | | | | | Specification: SoC: MediaTek MT7628AN RAM: 128 MB EtronTech EM68C16CWQG-25IH Flash: 16MB Winbond W25Q128 SPI Switch: MediaTek MT7628AN, 2 ports 100 Mbps WiFi: MediaTek MT7628AN 2.4 GHz 802.11n Modem: MeigLink SLM750 4G, cat 4 GPIO: - 1 button (Reset) - 8 LEDs (2G, 3G, 4G, RSSI 1,2,3,4,5) - 2 Modem control (power button, reset) - 1 Digital input - 1 Digital output Flashing via OEM WebUI: 1. Download the firmware image *-squashfs-factory.bin 2. Upload firmware image via OEM WebUI firmware update, do not keep settings To revert back to OEM firmware: https://wiki.teltonika-networks.com/view/Bootloader_menu Signed-off-by: Simonas Tamošaitis <simsasss@gmail.com>
* ramips: mt76x8: add support for MERCUSYS MB130-4G v1Sergii Shcherbakov2025-04-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Specification: SoC: MediaTek MT7628AN RAM: 128 MB, Zentel A3R1GE40JBF-8E Flash: 16MB, Winbond W25Q128JV Switch: rt3050-esw, 2 ports 100 Mbps WiFi: MediaTek mt7628-wmac 2.4GHz 802.11n and MediaTek MT7663 5GHz 802.11ac (PCIe) WWAN: Quectel EC200A-EL 4G modem (USB) GPIO: * 1 button (Reset/WPS) * 6 LEDs (Power+WPS, LAN, 3xSignal) * USB port power controls * Modem reset * Modem programming switch * Internal/external antenna switch for 4G Serial Interface: TP10 - 3.3V can be used for level shifter, if needed TP9 - TX TP8 - RX TP11 - GND Interface properties: 115200, 8N1 Access to console using serial port for OEM firmware: Username: admin Password: 1234 Flashing via TFTP (no disassembling or soldering required): 1. Connect your PC and router to port LAN 2. Configure PC interface using static IP 192.168.1.225, mask 255.255.255.0 3. Place OpenWRT firmware image (*-squashfs-tftp-recovery.bin) to TFTP root folder and renamed it to tp_recovery.bin 4. Unplug power from router 5. Press and hold Reset/WPS button 6. Power up the router 7. Wait until TFTP started uploading image (~10 seconds after power up) and release Reset/WPS button 8. Wait until image uploaded, i.e. until LAN LED start lighting 9. Enable DHCP address on PC interface and wait for assigning address 10. Use ssh (root@192.168.1.1) to configure router properties Depends on patch for firmware-utils package: https://github.com/openwrt/firmware-utils/commit/2051fe5b Signed-off-by: Sergii Shcherbakov <shchers@gmail.com> Link: https://github.com/openwrt/openwrt/pull/17819 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* ramips: mt76x8: add support for Keenetic Launcher (KN-1221)Ivan Davydov2025-03-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Specification: SoC: MediaTek MT7628AN RAM: 128M DDR2, ESMT M14D128168A (2Y) Flash: 32M, cFeon EN25QH256A (Dual Boot on OEM, concatenated on OpenWrt, SPI) Switch: MediaTek MT7628AN, 3 ports 100 Mbps WiFi: MediaTek MT7628AN 2.4 GHz 802.11n USB: 1 port USB 2.0 GPIO: 1 button (Wi-Fi & Reset on OEM, Reset on OpenWrt), 3 LEDs (Power, Internet, Wi-Fi), USB port power controls Disassembly: There are 2 screws at the bottom near the LEDs hidden by rubber mounts. After removing the screws, pry the gray plastic part around (it is secured with latches) and remove it. UART Interface: The UART interface can be connected to the 5 pin located between LAN ports and the WAN one. Pins (from the second LAN port to the WAN one): VCC, TX, RX, NC, GND Settings: 115200, 8N1 Flashing via TFTP: 1. Connect your PC and router to the first LAN port, configure PC interface using IP 192.168.1.2, mask 255.255.255.0 2. Serve the firmware image (for OpenWrt it is *-squashfs-factory.bin) renamed to KN-1221_recovery.bin via TFTP 3. Power up the router while pressing Wi-Fi button 4. Release Wi-Fi button when Power LED starts blinking To revert back to OEM firmware: The return to the OEM firmware is carried out by using the methods described above with the help of the appropriate firmware image found on osvault.keenetic.net. When using OEM bootloader, the firmware image size cannot exceed the size of one OEM «Firmware_x» partition or Kernel + rootFS size. Signed-off-by: Ivan Davydov <lotigara@lotigara.ru> Link: https://github.com/openwrt/openwrt/pull/18164 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* ramips: Add support for Cudy M1200 v1Roland Reinl2025-03-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The M1200 v1 is similar to the TR1200 series from Cudy. Differences: - Only 1 LAN port - No USB Specifications: - MT7628 - MT7628AN (2.4G b/g/n) and MT7613BE (5G ac/n) wifi - 128 MB RAM - 16 MB flash MAC Addresses: - There is one on the label, e.g. xx:xx:xx:xx:xx:A4 - LAN (bottom connector) is the same as the label, e.g. xx:xx:xx:xx:xx:A4 - WAN (top connector) is label + 1, e.g. xx:xx:xx:xx:xx:A5 - WLAN (2.4G) is the same as the label, e.g. xx:xx:xx:xx:xx:A4 - WLAN (5G) is label + 2, e.g. xx:xx:xx:xx:xx:A6 UART: - is available via the pin holes on the board - The pinout is printed to the board: P: VCC, G: GND, R: RX, T:TX - RX and TX require solder bridges to be installed - Do NOT connect VCC - Settings: 3.3V, 115200, 8N1 GPIO: - There are two LEDs: Red (GPIO 4) and White (GPIO 0) - There are two buttons: Reset (GPIO 11) and WPS (GPIO 5) Migration to OpenWrt: - Download the migration image from the Cudy website (it should be available as soon as OpenWrt officially supports the device) - Connect computer to LAN (bottom connector) and flash the migration image via OEM web interface - OpenWrt is now accessible via 192.168.1.1 Revert back to OEM firmware: - Set up a TFTP server on IP 192.168.1.88 and connect to the WAN port (upper port) - Provide the Cudy firmware as recovery.bin in the TFTP server - Press the reset button while powering on the device - Recovery process is started now - When recovery process is done, OEM firmware is accessible via 192.168.10.1 again General information: - No possibility to load a initramfs image via U-Boot because there is no option to interrupt U-Boot Signed-off-by: Roland Reinl <reinlroland+github@gmail.com> Link: https://github.com/openwrt/openwrt/pull/18233 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* ramips: mt76x8: add support for Keenetic Extra (KN-1711)Anton Yu. Ivanusev2025-01-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Specification: SoC: MediaTek MT7628AN RAM: 128 MB, ESMT M14D1G1664A (DDR2) Flash: 32MB, Winbond 25Q256JVFQ (Dual Boot, SPI) Switch: MediaTek MT7628AN, 5 ports 100 Mbps WiFi: MediaTek MT7603 2T2R/2.4GHz 802.11n and MediaTek MT7613AEN 2T2R/5GHz 802.11ac USB: 1 port USB 2.0 GPIO: 3 buttons (Wi-Fi, Reset, FN), 4 LEDs (Power, Internet, FN, Wi-Fi), USB port power controls Disassembly: At the bottom there are 4 screws hidden by rubber feet. After removing the screws, pry the gray plastic part around (it is secured with latches) and remove it. Serial Interface: The serial interface can be connected to the 4 pin dots to the left of the flash. Pins (from LEDs to LAN ports): 3.3V (do not connect) TX RX GND Settings: 115200, 8N1 Flashing via OEM recovery software: 1. Download the OEM recovery software from the manufacturer's website 2. Download the firmware image (for OpenWRT it is *-squashfs-factory.bin), rename it to KN-1711_recovery.bin 3. Replace the file in the fw folder OEM recovery software with the file from step 2. 4. Run the OEM recovery software and follow the instructions. Flashing via TFTP: 1. Connect your PC and router to port 1-4, configure PC interface using IP 192.168.1.2, mask 255.255.255.252 2. Serve the firmware image (for OpenWRT it is *-squashfs-factory.bin) renamed to KN-1711_recovery.bin via TFTP 3. Power up the router while pressing Reset button on the back 4. Release Restart button when Power LED starts blinking To revert back to OEM firmware: The return to the OEM firmware is carried out by using the methods described above with the help of the appropriate firmware image. When using OEM bootloader, the firmware image size cannot exceed the size of one OEM «Firmware_x» partition or Kernel + rootFS size. Signed-off-by: Anton Yu. Ivanusev <ivanusevanton@yandex.ru> Link: https://github.com/openwrt/openwrt/pull/17519 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* ramips: mt76x8: fixs for Keenetic Air (KN-1613) and Extra (KN-1713)Anton Yu. Ivanusev2025-01-12
| | | | | | | | | | A new syntax for LEDs was used, and migration of the LEDs configuration was added. Used lower case hex characters for the addresses. Fixed a USB port power issue. Signed-off-by: Anton Yu. Ivanusev <ivanusevanton@yandex.ru> Link: https://github.com/openwrt/openwrt/pull/17521 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* ramips: Add support for TP-Link Archer MR200 v6Damien Zammit2025-01-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a new port for the above device. Currently, there is no easy installation method except opening the device up and soldering a UART header on and getting u-boot shell access. You boot the initramfs version first using tftpboot, then once booted, you sysupgrade. Shell access to root on vendor firmware: admin:1234 To get U-Boot console, spam '4' into the serial console at boot. with LEDs on the left, serial pinout is: o - tx o - rx o - gnd x - 3v3 server ip for tftpboot 192.168.0.225 The initramfs-kernel version boots without touching onboard flash with: MT7628# tftpboot 0x80000000 openwrt-ramips-mt76x8-tplink_archer-mr200-v6-initramfs-kernel.bin MT7628# bootm 0x80000000 Then when it boots off RAM, you copy openwrt-ramips-mt76x8-tplink_archer-mr200-v6-squashfs-sysupgrade.bin to /tmp/sysupgrade.bin of the device and run: root@OpenWrt:/tmp# sysupgrade -n sysupgrade.bin - [x] LEDs working - [x] Buttons working - [x] wlan detected - [x] wwan detected - [x] initramfs image working - [x] sysupgrade working Signed-off-by: Damien Zammit <damien@zamaudio.com> Link: https://github.com/openwrt/openwrt/pull/15610 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* ramips: mt76x8: add support for Keenetic Extra (KN-1713)Anton Yu. Ivanusev2025-01-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Specification: SoC: MediaTek MT7628AN RAM: 128M DDR2, Etron Technology EM68C16CWQG-25H Flash: 32M, cFeon EN25QH256A (Dual Boot, SPI) Switch: MediaTek MT7628AN, 4 ports 100 Mbps WiFi: MediaTek MT7628AN 2.4 GHz 802.11n and MediaTek MT7613BEN 5 GHz 802.11ac USB: 1 port USB 2.0 GPIO: 3 buttons (Wi-Fi, Reset, FN), 4 LEDs (Power, Internet, FN, Wi-Fi), USB port power controls Disassembly: There are 2 screws at the bottom. After removing the screws, pry the gray plastic part around (it is secured with latches) and remove it. UART Interface: The UART interface can be connected to the 5 pin located between the WAN port and the RESET button. Pins (from WAN port to Reset button): VCC, TX, RX, NC, GRD Settings: 115200, 8N1 Flashing via OEM recovery software: 1. Download the OEM recovery software from the manufacturer's website 2. Download the firmware image (for OpenWRT it is *-squashfs-factory.bin), rename it to KN-1713_recovery.bin 3. Replace the file in the fw folder OEM recovery software with the file from step 2. 4. Run the OEM recovery software and follow the instructions. Flashing via TFTP: 1. Connect your PC and router to port 1-3, configure PC interface using IP 192.168.1.2, mask 255.255.255.252 2. Serve the firmware image (for OpenWRT it is *-squashfs-factory.bin) renamed to KN-1713_recovery.bin via TFTP 3. Power up the router while pressing Reset button on the back 4. Release Restart button when Power LED starts blinking To revert back to OEM firmware: The return to the OEM firmware is carried out by using the methods described above with the help of the appropriate firmware image. When using OEM bootloader, the firmware image size cannot exceed the size of one OEM «Firmware_x» partition or Kernel + rootFS size. Signed-off-by: Anton Yu. Ivanusev <ivanusevanton@yandex.ru> Link: https://github.com/openwrt/openwrt/pull/17382 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* ramips: mt76x8: add support for Keenetic KN-3211Ivan Davydov2024-12-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Keenetic KN-3211 is a 2.4 Ghz band 11n (Wi-Fi 4) Wi-Fi repeater, based on MT7628AN. Specification: - System-On-Chip: MT7628AN - CPU/Speed: 575 MHz - Flash-Chip: Winbond w25q256 - Flash size: 32768 KiB - RAM: 64 MiB - 1x 10/100 Mbps Ethernet - 2x external, non-detachable antennas - UART (J1) header on PCB (115200 8n1) - Wireless No1 (2T2R): SoC Built-in 2.4 GHz 802.11bgn - 3x LED, 1x button, 1x mode switch Notes: - The device supports dual boot mode - The firmware partitions were concatenated into one - The status button has been reassigned as the WPS button. Flash instruction: This device doesn't support sysupgrade, so the only way to flash OpenWrt image is to use tftp recovery mode in U-Boot: 1. Configure PC with static IP 192.168.1.2/24 and tftp server. 2. Rename "openwrt-ramips-mt76x8-keenetic_kn-3211-squashfs-factory.bin" to "KN-3211_recovery.bin" and place it in tftp server directory. 3. Connect PC with the ethernet port, press the reset button, power up the router and keep button pressed until power led starts blinking. 4. Router will download file from server, write it to flash and reboot. Signed-off-by: Ivan Davydov <lotigara@lotigara.ru> Link: https://github.com/openwrt/openwrt/pull/17080 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* ramips: mt76x8: Add support for Zbtlink ZBT-WE2426-BVaclav Svoboda2024-11-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Zbtlink ZBT-WE2426-B is an indoor dual band WiFi router with 4 external non detachable antennas and 5 Fast Ethernet ports. Hardware of ZBT-WE2426-B: - SoC: MT7628AN - RAM: 64 MB (Winbond W9751G6K8-25) - Storage: 8 MB SPI flash (S25FL064K) - Ethernet: 5x 10/100 Mbps LAN1,LAN2,LAN3,LAN4 & WAN - Wireless: 2.4GHz: on SoC (802.11b/g/n) - Wireless: 5GHz: Mediatek MT7612EN (802.11n/ac) - LEDs: 8x - Buttons: 1x reset - USB: 1x 2.0 - MicroSD slot: 1x - Power: 9 VDC, 1 A - Uart: GND TX RX PWR - J1 on the PCB - Board silkscreen: "ZBT-WE2426-C V04" "2018-02-28" "CTT" "13 18" Backup the stock firmware, settings and calibration data: This router comes with PandoraBox OpenWrt firmware, so it is possible to get all MTD partitions using scp. Installation: - Using the bootloader web server. Hold the reset button while turning the power on. Upload the sysupgrade image on http://192.168.1.1. - Using the sysupgrade command in PandoraBox OpenWrt. LEDs: - LAN1,LAN2,LAN3,LAN4,WAN,WLAN2G use GPIO pins of the MT7628AN SoC (GPIOs 43,42,41,40,39,44) - WLAN5G uses pin of MT7612EN. - The POWER LED is directly connected to the VCC. It can be reconnected to the GPIO 37 of the MT7628AN SoC by resoldering SMD resistor on the PCB. Buttons: - The RESET button is connected to the GPIO 38 of the MT7628AN SoC. MAC addresses as verified by OEM firmware: use address source 2g *:b0 factory 0x4 (label) 5g *:b1 factory 0x8004 LAN *:b2 factory 0x28 WAN *:b3 factory 0x2e Signed-off-by: Vaclav Svoboda <svoboda@neng.cz> Link: https://github.com/openwrt/openwrt/pull/16927 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* ramips: mt76x8: add support for Yuncore CPE200Daniel Golle2024-09-02
| | | | | | | | | | | | | | | | | | | | | | | | | Yuncore CPE200 is an outdoor unit with IEEE 802.11ac radio. Hardware: - SoC: MediaTek MT7628DAN (MIPS 580MHz) - Flash: 8 MiB Spansion S25FL064K - RAM: 64 MiB (built-into SoC) - WLAN: 5 GHz (MT7613AE) - Ethernet: 1x 10/100 Mbps WAN, 1x 10/100 LAN (MT7628) - Buttons: 1 Reset button, 2 buttons for display UI (unsupported) - LEDs: 4x Green (Power, LAN, WAN, WiFi) - Display: 4 digit 7-segment display driven by an additional microcontroller (unsupported) - Serial console: unpopulated header, 57600 8n1 (RX only) - Power: 12 VDC, 1 A Installation: The installation can be done via the recovery HTTP server which is built into the bootloader. Hold down the reset button while connecting the device to power and keep holding a bit more than 3 seconds. Connect to http://192.168.0.100/ and upload sysupgrade.bin file. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* ramips: mt76x8: add support for Yuncore M300Daniel Golle2024-08-15
| | | | | | | | | | | | | | | | | | | | | | | | | Hardware: - SoC: MediaTek MT7628DAN (MIPS 580MHz) - Flash: 8 MiB Spansion S25FL064K - RAM: 64 MiB (built-into SoC) - WLAN: 2.4 GHz (MT7628) - Ethernet: 1x 10/100 Mbps WAN, 1x 10/100 LAN (MT7628) - Buttons: 1 Reset button - LEDs: 1x Red, 1x Green - Serial console: unpopulated header, 57600 8n1 (RX only) - Power: 12 VDC, 1 A There are unpopulated areas on the board for 5 GHz WiFi via PCIe as well as (most likely) Quectel EG25-G 4G module. As both are not populated on my board support for both is missing for now. Installation: The installation can be done via the recovery HTTP server which is built into the bootloader. Hold down the reset button while connecting the device to power and keep holding a bit more than 3 seconds. Connect to http://192.168.188.253/ and upload sysupgrade.bin file. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* ramips: add support for Xiaomi R4AC v2 (intl)Anton Stratonnikov2024-08-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The second edition of international version of Mi Router 4A 100M is very similar to the non-international one, but has another wireless chip. Installation -------------- 1. Initialize build-in firmware (use webgui for 192.168.31.1) You should install root password 2. Run OpenWRTInvasion for the first time (probably it will fail) Version 0.0.10 is working as well as 0.0.1. 3. Run OpenWRTInvasion for the second time It will create an access to your router 4. Upload sysupgrade image to router (/tmp/fw.bin) pc# nc -l 8080 < …/ramips/mt76x8/…-100m-intl-v2-squashfs-sysupgrade.bin router# nc 192.168.31.175 8080 > /tmp/fw.bin 5. Flash new firmware router# run mtd -r write /tmp/fw.bin OS1 6. Check result Wait about 5-10 minutes after flash. Router should reboot itself and turn left led from orange to blue. In case of failure one can use Xiaomi 4a 100m debrick tool (it uploads special image via tftpd in recovery mode) After that you can start again from step 1. Another actions are very similar to original Mi Router 4A 100M Original mtd paritions: ------------------------- ``` Creating 9 MTD partitions on "raspi": 0x000000000000-0x000001000000 : "ALL" 0x000000000000-0x000000020000 : "Bootloader" 0x000000020000-0x000000030000 : "Config" 0x000000030000-0x000000040000 : "Factory" 0x000000040000-0x000000050000 : "crash" 0x000000050000-0x000000060000 : "cfg_bak" 0x000000060000-0x000000160000 : "overlay" 0x000000160000-0x000000dc0000 : "OS1" 0x000000dc0000-0x000001000000 : "disk" with special sub-partition 0x0000002c0000-0x000000dc0000 : "rootfs" ``` We will use OS1+disk space: ``` 0x000000160000-0x000001000000 : "firmware" ``` Co-authored-by: Nita Vesa <nita.vesa@elektrik.link> Signed-off-by: Anton Stratonnikov <billic@yandex.ru> Link: https://github.com/openwrt/openwrt/pull/14304 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* ramips: add support for 7Links WLR-1240Sebastian Schaper2024-06-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The WLR-1240 (ZX-5434) is an AC1200 Wave 2 outdoor repeater with omnidirectional antennas for wall or pole mounting. The device is manufactured by Todaair and meant to be used with a tuya-based app, there is no webinterface for configuration. Specifications: - MT7628AN, 8 MiB SPI NOR flash, 64 MiB RAM, 2x2 802.11n - MT7613 2x2 802.11ac Wave 2 - 802.3af PoE or 12V 1A 5.5x2.1 power supply (included) - top RGB LED ring TFTP installation: - rename sysupgrade to `firmware_auto.bin` - provide at 192.168.1.10 during boot HTTP installation: - keep reset button pressed for 5 seconds during power on (light blue LED flashes slowly, then quickly to confirm, then remains steady on) - recovery web interface is at 192.168.1.1, upload sysupgrade Opening the device - use suction cup to remove top cap within LED ring - two screws are located in holes underneath silicone sealant - two further screws are located at the bottom initramfs boot - open device, connect serial console (pins are labelled) - keep pressing `4` during second tftp attempt to enter uboot shell - run `tftpboot 82000000` to avoid memory overlap, then `bootm` Signed-off-by: Sebastian Schaper <openwrt@sebastianschaper.net>
* ramips: add support for 7Links WLR-1230Sebastian Schaper2024-06-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The WLR-1230 (ZX-5207) is an AC1200 Wave 2 outdoor repeater with sector antennas for wall or pole mounting. The device is manufactured by Todaair and meant to be used with a tuya-based app, there is no webinterface for configuration. Specifications: - MT7628AN, 8 MiB SPI NOR flash, 64 MiB RAM, 2x2 802.11n - MT7613 2x2 802.11ac Wave 2 - 802.3af PoE or 12V 1A 5.5x2.1 power supply (included) - 3 LEDs WLAN, LAN, RES; PWR LED is not software-controllable TFTP installation: - rename sysupgrade to `firmware_auto.bin` - provide at 192.168.1.10 during boot HTTP installation: - keep reset button pressed for 5 seconds during power on (LEDs flash slowly, then quickly to confirm, then remain steady on) - recovery web interface is at 192.168.1.1, upload sysupgrade Opening the device - two screws are located in the bottom left and right corners underneath the label, inner tray slides out easily initramfs boot - open device, connect serial console (pins are labelled) - keep pressing `4` during second tftp attempt to enter uboot shell - run `tftpboot 82000000` to avoid memory overlap, then `bootm` Signed-off-by: Sebastian Schaper <openwrt@sebastianschaper.net>
* ramips: mt76x8: sync Cudy TR1200 v1 namingLuis Mita2024-06-10
| | | | | | | | | Cudy assigns hardware versions to its devices on its website, and the Cudy TR1200 router is now Cudy TR1200 v1. OpenWrt currently uses both variants, and this commit removes inconsistencies using only the new name. Signed-off-by: Luis Mita <luis@luismita.com>
* ramips: mt76x8: add support for Cudy TR1200 v1Luis Mita2024-06-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hardware: - SoC: MediaTek MT7628AN (MIPS 580MHz) - Flash: 16 MiB XMC 25QH128CH10 - RAM: 128 MiB ESMT M14D1G1664A - WLAN: 2.4 GHz (MT7628), 5 GHz (MT7613BEN 802.11ac) - Ethernet: 1x 10/100 Mbps WAN, 1x 10/100 LAN (MT7628) - USB 2.0 port - Buttons: 1 Reset button, 1 slider button - LEDs: 1x Red, 1x White - Serial console: unpopulated header, 115200 8n1 - Power: 5 VDC, 2 A MAC addresses: +---------+-------------------+-----------+ | | MAC | Algorithm | +---------+-------------------+-----------+ | WAN | 80:af:ca:xx:xx:x0 | label | | LAN | 80:af:ca:xx:xx:x0 | label | | WLAN 2g | 80:af:ca:xx:xx:x0 | label | | WLAN 5g | 80:af:ca:xx:xx:x2 | label+2 | +---------+-------------------+-----------+ Installation: The installation must be done via TFTP by disassembling the router. On other occasions Cudy has distributed intermediate firmware to make installation easier, and so I recommend checking the Wiki for this device if there is a more convenient solution than the one below. To install using TFTP: 1. Upgrade to a beta firmware (signed by Cudy) that can be downloaded from the wiki. This is required in order to use an unlocked u-boot. 2. Connect to UART. 3. While the router is turning on, press 1. 4. Connect to LAN and set your IP to 192.168.1.88/24. Configure a TFTP server and an OpenWrt initramfs-kernel.bin firmware file as recovery.bin. 5. Press Enter three times. Verify the filename. 6. If you can reach LuCI or SSH now, just use the sysupgrade image with the 'Keep settings' option turned off. If you don't want to use the beta firmware nor the unlocked u-boot, you can install the firmware writing the sysupgrade image on the firmware partition of the SPI flash. Signed-off-by: Luis Mita <luis@luismita.com>
* ramips: add support for TP-Link Archer MR200v5Lea Teuberth2024-05-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Specifications: CPU: MT7628AN 580MHz RAM: 64MB DDR2 FLASH: 8MB EN25QH64 NOR SPI WIFI: 2.4GHz 2x2 MT7628 b/g/n internal WIFI: 5GHz 1x1 MT7610E ac/n PCI LTE: Qualcomm MDM9207 ETH: 4xLAN 100base-T integrated SWITCH: RT3050-ESW Port 0,1,2,3: LAN, Port 6: CPU LEDS: LAN, WAN, Power, 3x signal strength, WiFi BTNS: Reset, WiFi toggle UART: Near ETH ports, Vcc-GND-RX-TX, 115200, 8N1 Installation: 1. Update using recovery mode - set your IP to 192.168.0.225, subnet mask: 255.255.255.0 - start tftp server, rename tftp-recovery.bin to tp_recovery.bin and place it into the server's directory - while holdig the "reset" button, power on the device - keep holding "reset" until the file is being transferred Notes: This board has only one MAC address programmed in the "romfile" partition: - MAC for phy0 (2.4GHz) at romfile 0xf100 (0) - MAC for phy1 (5GHz) at romfile 0xf100 (-1) - stock firmware re-uses phy0 MAC for ethernet - stock firmware uses romfile 0xf100 (1) for WWAN; not used since QMI interface is raw IP Signed-off-by: Lea Teuberth <lea.teuberth@outlook.com>
* ramips: add support for TP-Link RE205 v3Steffen Loley2024-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TP-Link RE205 v3 is a wireless range extender with Ethernet and 2.4G and 5G WiFi with external antennas. It's based on MediaTek MT7628AN+MT7610EN like the RE200 v3/v4 but with external antennas. Specifications -------------- - MediaTek MT7628AN (580 Mhz) - 64 MB of RAM - 8 MB of FLASH - 2T2R 2.4 GHz and 1T1R 5 GHz - 1x 10/100 Mbps Ethernet - 5x LED (GPIO-controlled), 2x button - UART connection holes on PCB (57600 8n1) There are 2.4G and 5G LEDs in blue which are controlled separately. Installation ------------ Installation is identical to RE200 v3 devices as described at https://openwrt.org/toh/tp-link/re200#installation Web Interface ------------- It is possible to upgrade to OpenWrt via the web interface. Simply flash the -factory.bin from OEM. In contrast to a stock firmware, this will not overwrite U-Boot. Recovery -------- U-Boot seems to be locked on newer versions, if not it can be accessed over the UART as described in the link above. Signed-off-by: Steffen Loley <slo-src@web.de>
* ramips: mt76x8: add support for TP-Link RE365 v1Tomasz Maciej Nowak2024-01-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TP-Link RE365 is a wireless range extender, hardware-wise resembles RE305 with slight changes regarding buttons and LEDs. Specification SoC: MediaTek MT7628AN RAM: 64 MiB DDR2 Flash: 8 MiB SPI NOR WiFi: 2.4 GHz 2T2R integrated 5 GHz 2T2R MediaTek MT7612EN conncted to PCIe lanes Ethernet: 1x 10/100 Mbps integrated LEDs: 6x GPIO controlled Buttons: 4x GPIO controlled UART: row of 4 holes marked on PCB as J1, starting count from white triangle 1. VCC (3.3V), 2. GND, 3. RX, 4. TX baud: 57600, parity: none, flow control: none Installation 1. Open web management interface. 2. Go to Settings > System Tools > Firmware upgrade. 3. Select "Browse" and select the OpenWrt image with factory.bin suffix. 4. After selecting "Upgrade" firmware writing process will start. 5. Wait till device reboots, power LED should stay solid when it's fully booted, then it's ready for configuration through LAN port. Additional information With how device manufacturer patrtitioned the flash memory, it's possible that with default packages set, initial factory.bin image won't be created. In such case, try to reduce packages amount or use older release for initial conversion to OpenWrt. Later You can use sysupgrade.bin image with full set of packages because OpenWrt uses unpartitioned flash memory space unused by vendor firmware. Reverting to vendor firmware involves converting firmware using tplink-safeloader with -z option (can be found in ImageBuilder or SDK) and forcibly applying converted firmware as sysupgrade. Known issues WARNING: after removing casing of the device one is exposed to high voltage and is in a risk of being electrocuted. Caution when interfacing whith bootloader, saving its environment either by issuing "saveenv" or selecting option "1: Load system code to SDRAM via TFTP." in boot menu, any of those will lead to overwriting part of kernel. This will lead to need of firmware recovery. The cause of this issue is bootloader having environment offset on flash at 0x40000, while kernel starts from 0x20000. Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com> [Wrap long line in DTS] Signed-off-by: Sander Vanheule <sander@svanheule.net>
* ramips: add TP-LINK TL-WR902AC v4Kamil Jońca2023-12-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Seems to be very similar to: https://openwrt.org/toh/tp-link/tl-wr902ac_v3 1 x usb 1 x eth Powered by mini usb port. Installation: Can use TFTP method to install: 1. establish TFTP server at 192.168.0.66 2. provide tp_recover.bin file to the TFTP server 3. turn on router with reset button pressed 4. wait for led blinking, then release reset Specification based on dmesg from already flashed device: SoC Type: MediaTek MT7628AN ver:1 eco:2 CPU0 revision is: 00019655 (MIPS 24KEc) Memory: 56028K/65536K available CPU Clock: 580MHz WiFi: MT7613BE MAC addresses are all the same, except wifi5g which last part is decrement by one, ie.: eth0 40:ed:00:cf:b9:9b br-lan 40:ed:00:cf:b9:9b phy0-ap0 40:ed:00:cf:b9:9b phy1-ap0 40:ed:00:cf:b9:9a Signed-off-by: Kamil Jońca <kjonca@onet.pl>
* ramips: Add support for TP-Link Archer C50 v6 (CA/EU/RU)Renaud Gaspard2023-11-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds support for the TP-Link Archer C50 v6 (CA/EU/RU). (The ES variant is a rebranded Archer C54 and NOT supported.) CPU: MediaTek MT7628 (580MHz) RAM: 64M DDR2 FLASH: 8M SPI WiFi: 2.4GHz 2x2 MT7628 b/g/n integrated WiFi: 5GHz 2x2 MT7613 a/n/ac ETH: 1x WAN 4x LAN LED: Power, WiFi2, WiFi5, LAN, WAN, WPS BTN: WPS/WiFi, RESET UART: Near ETH ports, 115200 8n1, TP-Link pinout Create Factory image -------------------- As all installation methods require a U-Boot to be integrated into the image (and we do not ship one with the image). We are not able to create an image in the OpenWRT build-process. Download a TP-Link image for your device variant (CA/EU or RU) from their website and a OpenWRT sysupgrade image for the device and build yourself a factory image like following: TP-Link image: tpl.bin OpenWRT sysupgrade image: owrt.bin > dd if=tpl.bin of=boot.bin bs=131584 count=1 > cat owrt.bin >> boot.bin Installing via Web-UI --------------------- Upload the boot.bin via TP-Links firmware upgrade tool in the web-interface. Installing via Recovery ----------------------- Activate Web-Recovery by beginning the upgrade Process with a Firmware-Image from TP-Link. After starting the Firmware Upgrade, wait ~3 seconds (When update status is switching to 0%), then disconnect the power supply from the device. Upgrade flag (which activates Web-Recovery) is written before the OS-image is touched and removed after write is succesfull, so this procedure should be safe. Plug the power back in. It will come up in Recovery-Mode on 192.168.0.1. When active, all LEDs but the WPS LED are off. Remeber to assign yourself a static IP-address as DHCP is not active in this mode. The boot.bin can now be uploaded and flashed using the web-recovery. Installing via TFTP ------------------- Prepare an image like following (Filenames from factory image steps apply here) > dd if=/dev/zero of=tp_recovery.bin bs=196608 count=1 > dd if=tpl.bin of=tmp.bin bs=131584 count=1 > dd if=tmp.bin of=boot.bin bs=512 skip=1 > cat boot.bin >> tp_recovery.bin > cat owrt.bin >> tp_recovery.bin Place tp_recovery.bin in root directory of TFTP server and listen on 192.168.0.66/24. Connect router LAN ports with your computer and power up the router while pressing the reset button. The router will download the image via tftp and after ~1 Minute reboot into OpenWRT. U-Boot CLI ---------- U-Boot CLI can be activated by holding down '4' on bootup. Dual U-Boot ----------- This is the first TP-Link MediaTek device to feature a split-uboot design. The first (factory-uboot) provides recovery via TFTP and HTTP, jumping straight into the second (firmware-uboot) if no recovery needs to be performed. The firmware-uboot unpacks and executed the kernel. Web-Recovery ------------ TP-Link integrated a new Web-Recovery like the one on the Archer C7v4 / TL-WR1043v5. Stock-firmware sets a flag in the "romfile" partition before beginning to write and removes it afterwards. If the router boots with this flag set, bootloader will automatically start Web-recovery and listens on 192.168.0.1. This way, the vendor-firmware or an OpenWRT factory image can be written. By doing the same while performing sysupgrade, we can take advantage of the Web-recovery in OpenWRT. It is important to note that Web-Recovery is only based on this flag. It can't detect e.g. a crashing kernel or other means. Once activated it won't boot the OS before a recovery action (either via TFTP or HTTP) is performed. This recovery-mode is indicated by an illuminated WPS-LED on boot. Co-authored-by: Julius Schwartzenberg <julius.schwartzenberg@gmail.com> Signed-off-by: Renaud Gaspard <gaspardrenaud@hotmail.com> Signed-off-by: Julius Schwartzenberg <julius.schwartzenberg@gmail.com> Tested-by: Julius Schwartzenberg <julius.schwartzenberg@gmail.com> Tested-by: Jaroslav Mikulík <byczech@gmail.com> Tested-by: Ashipa Eko <ashipa.eko@gmail.com>
* ramips: add support for OrayBox X1Bin We2023-04-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for OrayBox X1. It is a 802.11n router, based on MediaTek MT7628N. Specifications: SoC: MediaTek MT7628N (580MHz) RAM: 64 MiB Flash: 16 MiB NOR (Winbond W25Q128JVSIQ) Wireless: 802.11b/g/n 2x2 2.4GHz (Built In) Ethernet: 1x 100Mbps only USB: 1x USB Type-A 2.0 Host Port Button: 1x "Reset" button LED: 1x Blue LED + 1x Red LED + 1x White LED Power: 5V Micro-USB input Manufacturer Page: https://pgy.oray.com/router/x1.html/parameter Flash Layout: 0x000000000000-0x000000030000 : "u-boot" 0x000000030000-0x000000040000 : "kpanic" 0x000000040000-0x000000050000 : "factory" 0x000000050000-0x000000fe0000 : "firmware" 0x000000fe0000-0x000000ff0000 : "bdinfo" 0x000000ff0000-0x000001000000 : "reserve" Install via SSH: Original firmware is based on OpenWRT, but SSH is not start by default, You should enable it first 1. Login into web admin (10.168.1.1), default password is 'admin' 2. Open the following link, and the result should be {"code":0}; SSH is now started, username is root, password is same as web admin password http://10.168.1.1/cgi-bin/oraybox?_api=ssh_set&enabled=1 4. You can flash firmware via mtd: mtd write /tmp/firmware_image.bin firmware Signed-off-by: Bin We <me@udp.pw>
* ramips: improve support for Zyxel Keenetic Extra IIMaxim Anisimov2023-01-28
| | | | | | | | | | | - drop unneeded default-state for led_power - concat firmware partitions to extend available free space - increase spi flash frequency to 32 Mhz (value from stock firmware bootlog) - drop broken-flash-reset because of onboard flash chip W25Q256FV has reset support - add compatible for pcie wifi according to kernel documetation - switch to wan mac address with offset 0x28 in rf-eeprom Signed-off-by: Maxim Anisimov <maxim.anisimov.ua@gmail.com>
* ramips: add support for Keenetic KN-1613Maxim Anisimov2023-01-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Keenetic KN-1613 is a 2.4/5 Ghz band 11ac (Wi-Fi 5) router, based on MT7628AN. Specification: - System-On-Chip: MT7628AN - CPU/Speed: 580 MHz - Flash-Chip: Winbond w25q256 - Flash size: 32768 KiB - RAM: 128 MiB - 4x 10/100 Mbps Ethernet - 2x external, non-detachable antennas - UART (J1) header on PCB (115200 8n1) - Wireless No1 (2T2R): SoC Built-in 2.4 GHz 802.11bgn - Wireless No2 (2T2R): MT7613BE 5 GHz 802.11ac - 4x LED, 2x button, 1x mode switch Notes: - The device supports dual boot mode - The firmware partitions were concatinated into one - The FN button led indicator has been reassigned as the 2.4GHz wifi indicator. Flash instruction: The only way to flash OpenWrt image is to use tftp recovery mode in U-Boot: 1. Configure PC with static IP 192.168.1.2/24 and tftp server. 2. Rename "openwrt-ramips-mt76x8-keenetic_kn-1613-squashfs-factory.bin" to "KN-1613_recovery.bin" and place it in tftp server directory. 3. Connect PC with one of LAN ports, press the reset button, power up the router and keep button pressed until power led start blinking. 4. Router will download file from server, write it to flash and reboot. Signed-off-by: Maxim Anisimov <maxim.anisimov.ua@gmail.com>
* ramips: add support for Linksys E5400 and clonesJulien Dusser2022-12-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Linksys E5400 is a 2.4/5GHz dual band AC router, based on MediaTek MT7628AN. This device is also sold as Linksys E2500v4, E5300 and E5350 with the same hardware, but software speed limitations in vendor firmwares. Specification: * SoC: MT7628AN (580 MHz) * RAM: DDR2 64 MiB * Flash: 16 MiB NOR (W25Q128BV) * Wi-Fi: * 2.4GHz: SoC Built-in * 5GHz: MT7612EN * Ethernet: 5x 100Mbps * Switch: SoC built-in * UART: * 115200, 8N1, 3.3V (real u-boot speed: 119050) * Pinout JB4: 1:[3V3] (TXD) (RXD) [NC] (GND) Flash Layout: 0x0000000-0x0030000 : "Bootloader" 0x0030000-0x0040000 : "Config" 0x0040000-0x0050000 : "Factory" 0x0050000-0x0ff0000 : "Kernel" 0x0ff0000-0x1000000 : "CBTinfo" MAC address: LAN: factory 0x28 WAN: LAN + 1 2.4G: LAN + 2 5G: LAN + 3 Installation: 1. Connect to UART, use LF as EOL (not CRLF) 2. Set IP address - Press 4 during boot - setenv serverip <TFTPSERVER_IP> - setenv ipaddr <DEVICE_IP> - setenv bootfile openwrt-ramips-mt76x8-linksys_e5400-initramfs-kernel.bin - saveenv - reset 3. Load Openwrt Kernel image from TFTP: - Press 1 during boot - IP and filename should be already set 4. Boot into OpenWrt and perform sysupgrade with sysupgrade image. Signed-off-by: Julien Dusser <julien.dusser@free.fr>
* ramips: add support for HiWiFi HC5611Senis John2022-12-04
| | | | | | | | | | | | | | | | | | | | | | | CPU: MediaTek MT7628AN @ 575 MHz Flash: 16 MB RAM: 128 MB Ethernet: 10/100Mbps x 1 Wlan: 300 Mbps USB: USB 2.0 x 1 LED: red/green x 1 Button: reset x 1 1. Open https://www.hiwifi.wtf/, Get Cloud token and unlock ssh 2. Upload the openwrt firmware to the router via SCP 3. Login the router via SSH 4. Run `mtd -r write path_to_firmware.bin firmware` I have tested on my device. - The LED will display RED on power-on, After system start completed, trun GREEN - Reset button working now. Long press after 5s will reset factory. Short press less 1s will reboot the device - USB can working under official u-boot Signed-off-by: Senis John <thank243@gmail.com>
* ramips: add missing WAN LED for Xiaomi Mi Router 4A / 4CShiji Yang2022-10-23
| | | | | | The blue WAN LED connected to GPIO37 is missing, so re-add it. Signed-off-by: Shiji Yang <yangshiji66@qq.com>
* ramips: kndrt31r19: set up wan interface by defaultAndrey Butirsky2022-10-19
| | | | | | The only WAN port of the device is it's modem, so set it up as such Signed-off-by: Andrey Butirsky <butirsky@gmail.com>
* ramips: add support for Kroks Rt-Cse SIM Injector DSAndrey Butirsky2022-09-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Aka Kroks Rt-Cse5 UW DRSIM (KNdRt31R16), ID 1958: https://kroks.ru/search/?text=1958 See Kroks OpenWrt fork for support of other models: https://github.com/kroks-free/openwrt Device specs: - CPU: MediaTek MT7628AN - Flash: 16MB SPI NOR - RAM: 64MB - Bootloader: U-Boot - Ethernet: 5x 10/100 Mbps - 2.4 GHz: b/g/n SoC - USB: 1x - SIM-reader: 2x (driven by a dedicated chip with it's own firmware) - Buttons: reset - LEDs: 1x Power, 1x Wi-Fi, 12x others (SIM status, Internet, etc.) Flashing: - sysupgrade image via stock firmware WEB interface, IP: 192.168.1.254 - U-Boot launches a WEB server if Reset button is held during power up, IP: 192.168.1.1 MAC addresses as verified by OEM firmware: vendor OpenWrt source LAN eth0 factory 0x4 (label) 2g wlan0 label Signed-off-by: Andrey Butirsky <butirsky@gmail.com>
* ramips: add support for Kroks Rt-Pot mXw DS RSIM routerAndrey Butirsky2022-09-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 <dev@kroks.ru> [butirsky@gmail.com: port to master; drop dts-v1] Signed-off-by: Andrey Butirsky <butirsky@gmail.com>
* ramips: Add Xiaomi Mi Router 4A 100M InternationalNita Vesa2022-07-03
| | | | | | | | | | | | The international version of Mi Router 4A 100M is physically identical to the non-international one, but appears to be using a different partitioning scheme with the "overlay" partition being 2MiB in size instead of 1MiB. This means the following "firmware" partition starts at a different address and the DTS needs to be adjusted for the firmware to work. Signed-off-by: Nita Vesa <werecatf@outlook.com>
* ramips: Add suport for COMFAST CF-WR617ACSergei Iudin2022-07-03
| | | | | | | | | | | | | | | | | Specifications: Chipset:MT7628DA+MT7612E Antenna : 2.4Ghz:2x5dbi Antenna + 5.8Ghz:2x5dbi Antenna Wireless Rate:2.4Ghz 300Mbps , 5.8Ghz 867Mbps Output Power :100mW(20dbm) Physical port:110/100Mbps RJ45 WAN Port , 310/100Mbps RJ45 LAN Port Flash: 8Mb DRam: 64Mb Flashing: default bootloader attempts to boot from tftp://192.168.1.10/firmware_auto.bin using 192.168.1.1 Known issues: mac-address-increment for 5GHZ doesnt work, i failed to figure out why. Original firmware using +1 from original value in factory partition. Signed-off-by: Sergei Iudin <tsipa740@gmail.com>
* ramips: add support for ASUS RT-AC1200-V2Tamas Balogh2022-04-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hardware specifications: SoC: MT7628DAN MIPS_24KEc@580MHz 2.4G-n 2x2 WiFi: MT7613BEN 5G-ac 160MHz 2x2 Switch: 4x100M built-in SoC Flash: 16MB W25Q128JVSQ SPI-NOR DRAM: 64MB built-in SoC MAC addresses as verified by OEM firmware: use address source Lan/Wan/2G *:60 factory 0x4 (label) 5G *:64 factory 0x8000 Serial console: 57600,8n1 Installation: Asus windows recovery tool: install the Asus firmware restoration utility unplug the router, hold the reset button while powering it on release when the power LED flashes slowly specify a static IP on your computer: IP address: 192.168.1.75 Subnet mask 255.255.255.0 start the Asus firmware restoration utility, specify the factory image and press upload do NOT power off the device after OpenWrt has booted until the LED flashing after flashing OpenWrt, there will be first no 5GHz Wifi available probably, wait until blinking finishes and do a reboot TFTP Recovery method: set computer to a static ip, 192.168.1.75 connect computer to the LAN 1 port of the router hold the reset button while powering on the router for a few seconds send firmware image using a tftp client; i.e from linux: $ tftp tftp> binary tftp> connect 192.168.1.1 tftp> put factory.bin tftp> quit do NOT power off the device after OpenWrt has booted until the LED flashing after flashing OpenWrt, there will be first no 5GHz Wifi available probably, wait until blinking finishes and do a reboot Signed-off-by: Tamas Balogh <tamasbalogh@hotmail.com>
* ramips: add support for Wavlink WL-WN531A3Davide Fioravanti2022-04-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Wavlink WL-WN531A3 is an AC1200 router with 5 fast ethernet ports and one USB 2.0 port. It's also known as Wavlink QUANTUM D4. Hardware -------- SoC: Mediatek MT7628AN RAM: 64MB FLASH: 8MB NOR (GigaDevice GD25Q64CSIG3) ETH: - 5x 10/100 Mbps Ethernet (4x LAN + 1x WAN) WIFI: - 2.4GHz: 1x (integrated in SOC) (2x2:2) - 5GHz: 1x MT7612E (2x2:2) - 4 external antennas BTN: - 1x Reset button - 1x WPS button - 1x Turbo button - 1x Touchlink button - 1x ON/OFF switch LEDS: - 1x Red led (system status) - 1x Blue led (system status) - 7x Blue leds (wifi led + 5 ethernet ports + power) USB: - 1x USB 2.0 port UART: - 57600-8-N-1 J1 O VCC +3,3V (near lan ports) o RX o TX o GND Everything works correctly. Currently there is no firmware update available. Because of this, in order to restore the OEM firmware, you must firstly dump the OEM firmware from your router before you flash the OpenWrt image. Backup the OEM Firmware ----------------------- The following steps are to be intended for users having little to none experience in linux. Obviously there are many ways to backup the OEM firmware, but probably this is the easiest way for this router. Procedure tested on M31A3.V4300.200420 firmware version. 1) Go to http://192.168.10.1/webcmd.shtml 2) Type the following line in the "Command" input box and then press enter: mkdir /etc_ro/lighttpd/www/dev; cp /dev/mtd0ro /etc_ro/lighttpd/www/dev/mtd0ro; ls -la /etc_ro/lighttpd/www/dev/mtd0ro 3) After few seconds in the textarea should appear this output: -rw-r--r-- 1 0 0 8388608 /etc_ro/lighttpd/www/dev/mtd0ro If your output doesn't match mine, stop reading and ask for help in the forum. 4) Open in another tab http://192.168.10.1/dev/mtd0ro to download the content of the whole NOR. If the file size is 0 byte, stop reading and ask for help in the forum. 5) Come back to the http://192.168.10.1/webcmd.shtml webpage and type: rm /etc_ro/lighttpd/www/dev/mtd0ro; for i in 1 2 3 4 ; do cp /dev/mtd${i}ro /etc_ro/lighttpd/www/dev/mtd${i}ro; done; ls -la /etc_ro/lighttpd/www/dev/ 6) After few seconds, in the textarea should appear this output: -rw-r--r-- 1 0 0 196608 mtd1ro -rw-r--r-- 1 0 0 65536 mtd2ro -rw-r--r-- 1 0 0 65536 mtd3ro -rw-r--r-- 1 0 0 8060928 mtd4ro drwxr-xr-x 7 0 0 0 .. drwxr-xr-x 2 0 0 0 . If your output doesn't match mine, stop reading and ask for help in the forum. 7) Open the following links to download the partitions of the OEM FW: http://192.168.10.1/dev/mtd1ro http://192.168.10.1/dev/mtd2ro http://192.168.10.1/dev/mtd3ro http://192.168.10.1/dev/mtd4ro If one (or more) of these files are 0 byte, stop reading and ask for help in the forum. 8) Store these downloaded files in a safe place. 9) Reboot your router to remove any temporary file in ram. Installation ------------ Flash the initramfs image in the OEM firmware interface (http://192.168.10.1/update.shtml). When Openwrt boots, flash the sysupgrade image otherwise you won't be able to keep configuration between reboots. Restore OEM Firmware -------------------- Flash the "mtd4ro" file you previously backed-up directly from LUCI. Warning: Remember to not keep settings! Warning2: Remember to force the flash. Notes ----- 1) Router mac addresses: LAN XX:XX:XX:XX:XX:9B (factory @ 0x28) WAN XX:XX:XX:XX:XX:9C (factory @ 0x2e) WIFI 2G XX:XX:XX:XX:XX:9D (factory @ 0x04) WIFI 5G XX:XX:XX:XX:XX:9E (factory @ 0x8004) LABEL XX:XX:XX:XX:XX:9D 2) There is just one wifi led for both wifi interfaces. It currently shows only the 2.4 GHz wifi activity. Signed-off-by: Davide Fioravanti <pantanastyle@gmail.com>
* ramips: fix wifi mac address of HiWiFi series devicesShiji Yang2022-03-26
| | | | | | | | | | | | | | | | | | For HiWiFi series devices, label_mac can be read from bdinfo partition, and lan_mac, wlan2g_mac are same as the label_mac. Converting label_mac to wlan5g_mac only needs to unset 6th bit. (It seems that all HiWiFi's label_mac start with D4:EE) For example: label D4:EE:07:32:84:88 lan D4:EE:07:32:84:88 wan D4:EE:07:32:84:89 wlan2g D4:EE:07:32:84:88 wlan5g D0:EE:07:32:84:88 Tested on HiWiFi HC5661. Signed-off-by: Shiji Yang <yangshiji66@qq.com>
* ramips: add support for Asus RT-AC1200Ray Wang2022-03-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Asus RT-AC1200 is a 2.4/5GHz dual band AC router, based on MediaTek MT7628AN. Specification: * SoC: MT7628AN * RAM: DDR2 64 MiB * Flash: 16 MiB NOR (W25Q128BV) * Wi-Fi: * 2.4GHz: SoC Built-in * 5GHz: MT7612EN * Ethernet: 5x 100Mbps * Switch: SoC built-in * USB: 1x 2.0 Flash Layout: 0x0000000-0x0030000 : "bootloader" 0x0030000-0x0040000 : "nvram" 0x0040000-0x0050000 : "factory" 0x0050000-0x1000000 : "firmware" MAC address: LAN: factory 0x28 WAN: factory 0x22 2.4G: factory 0x4 5G: factory 0x8004 Installation via **recovery** mode: 1. Download the Asus recovery firmware (windows) tool from http://dlcdnet.asus.com/pub/ASUS/LiveUpdate/Release/Wireless/Rescue.zip 2. Set your ethernet IP manually 192.168.1.5 / 255.255.255.0 with NO gateway. 3. Plug in your ethernet to LAN port 1 on the router. 4. Load up the recovery software with the firmware file, but don't press "Upload" yet. 5. Plug in the router to power WHILE HOLDING the reset button in. While CONTINUING to hold the button, select "Upload" Continue to hold the reset button in until it finishes and verifies! 6. If that doesn't work try pressing "Upload" first just before you do step 5. At some point while holding reset the rescue tool will finally detect and upload the firmware. That's when you can let go of the reset button. 7. The router will reboot and not much will happen. Wait a minute or 2. 8. Power off and on the router again. Voila. Set everything your Ethernet IP back to DHCP (automatically) and you're good to go. Revert to stock firmware: 1. Install stock image via recovery mode. Tested-by: Ivan Pavlov <AuthorReflex@gmail.com> Signed-off-by: Ray Wang <raywang777@foxmail.com>
* ramips: update MAC address configuration for Buffalo WCR-1166DSINAGAKI Hiroshi2022-03-06
| | | | | | | | This patch converts MAC address configuration of Buffalo WCR-1166DS in 02_network to use the generic function of OpenWrt. And also, add label_mac. Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
* ramips: correct vendor name for COMFAST/JoowinRodrigo Araujo2022-01-22
| | | | | | | | | | | | | | | | When Joowin WR758AC V1 and V2 devices were added, they should have been added with the primary manufacturer name which is COMFAST, since Joowin is just an alternate vendor name on some coutries or stores. Fix this by changing the the vendor name on the respective files and set Joowin as ALT0 variants while ensuring compatibility for early users. Also adjust the model names to better follow the naming rules. As a side effect, fix mt76x8 network script which was left incorrectly unsorted on the case block conditions. Fixes: 766733e172 ("ramips: add support for Joowin WR758AC V1 and V2") Signed-off-by: Rodrigo Araujo <araujo.rm@gmail.com>