openwrt/package
Fil Dunsky 8004708f2d
Some checks failed
Build all core packages / Build all core packages for selected target (push) Waiting to run
Build Kernel / Build all affected Kernels (push) Has been cancelled
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
(cherry picked from commit 15df98f3b5)
Link: https://github.com/openwrt/openwrt/pull/21342
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2026-01-02 19:45:43 +01:00
..
base-files base-files: fix default_postinst clearing luci cache 2026-01-02 14:34:58 +01:00
boot mediatek: add ubootmod layout for Cudy WBR3000UAX v1 2026-01-02 19:45:43 +01:00
devel kselftests-bpf: drop dependency on kernel 6.6 2025-11-27 12:47:16 +01:00
firmware linux-firmware: intel: bump BE200 wifi firmware 2025-12-17 21:26:17 +01:00
kernel kernel/rtl8812au-ct: provide a virtual kmod 2026-01-02 18:11:03 +01:00
libs toolchain: fix libgcc ABI for libc 2025-12-24 19:39:54 +01:00
network package: ethtool: specify just one default variant 2026-01-02 18:11:33 +01:00
system treewide: add explicit default variant 2026-01-02 18:11:04 +01:00
utils treewide: add explicit default variant 2026-01-02 18:11:04 +01:00
Makefile package: do not sign individual APK packages 2025-10-09 12:52:43 +02:00