Skip to content

Commit fccf75e

Browse files
janhhauke
authored andcommitted
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 <[email protected]> Link: openwrt/openwrt#20841 Signed-off-by: Hauke Mehrtens <[email protected]>
1 parent 05cddcd commit fccf75e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

target/linux/mediatek/image/filogic.mk

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,16 @@ define Device/asus_tuf-ax4200
415415
KERNEL_INITRAMFS := kernel-bin | lzma | \
416416
fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb with-initrd | pad-to 64k
417417
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
418+
ifeq ($(IB),)
419+
ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
420+
ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS_SEPARATE),)
421+
# The default boot command of the bootloader does not load the ramdisk from the FIT image
422+
ARTIFACTS := initramfs.trx
423+
ARTIFACT/initramfs.trx := append-image-stage initramfs-kernel.bin | \
424+
uImage none | asus-trx -v 3 -n $$(DEVICE_MODEL)
425+
endif
426+
endif
427+
endif
418428
endef
419429
TARGET_DEVICES += asus_tuf-ax4200
420430

0 commit comments

Comments
 (0)