[openwrt/openwrt] ramips: pad EX400 kernel partition to retain web recovery
LEDE Commits
lede-commits at lists.infradead.org
Wed May 14 10:03:31 PDT 2025
blocktrron pushed a commit to openwrt/openwrt.git, branch openwrt-24.10:
https://git.openwrt.org/2bcc3163a6ea02919e699d0562032d821341fabb
commit 2bcc3163a6ea02919e699d0562032d821341fabb
Author: David Bauer <mail at david-bauer.net>
AuthorDate: Wed May 14 01:49:44 2025 +0200
ramips: pad EX400 kernel partition to retain web recovery
The web-recovery of the Genexis EX400 validates uploaded images to fit
in the rootf_0 partition.
With OpenWrt, only the kernel is stored in this partition, leaving the
partition very small. Currently, the first factory release image won't
be accepted by the recovery interface after the OpenWrt installation.
Pad the image of the ubifs to 10MB. This allows the 24.10 release image
to be uploaded, enabling device recovery.
Signed-off-by: David Bauer <mail at david-bauer.net>
(cherry picked from commit eea4689654e1b07cffe62bc97ad8fef0474bb3b7)
---
target/linux/ramips/image/mt7621.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk
index 46c4b71afd..95bb8fc867 100644
--- a/target/linux/ramips/image/mt7621.mk
+++ b/target/linux/ramips/image/mt7621.mk
@@ -1394,7 +1394,7 @@ ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
IMAGE/factory.bin := append-image-stage initramfs-kernel.bin | \
inteno-bootfs | inteno-y3-header EX400 | append-md5sum-ascii-salted
endif
- IMAGE/sysupgrade.bin := append-kernel | inteno-bootfs | \
+ IMAGE/sysupgrade.bin := append-kernel | inteno-bootfs | pad-to 10M | \
sysupgrade-tar kernel=$$$$@ | check-size | append-metadata
DEVICE_IMG_NAME = $$(DEVICE_IMG_PREFIX)-$$(2)
DEVICE_PACKAGES := kmod-mt7603 kmod-mt7615-firmware kmod-usb3 kmod-keyboard-sx951x kmod-button-hotplug
More information about the lede-commits
mailing list