From 60383c5d6b2064e3dae1105c1aa7123aaffdf8a9 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sat, 4 Apr 2026 16:34:16 -0700 Subject: [PATCH] ath79: wndap360: use lzma-loader for kernel The bootloader on this device is old and supports no lzma. So use lzma-loader to work around this and get the size smaller so that an image can actuallly be created and flashed. Because of these size problems, the last usable version of OpenWrt was 23.05. This UIMAGE_MAGIC seems to be used by other Netgear devices. Add to avoid jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000: 0x2705 instead Signed-off-by: Rosen Penev Link: https://github.com/openwrt/openwrt/pull/22769 Signed-off-by: Robert Marko --- target/linux/ath79/image/generic.mk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/target/linux/ath79/image/generic.mk b/target/linux/ath79/image/generic.mk index 7a682dbf26..0e831ce9bc 100644 --- a/target/linux/ath79/image/generic.mk +++ b/target/linux/ath79/image/generic.mk @@ -2237,8 +2237,9 @@ define Device/netgear_wndap360 DEVICE_PACKAGES := kmod-owl-loader IMAGE_SIZE := 7744k BLOCKSIZE := 256k - KERNEL := kernel-bin | append-dtb | gzip | uImage gzip - KERNEL_INITRAMFS := kernel-bin | append-dtb | uImage none + LOADER_TYPE := bin + KERNEL := kernel-bin | append-dtb | lzma | loader-kernel | uImage none + KERNEL_INITRAMFS := $$(KERNEL) IMAGES := sysupgrade.bin IMAGE/sysupgrade.bin := append-kernel | pad-to 64k | append-rootfs | pad-rootfs | \ check-size | append-metadata