Merge "board: devsoc: add GZIP support for crash dump"

This commit is contained in:
Linux Build Service Account 2022-07-06 03:49:25 -07:00 committed by Gerrit - the friendly Code Review server
commit d8518bbf31
2 changed files with 8 additions and 3 deletions

View file

@ -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 },

View file

@ -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
/*