mediatek: add OpenWrt (U-Boot layout) for Cudy WR3000P v1 + add common ATF DDR4 target#21285
Closed
stavultras wants to merge 3 commits intoopenwrt:mainfrom
Closed
mediatek: add OpenWrt (U-Boot layout) for Cudy WR3000P v1 + add common ATF DDR4 target#21285stavultras wants to merge 3 commits intoopenwrt:mainfrom
stavultras wants to merge 3 commits intoopenwrt:mainfrom
Conversation
Since there are some similar devices from Cudy (WR3000H / WR3000P) this will allow to create OpenWrt U-Boot layout for all of them using same DDR4 target. Signed-off-by: Dmitry Mostovoy <stavultras@gmail.com>
fildunsky
suggested changes
Dec 25, 2025
package/boot/uboot-mediatek/patches/445-add-cudy_wr3000p-v1.patch
Outdated
Show resolved
Hide resolved
e0822f7 to
8e8693d
Compare
3d2cd50 to
3b50639
Compare
fildunsky
approved these changes
Dec 26, 2025
5991407 to
5ba37de
Compare
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_wr3000p-v1-ubootmod-preloader.bin BL2 mtd -e FIP write openwrt-mediatek-filogic-cudy_wr3000p-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_wr3000p-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 4. Perform sysupgrade. Signed-off-by: Dmitry Mostovoy <stavultras@gmail.com>
5ba37de to
79f75a1
Compare
|
I have applied this patch and tested it on the Cudy WR3000P v1. The device boots up correctly and works as expected. Thank you for your work! |
Signed-off-by: Dmitry Mostovoy <stavultras@gmail.com>
1f3afc9 to
cf38add
Compare
Contributor
Author
|
Closed in favor of #21339 due to merge conflicts. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds OpenWrt (U-Boot layout) for the Cudy WR3000P v1 device.
The changes are split into 2 commits:
This structure allows reuse of the ATF target for other similar Cudy devices with DDR4 RAM.