[openwrt/openwrt] mediatek: filogic: add ASUS RT-AX52 factory-initramfs image generation

LEDE Commits lede-commits at lists.infradead.org
Fri Oct 17 01:55:47 PDT 2025


robimarko pushed a commit to openwrt/openwrt.git, branch openwrt-24.10:
https://git.openwrt.org/4e81893953c8721aefc45e7053b85f20b621eaa8

commit 4e81893953c8721aefc45e7053b85f20b621eaa8
Author: Christoph Krapp <achterin at gmail.com>
AuthorDate: Tue Oct 14 20:22:29 2025 +0200

    mediatek: filogic: add ASUS RT-AX52 factory-initramfs image generation
    
    This adds the required image receipt to generate a vendor ui compatible
    initramfs-factory image, that can be used to flash the final sysupgrade
    image.
    
    Signed-off-by: Christoph Krapp <achterin at gmail.com>
    Link: https://github.com/openwrt/openwrt/pull/20409
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 target/linux/mediatek/image/Makefile   | 5 +++++
 target/linux/mediatek/image/filogic.mk | 3 +++
 2 files changed, 8 insertions(+)

diff --git a/target/linux/mediatek/image/Makefile b/target/linux/mediatek/image/Makefile
index d4f79ec974..668d9a8cb0 100644
--- a/target/linux/mediatek/image/Makefile
+++ b/target/linux/mediatek/image/Makefile
@@ -33,6 +33,11 @@ define Device/Default
 	pad-rootfs | append-metadata
 endef
 
+define Build/asus-trx
+	$(STAGING_DIR_HOST)/bin/asusuimage $(wordlist 1,$(words $(1)),$(1)) -i $@ -o $@.new
+	mv $@.new $@
+endef
+
 include $(SUBTARGET).mk
 
 define Image/Build
diff --git a/target/linux/mediatek/image/filogic.mk b/target/linux/mediatek/image/filogic.mk
index 6369586736..d062a47e4a 100644
--- a/target/linux/mediatek/image/filogic.mk
+++ b/target/linux/mediatek/image/filogic.mk
@@ -270,6 +270,9 @@ define Device/asus_rt-ax52
   KERNEL_INITRAMFS := kernel-bin | lzma | \
 	fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb with-initrd | pad-to 64k
   IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
+  ARTIFACTS := initramfs.trx
+  ARTIFACT/initramfs.trx := append-image-stage initramfs-kernel.bin | \
+	uImage none | asus-trx -v 3 -n $$(DEVICE_MODEL)
 endef
 TARGET_DEVICES += asus_rt-ax52
 




More information about the lede-commits mailing list