summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Hoffmann2025-11-20 17:24:44 +0000
committerHauke Mehrtens2025-11-24 00:07:04 +0000
commitfccf75eb03f49abf37d0e8e21be04a2dd8a0fce8 (patch)
treea64d2edb354c2f886ea7739f19ae0a98a77a87a9
parent05cddcd12a9d401631f59953f78919c7e58d7b98 (diff)
downloadopenwrt-fccf75eb03f49abf37d0e8e21be04a2dd8a0fce8.tar.gz
mediatek: filogic: add factory image for Asus TUF-AX4200
The initramfs.trx image can be flashed from the web interface of factory firmware. Unfortunately, the default boot command of the bootloader does not load the ramdisk in the FIT image. This means that the image can only be built when the option TARGET_ROOTFS_INITRAMFS_SEPARATE is disabled. Tested with firmware 3.0.0.4.388_33965 (U-Boot 2022.10 / 2.0.0.5). Signed-off-by: Jan Hoffmann <jan@3e8.eu> Link: https://github.com/openwrt/openwrt/pull/20841 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--target/linux/mediatek/image/filogic.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/target/linux/mediatek/image/filogic.mk b/target/linux/mediatek/image/filogic.mk
index 62a46fbc78..efcbe18712 100644
--- a/target/linux/mediatek/image/filogic.mk
+++ b/target/linux/mediatek/image/filogic.mk
@@ -415,6 +415,16 @@ define Device/asus_tuf-ax4200
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
+ifeq ($(IB),)
+ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
+ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS_SEPARATE),)
+ # The default boot command of the bootloader does not load the ramdisk from the FIT image
+ ARTIFACTS := initramfs.trx
+ ARTIFACT/initramfs.trx := append-image-stage initramfs-kernel.bin | \
+ uImage none | asus-trx -v 3 -n $$(DEVICE_MODEL)
+endif
+endif
+endif
endef
TARGET_DEVICES += asus_tuf-ax4200