]> git.ipfire.org Git - thirdparty/openwrt.git/commit
mvebu: cortexa53: uDPU/eDPU convert to dual firmware (A/B)
authorRobert Marko <robert.marko@sartura.hr>
Mon, 23 Feb 2026 16:41:18 +0000 (17:41 +0100)
committerRobert Marko <robert.marko@sartura.hr>
Tue, 26 May 2026 17:35:42 +0000 (19:35 +0200)
commitada2753d6a315b7ff75604342ef69d55b3b418ae
tree6f1f857d20ba0e440cb5f5c5bc6ddfc49f4dce48
parent587a1a8872af09669ec1e15aee5edc7c5d3b5022
mvebu: cortexa53: uDPU/eDPU convert to dual firmware (A/B)

Methode uDPU and eDPU devices are one of the rare ones with a completely
custom image format being used with custom partition table with F2FS.

Instead of converting the boards to dual firmware (A/B style) and further
expand the already convoluted custom scripts, especially considering that
dual firmware conversion is a breaking change anyway, lets convert to using
the generic eMMC sysupgrade based images.

F2FS ZSTD compression is preserved thanks to fstools now supporting its use
on overlays.

Dual firmware support is implemented via U-Boot scripts so no U-Boot
upgrade is required.

Since there is a partition table layout change, eMMC must be wiped and
reflashed with the generated GPT image from OpenWrt initramfs.

Then on each sysupgrade the firmware slot will be altered.

Instructions:
1. Boot into OpenWrt initramfs
2. Copy openwrt-mvebu-cortexa53-methode_edpu-squashfs-emmc-gpt.img.gz to
the device into /tmp
3. Erase eMMC:
dd if=/dev/zero of=/dev/mmcblk0 bs=1M
4. Extract image
gzip -d /tmp/openwrt-mvebu-cortexa53-methode_edpu-squashfs-emmc-gpt.img.gz
5. Flash image
dd if=/tmp/openwrt-mvebu-cortexa53-methode_edpu-squashfs-emmc-gpt.img of=/dev/mmcblk0
6. Reboot

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
target/linux/mvebu/cortexa53/base-files/etc/board.d/05_compat_version [new file with mode: 0644]
target/linux/mvebu/cortexa53/base-files/etc/init.d/bootcount [new file with mode: 0755]
target/linux/mvebu/cortexa53/base-files/lib/preinit/82_uDPU [deleted file]
target/linux/mvebu/cortexa53/base-files/lib/upgrade/platform.sh
target/linux/mvebu/cortexa53/base-files/lib/upgrade/uDPU.sh [deleted file]
target/linux/mvebu/cortexa53/target.mk
target/linux/mvebu/image/Makefile
target/linux/mvebu/image/cortexa53.mk
target/linux/mvebu/image/udpu.bootscript