mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
ipq5018: Add compressed crash dump support
This features not support in tiny nor profile, since no CONFIG_GZIP lib support Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org> Change-Id: Ia6321e60f5451e60193804ef2dba22ea493b435c
This commit is contained in:
parent
aa06238303
commit
7cc905582f
2 changed files with 42 additions and 13 deletions
|
|
@ -81,6 +81,18 @@ struct dumpinfo_t dumpinfo_n[] = {
|
|||
* ------------------------
|
||||
*/
|
||||
{ "EBICS0.BIN", 0x40000000, 0x10000000, 0 },
|
||||
/*
|
||||
* The below 3 config enable compress crash dump support.
|
||||
* the RAM region will be split in 3 section and collect based on the
|
||||
* config as given below. NOT SUPPORT IN TINY_NOR profile.
|
||||
* Note : EBICS2.BIN start and size varies dynamically based on RAM size.
|
||||
* basically it's seconds half of ram region.
|
||||
*/
|
||||
#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 },
|
||||
{ "NSSUTCM.BIN", 0x08600658, 0x00030000, 0, 1, 0x2000 },
|
||||
{ "BTRAM.BIN", 0x08600658, 0x00058000, 0, 1, 0x00032000 },
|
||||
|
|
@ -95,6 +107,11 @@ int dump_entries_n = ARRAY_SIZE(dumpinfo_n);
|
|||
struct dumpinfo_t dumpinfo_s[] = {
|
||||
{ "EBICS_S0.BIN", 0x40000000, 0xAC00000, 0 },
|
||||
{ "EBICS_S1.BIN", CONFIG_TZ_END_ADDR, 0x10000000, 0 },
|
||||
#ifndef CONFIG_IPQ_TINY
|
||||
{ "EBICS_S2.BIN", CONFIG_TZ_END_ADDR, 0x10000000, 0, 0, 0, 0, 1 },
|
||||
{ "EBICS_S1.BIN", CONFIG_UBOOT_END_ADDR, 0x200000, 0, 0, 0, 0, 1 },
|
||||
{ "EBICS_S0.BIN", 0x40000000, CONFIG_QCA_UBOOT_OFFSET, 0, 0, 0, 0, 1 },
|
||||
#endif
|
||||
{ "IMEM.BIN", 0x08600000, 0x00001000, 0 },
|
||||
{ "NSSUTCM.BIN", 0x08600658, 0x00030000, 0, 1, 0x2000 },
|
||||
{ "BTRAM.BIN", 0x08600658, 0x00058000, 0, 1, 0x00032000 },
|
||||
|
|
|
|||
|
|
@ -107,8 +107,6 @@
|
|||
|
||||
#define CONFIG_OF_COMBINE 1
|
||||
|
||||
#define CONFIG_COMPRESSED_DTB_MAX_SIZE 0x40000
|
||||
#define CONFIG_COMPRESSED_DTB_BASE CONFIG_SYS_TEXT_BASE - CONFIG_COMPRESSED_DTB_MAX_SIZE
|
||||
|
||||
#define CONFIG_QCA_SMEM_BASE 0x4AB00000
|
||||
|
||||
|
|
@ -116,6 +114,9 @@
|
|||
#define CONFIG_ENV_IS_IN_SPI_FLASH 1
|
||||
#define CONFIG_ENV_SECT_SIZE (64 * 1024)
|
||||
|
||||
#define CONFIG_QCA_UBOOT_OFFSET 0xA800000
|
||||
#define CONFIG_UBOOT_END_ADDR 0x4AA00000
|
||||
|
||||
/*
|
||||
* IPQ_TFTP_MIN_ADDR: Starting address of Linux HLOS region.
|
||||
* CONFIG_TZ_END_ADDR: Ending address of Trust Zone and starting
|
||||
|
|
@ -321,17 +322,29 @@ extern loff_t board_env_size;
|
|||
|
||||
#define NUM_ALT_PARTITION 16
|
||||
|
||||
#ifndef CONFIG_IPQ_TINY
|
||||
#ifdef CONFIG_IPQ_TINY
|
||||
/* undef gzip lib */
|
||||
#undef CONFIG_GZIP
|
||||
#undef CONFIG_ZLIB
|
||||
|
||||
#else
|
||||
#define CONFIG_CMD_BOOTZ
|
||||
#define CONFIG_CMD_CACHE
|
||||
/*
|
||||
* Multicore CPU support
|
||||
*/
|
||||
|
||||
/* Multicore CPU support */
|
||||
#define CONFIG_SMP_CMD_SUPPORT
|
||||
/*
|
||||
* Mii command support
|
||||
*/
|
||||
|
||||
/* Mii command support */
|
||||
#define CONFIG_CMD_MII
|
||||
|
||||
/* compress crash dump support */
|
||||
#define CONFIG_CMD_ZIP
|
||||
#define CONFIG_GZIP_COMPRESSED
|
||||
|
||||
/* Enable DTB compress */
|
||||
#define CONFIG_COMPRESSED_DTB_MAX_SIZE 0x40000
|
||||
#define CONFIG_COMPRESSED_DTB_BASE CONFIG_SYS_TEXT_BASE -\
|
||||
CONFIG_COMPRESSED_DTB_MAX_SIZE
|
||||
#endif
|
||||
|
||||
#define CONFIG_FDT_FIXUP_PARTITIONS
|
||||
|
|
@ -394,11 +407,10 @@ extern loff_t board_env_size;
|
|||
#undef CONFIG_BOOTM_VXWORKS
|
||||
|
||||
#ifdef CONFIG_ART_COMPRESSED
|
||||
#undef CONFIG_GZIP
|
||||
#undef CONFIG_ZLIB
|
||||
#undef CONFIG_COMPRESSED_DTB_BASE
|
||||
/*
|
||||
* CONFIG_COMPRESSED_LOAD_ADDR loads the compressed data for uncompress action
|
||||
* This location use to keep comprssed data for
|
||||
* uncompress process.
|
||||
* default location is CONFIG_SYS_LOAD_ADDR if not defined.
|
||||
*/
|
||||
#define CONFIG_COMPRESSED_LOAD_ADDR (CONFIG_SYS_LOAD_ADDR + (1 << 22))
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue