1
0
Fork 0
forked from mirror/openwrt
openwrt/package
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
..
base-files base-files: fix default_postinst clearing luci cache 2025-12-26 20:02:59 +01:00
boot mediatek: add ubootmod layout for Cudy WBR3000UAX v1 2025-12-30 22:20:33 +01:00
devel strace: update to 6.18 2025-12-23 18:04:03 +01:00
firmware ipq40xx: add support for Cisco Meraki MR20 2025-12-29 19:41:24 +01:00
kernel package: gpio-nct5104d: adapt to kernel 6.18 2025-12-30 10:44:05 +01:00
libs toolchain: fix libgcc ABI for libc 2025-12-24 10:05:52 +01:00
network wifi-scripts: use OWE + country for 6GHz 2025-12-30 14:43:08 +01:00
system apk: bump to 3.0.2 2025-12-12 13:59:39 +01:00
utils packages: nvram: add set_bcm43602_variables quirk for ASUS RT-AC3200 2025-12-18 18:18:48 +00:00
Makefile build: avoid errors during release candidate kernel packaging 2025-12-20 11:06:47 +01:00