ramips: fix LZMA decompression error for TP-Link EAP615-Wall
authorShiji Yang <[email protected]>
Thu, 23 Oct 2025 00:56:47 +0000 (08:56 +0800)
committerRobert Marko <[email protected]>
Mon, 17 Nov 2025 09:33:17 +0000 (10:33 +0100)
Relocating the kernel load address to avoid the memory overlap issue.

Fixes: https://github.com/openwrt/openwrt/issues/19403
Signed-off-by: Shiji Yang <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20509
Signed-off-by: Robert Marko <[email protected]>
target/linux/ramips/image/mt7621.mk

index a4a4747c0a16e8cce60f933438eaf75106268fb1..9bbee68f6b5606d0c6ea54e8cbc731d5a6e0c8b3 100644 (file)
@@ -2933,7 +2933,9 @@ define Device/tplink_eap615-wall-v1
   DEVICE_VARIANT := v1
   DEVICE_PACKAGES := kmod-mt7915-firmware -uboot-envtools
   TPLINK_BOARD_ID := EAP615-WALL-V1
-  KERNEL := kernel-bin | lzma -d22 | fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb | pad-to 64k
+  KERNEL_LOADADDR := 0x82000000
+  KERNEL := kernel-bin | relocate-kernel $(loadaddr-y) | lzma | \
+       fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb | pad-to 64k
   KERNEL_INITRAMFS := kernel-bin | lzma -d22 | fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb
   IMAGE_SIZE := 13248k
 endef