openwrt/package/boot/uboot-tools/uboot-envtools/files
Fil Dunsky 15df98f3b5 mediatek: add ubootmod layout for Cudy WBR3000UAX v1
This allows us to use the full size of nand,
which extends ubi size from 64Mb to 122.25Mb.

If you are at factory firmware, please refer
to [PR](https://github.com/openwrt/openwrt/pull/21141)
to boot into OpenWrt first.

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:
```bash
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`:
```bash
mtd write openwrt-mediatek-filogic-cudy_wbr3000uax-v1-ubootmod-preloader.bin BL2
mtd write openwrt-mediatek-filogic-cudy_wbr3000uax-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_wbr3000uax-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 & create ubootenvs:
```bash
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
```
4. Perform sysupgrade.

Tested-by: 4pda users
Signed-off-by: Fil Dunsky <filipp.dunsky@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21225
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2025-12-30 22:20:33 +01:00
..
apm821xx
ath79 ath79: add support for Dell SonicPoint ACi APL27-0B1 2025-07-13 01:03:36 +02:00
fw_defaults
fw_loadenv
fw_printsys
fw_setsys
imx_cortexa7
imx_cortexa9
imx_cortexa53 uboot-envtools: add support for Gateworks venice 2025-07-12 20:24:28 +02:00
ipq40xx uboot-envtools: ipq40xx: remove unused function ubootenv_mtdinfo() 2025-12-09 00:34:22 +01:00
ipq806x uboot-tools: envtools: ipq806x: add env for IgniteNet SS-W2-AC2600 2025-06-25 02:06:57 +01:00
kirkwood kirkwood: add support for D-Link DNS-325 A1 2025-11-25 15:41:38 +01:00
lantiq uboot-envtools: reorganize the initialization scripts 2025-12-09 00:34:22 +01:00
layerscape
mediatek_filogic mediatek: add ubootmod layout for Cudy WBR3000UAX v1 2025-12-30 22:20:33 +01:00
mediatek_mt7622 uboot-envtools: reorganize the initialization scripts 2025-12-09 00:34:22 +01:00
mediatek_mt7623
mediatek_mt7629
mpc85xx mpc85xx: add support for Watchguard Firebox T10-W, T15(-W) 2025-12-10 23:48:48 +01:00
mvebu uboot-tools: use ubootenv_add_* functions 2025-06-26 23:12:20 +02:00
mxs
octeon
oxnas
pistachio
qoriq
qualcommax_ipq50xx qualcommax: ipq50xx: add support for Linksys MX6200 2025-12-24 10:42:39 +01:00
qualcommax_ipq60xx uboot-tools: move ubootenv_add_* functions to common functions 2025-06-26 23:12:20 +02:00
qualcommax_ipq807x uboot-envtools: reorganize the initialization scripts 2025-12-09 00:34:22 +01:00
qualcommbe_ipq95xx uboot-tools: envtools: ipq95xx: use common function 2025-07-13 16:43:34 +02:00
ramips uboot-envtools: reorganize the initialization scripts 2025-12-09 00:34:22 +01:00
realtek uboot-envtools: reorganize the initialization scripts 2025-12-09 00:34:22 +01:00
rockchip_armv8
uboot-envtools.sh uboot-tools: move ubootenv_add_ubi_default to common functions 2025-06-26 23:12:20 +02:00