]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
ath79: fix initramfs boot for Huawei AP5030DN and AP6010DN
authorMarco von Rosenberg <marcovr@selfnet.de>
Mon, 23 Mar 2026 21:08:38 +0000 (22:08 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 24 Mar 2026 21:21:56 +0000 (22:21 +0100)
Fix execution of initramfs image on Huawei AP5030DN and AP6010DN by
increasing available memory for LZMA extraction by the loader.

The default leaves only ~23.6 MB between the decompression target
and the running loader code. Extracting images with built-in
packages lead to overwriting the loader code. This causes
the decompression to produce garbage output and hang.

Fix this by overwriting LZMA_TEXT_START to increase the
available memory for LZMA extraction to ~39.6 MB.

Signed-off-by: Marco von Rosenberg <marcovr@selfnet.de>
Link: https://github.com/openwrt/openwrt/pull/22581
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/ath79/image/generic.mk

index 7f43fde57fe13b6f6bdae164ba9793ff9a246e21..163997b98353de09b8afc51c6831f9aadd219d00 100644 (file)
@@ -1836,6 +1836,7 @@ define Device/huawei_ap5030dn
   DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct
   LOADER_TYPE := bin
   LOADER_FLASH_OFFS := 0x111DC0
+  LZMA_TEXT_START := 0x82800000
   KERNEL_SIZE := 15360k
   IMAGE_SIZE := 30720k
   COMPILE := loader-$(1).bin
@@ -1851,6 +1852,7 @@ define Device/huawei_ap6010dn
   DEVICE_MODEL := AP6010DN
   LOADER_TYPE := bin
   LOADER_FLASH_OFFS := 0x111DC0
+  LZMA_TEXT_START := 0x82800000
   KERNEL_SIZE := 15360k
   IMAGE_SIZE := 30720k
   COMPILE := loader-$(1).bin