Skip to content

Commit 17784ad

Browse files
CodingMarcohauke
authored andcommitted
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: openwrt#22581 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
1 parent b1713d6 commit 17784ad

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎target/linux/ath79/image/generic.mk‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1836,6 +1836,7 @@ define Device/huawei_ap5030dn
18361836
DEVICE_PACKAGES := ath10k-firmware-qca988x-ct kmod-ath10k-ct
18371837
LOADER_TYPE := bin
18381838
LOADER_FLASH_OFFS := 0x111DC0
1839+
LZMA_TEXT_START := 0x82800000
18391840
KERNEL_SIZE := 15360k
18401841
IMAGE_SIZE := 30720k
18411842
COMPILE := loader-$(1).bin
@@ -1851,6 +1852,7 @@ define Device/huawei_ap6010dn
18511852
DEVICE_MODEL := AP6010DN
18521853
LOADER_TYPE := bin
18531854
LOADER_FLASH_OFFS := 0x111DC0
1855+
LZMA_TEXT_START := 0x82800000
18541856
KERNEL_SIZE := 15360k
18551857
IMAGE_SIZE := 30720k
18561858
COMPILE := loader-$(1).bin

0 commit comments

Comments
 (0)