From 3fab4b7685d551e617c0d76d33d42311baa44105 Mon Sep 17 00:00:00 2001 From: Mieczyslaw Nalewaj Date: Mon, 8 Apr 2024 00:49:16 +0200 Subject: [PATCH] ramips: Mercusys AC12G v1 (8M): reduce the size of the LZMA dictionary Reduce the size of the LZMA dictionary (from 8 MB to 4 MB) to reduce the amount of memory needed for unpacking and prevent LZMA ERROR 1. Signed-off-by: Mieczyslaw Nalewaj --- target/linux/ramips/image/mt7620.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/linux/ramips/image/mt7620.mk b/target/linux/ramips/image/mt7620.mk index 92792920cd6df8..dc9578733bb613 100644 --- a/target/linux/ramips/image/mt7620.mk +++ b/target/linux/ramips/image/mt7620.mk @@ -792,6 +792,8 @@ define Device/mercusys_ac12g-v1-8m TPLINK_HWID := 0x04da857c TPLINK_HWREV := 0x0c000600 TPLINK_HWREVADD := 0x04000000 + KERNEL := kernel-bin | append-dtb | lzma -d22 + KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma -d22 | tplink-v2-header -e IMAGES += tftp-recovery.bin IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin) DEVICE_VENDOR := Mercusys