1
1
openwrt/target/linux/mediatek
Dmitry Mostovoy eb6dd61a8d mediatek: add cudy wr3000h-v1 ubootmod
This allows us to use the full size of nand,
which extends ubi size from 64Mb to 122.25Mb.

1. Log in to the device and backup all the partitions,
especially unique "Factory" and "bdata" partitions
from System -> Backup / Flash Firmware -> Save mtdblock contents.
2. Install kmod-mtd-rw to unlock mtd partitions for writing
  apk update && apk add kmod-mtd-rw && insmod mtd-rw i_want_a_brick=1

3. Write new OpenWrt (U-Boot Layout) "BL2" and "FIP":
  mtd -e BL2 write openwrt-mediatek-filogic-cudy_wr3000h-v1-ubootmod-preloader.bin BL2
  mtd -e FIP write openwrt-mediatek-filogic-cudy_wr3000h-v1-ubootmod-bl31-uboot.fip FIP
4. Set static IP on your PC: "192.168.1.254", gateway "192.168.1.1"
5. Serve openwrt-mediatek-filogic-cudy_wr3000h-v1-ubootmod-initramfs-recovery.itb
using TFTP server.
6. Connect Router LAN with PC LAN.
7. Cut off the power and re-engage, wait for TFTP recovery to complete.
8. After OpenWrt initramfs recovery has booted,
clean "/dev/mtd5" ubi partition to utilize maximum of free space:
  ubidetach -p /dev/mtd5; ubiformat /dev/mtd5 -y; ubiattach -p /dev/mtd5
  ubimkvol /dev/ubi0 -n 0 -N ubootenv -s 128KiB
  ubimkvol /dev/ubi0 -n 1 -N ubootenv2 -s 128KiB
9. Perform sysupgrade.

Signed-off-by: Dmitry Mostovoy <stavultras@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21943
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-03-27 11:27:39 +01:00
..
base-files mediatek: filogic: add support for Cudy M3000 w/ YT8821 PHY 2026-03-14 01:40:32 +01:00
dts mediatek: add cudy wr3000h-v1 ubootmod 2026-03-27 11:27:39 +01:00
files/drivers treewide: constify mdio_bus 2026-03-13 19:56:20 +01:00
files-6.12 treewide: constify mdio_bus 2026-03-13 19:56:20 +01:00
filogic mediatek: add cudy wr3000h-v1 ubootmod 2026-03-27 11:27:39 +01:00
image mediatek: add cudy wr3000h-v1 ubootmod 2026-03-27 11:27:39 +01:00
mt7622 mediatek: mt7622: enable KASLR 2026-03-05 02:28:32 +00:00
mt7623 generic: add CONFIG_REGULATOR_QCOM_LABIBB 2026-02-27 11:16:55 +01:00
mt7629 mediatek: replace downstream TRNGv2 driver 2026-03-05 02:26:41 +00:00
patches-6.12 kernel: bump 6.12 to 6.12.77 2026-03-22 12:00:31 +01:00
Makefile mediatek: switch to Linux 6.12 by default 2025-07-18 12:26:40 +01:00
modules.mk mediatek: build rtl8367s_gsw as a kernel module 2025-11-30 22:59:28 +01:00