openwrt/target/linux/ramips
Luis Mita d414ed185e ramips: mt76x8: add support for Cudy RE1200 Outdoor v1
Hardware:
 - SoC: MediaTek MT7628DAN
 - Flash: 8 MiB XMC 25QH64CHIQ
 - RAM: 64 MiB (integrated on SoC)
 - WLAN: 2.4 GHz (MT7603E, 11n), 5 GHz (MediaTek MT7613BEN, 11ac)
 - Ethernet: 1x10/100 Mbps LAN
 - Buttons: 1 Reset button, 1 WPS button
 - LEDs: 5x Green
 - Serial Console: unpopulated header 115200 8n1
 - Power: 24v Passive POE

MAC addresses:
+---------+-------------------+-----------+
|         | MAC               | Algorithm |
+---------+-------------------+-----------+
| 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 | +2        |
+---------+-------------------+-----------+

Installation:
Please check the Wiki for this device for a more convenient solution than the one below.

1. Disassemble the device, desolder and dump the flash chip with a SPI programmer.
2. Separate the partitions with dd:

dd if=spi_dump.bin of=u-boot.bin     bs=1  skip=0        count=196608  status=progress
dd if=spi_dump.bin of=u-boot-env.bin bs=1  skip=196608   count=65536   status=progress
dd if=spi_dump.bin of=factory.bin    bs=1  skip=262144   count=65536   status=progress
dd if=spi_dump.bin of=firmware.bin   bs=1  skip=327680   count=7995392 status=progress
dd if=spi_dump.bin of=bdinfo.bin     bs=1  skip=8323072   count=65536   status=progress

3. Download the sysupgrade firmware at openwrt.bin.
4. The firmware size should be 7995392 bytes. Fix the size of your firmware putting zeros to the end, with:

truncate -s 7995392 firmware.bin

5. Combine all the parititions:

cat u-boot.bin u-boot-env.bin factory.bin openwrt.bin bdinfo.bin > spi_new.bin

6. Erase and flash the SPI chip with the new file. Solder the chip and boot the router.

Signed-off-by: Luis Mita <luis@luismita.com>
Link: https://github.com/openwrt/openwrt/pull/20381
(cherry picked from commit 65215e6d46)
Link: https://github.com/openwrt/openwrt/pull/20463
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2025-11-09 14:39:45 +01:00
..
base-files/etc ramips: remove model name from LED labels 2020-10-02 14:51:57 +02:00
dts ramips: mt76x8: add support for Cudy RE1200 Outdoor v1 2025-11-09 14:39:45 +01:00
files/drivers ramips: mtk-mmc: fix data timeout value 2025-11-09 14:26:34 +01:00
image ramips: mt76x8: add support for Cudy RE1200 Outdoor v1 2025-11-09 14:39:45 +01:00
mt76x8 ramips: mt76x8: add support for Cudy RE1200 Outdoor v1 2025-11-09 14:39:45 +01:00
mt7620 ramips: add support for Hongdian H8922 v30 2025-03-15 11:54:54 +01:00
mt7621 ramips: add support for Zbtlink ZBT-WG108 2025-10-05 18:46:11 +02:00
patches-6.6 ramips: mtk-sd: stability improvements for MIPS mt762x SoCs 2025-11-09 14:26:34 +01:00
rt288x kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
rt305x ramips: mt76x8: disable unused Ralink systick driver 2024-11-28 18:49:27 +00:00
rt3883 kernel: filter out compiler opts from config 2024-11-28 18:47:54 +00:00
Makefile ramips: switch to Linux 6.6 2024-05-03 21:36:42 +01:00
modules.mk ramips: mtk-sd: backport Host Software Queue support 2025-11-09 14:26:34 +01:00