From 4ecf1588f196f03c26eead8c3aaabbc665cace3f Mon Sep 17 00:00:00 2001 From: Vandhiadevan Karunamoorthy Date: Mon, 4 Jul 2022 12:24:32 +0530 Subject: [PATCH] board: devsoc: add GZIP support for crash dump These changes only add GZIP support for the default u-boot; they do not apply to the tiny u-boot. Change-Id: I1f022b77d6c2a82bdff36073746b409e126b5d35 Signed-off-by: Vandhiadevan Karunamoorthy --- board/qca/arm/devsoc/devsoc.c | 4 ++++ include/configs/devsoc.h | 7 ++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/board/qca/arm/devsoc/devsoc.c b/board/qca/arm/devsoc/devsoc.c index 2d54b3124e..4dc77d2114 100644 --- a/board/qca/arm/devsoc/devsoc.c +++ b/board/qca/arm/devsoc/devsoc.c @@ -79,9 +79,11 @@ struct dumpinfo_t dumpinfo_n[] = { */ { "EBICS0.BIN", 0x40000000, 0x10000000, 0 }, +#ifndef CONFIG_IPQ_TINY { "EBICS2.BIN", 0x60000000, 0x20000000, 0, 0, 0, 0, 1 }, { "EBICS1.BIN", CONFIG_UBOOT_END_ADDR, 0x10000000, 0, 0, 0, 0, 1 }, { "EBICS0.BIN", 0x40000000, CONFIG_QCA_UBOOT_OFFSET, 0, 0, 0, 0, 1 }, +#endif { "IMEM.BIN", 0x08600000, 0x00001000, 0 }, { "UNAME.BIN", 0, 0, 0, 0, 0, MINIMAL_DUMP }, { "CPU_INFO.BIN", 0, 0, 0, 0, 0, MINIMAL_DUMP }, @@ -100,9 +102,11 @@ int dump_entries_n = ARRAY_SIZE(dumpinfo_n); struct dumpinfo_t dumpinfo_s[] = { { "EBICS_S0.BIN", 0x40000000, 0xA600000, 0 }, { "EBICS_S1.BIN", CONFIG_TZ_END_ADDR, 0x10000000, 0 }, +#ifndef CONFIG_IPQ_TINY { "EBICS_S2.BIN", 0x50000000, 0x10000000, 0, 0, 0, 0, 1 }, { "EBICS_S1.BIN", CONFIG_UBOOT_END_ADDR, 0x5B00000, 0, 0, 0, 0, 1 }, { "EBICS_S0.BIN", 0x40000000, CONFIG_QCA_UBOOT_OFFSET, 0, 0, 0, 0, 1 }, +#endif { "IMEM.BIN", 0x08600000, 0x00001000, 0 }, { "UNAME.BIN", 0, 0, 0, 0, 0, MINIMAL_DUMP }, { "CPU_INFO.BIN", 0, 0, 0, 0, 0, MINIMAL_DUMP }, diff --git a/include/configs/devsoc.h b/include/configs/devsoc.h index 17f465727c..82cb6c5ec4 100644 --- a/include/configs/devsoc.h +++ b/include/configs/devsoc.h @@ -185,9 +185,6 @@ extern loff_t board_env_size; #define NUM_ALT_PARTITION 16 -#undef CONFIG_GZIP -#undef CONFIG_ZLIB - #ifdef CONFIG_IPQ_TINY /* undef gzip lib */ @@ -201,6 +198,10 @@ extern loff_t board_env_size; /* Mii command support */ #define CONFIG_CMD_MII +/* compress crash dump support */ +#define CONFIG_CMD_ZIP +#define CONFIG_GZIP_COMPRESSED + #endif /*