summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco von Rosenberg2026-03-23 21:08:38 +0000
committerHauke Mehrtens2026-03-24 21:24:12 +0000
commit0142538c2850a425ea8e445a1f034dd3dcdb202f (patch)
treebee1796c6be7e0852daa20216d784591ba134659
parent627421d5df213311559d6ab717f8037572340025 (diff)
ath79: fix initramfs boot for Huawei AP5030DN and AP6010DN
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> (cherry picked from commit 17784ad785c2d49c694de332640d85737124eb3a)
-rw-r--r--target/linux/ath79/image/generic.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/ath79/image/generic.mk b/target/linux/ath79/image/generic.mk
index 794d199187..1bb9211466 100644
--- a/target/linux/ath79/image/generic.mk
+++ b/target/linux/ath79/image/generic.mk
@@ -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