openwrt/target/linux/ramips/image
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
..
lzma-loader ramips: lzma-loader: use default uart for rt305x 2024-01-02 22:10:34 +01:00
common-sercomm.mk targetwide: imagebuilder: add explicit guards around initramfs rules 2025-10-21 11:39:10 +02:00
common-tp-link.mk ramips: introduce TP-Link v1 header OKLI image recipe 2024-10-06 14:07:37 +02:00
Makefile ramips: move zyimage creation to include/image-commands.mk 2025-02-26 23:32:40 +01:00
mt76x8.mk ramips: mt76x8: add support for Cudy RE1200 Outdoor v1 2025-11-09 14:39:45 +01:00
mt7620.mk targetwide: imagebuilder: add explicit guards around initramfs rules 2025-10-19 18:37:45 +02:00
mt7621.mk targetwide: imagebuilder: add explicit guards around initramfs rules 2025-10-21 11:39:10 +02:00
rt288x.mk treewide: Disable building 32M RAM devices 2023-05-21 01:08:22 +02:00
rt305x.mk treewide: rename ZyXEL to Zyxel 2024-08-25 15:08:25 +02:00
rt3883.mk ramips: fix image recipe for ASUS RT-N56U 2024-07-13 14:30:42 +02:00