soc: espressif: Update MCUboot segment size
- Fix the build issues with the insufficient memory for the MCUboot. - Fix the sysbuild with MCUboot tests on all ESP32xx SoCs. Signed-off-by: Marek Matej <marek.matej@espressif.com>
This commit is contained in:
parent
2ca7e41b26
commit
6a7c8d789f
8 changed files with 17 additions and 8 deletions
|
@ -848,6 +848,7 @@ SECTIONS
|
||||||
_instruction_reserved_start = ABSOLUTE(.); /* This is a symbol marking the flash.text start, this can be used for mmu driver to maintain virtual address */
|
_instruction_reserved_start = ABSOLUTE(.); /* This is a symbol marking the flash.text start, this can be used for mmu driver to maintain virtual address */
|
||||||
_text_start = ABSOLUTE(.);
|
_text_start = ABSOLUTE(.);
|
||||||
__text_region_start = ABSOLUTE(.);
|
__text_region_start = ABSOLUTE(.);
|
||||||
|
__rom_region_start = ABSOLUTE(.);
|
||||||
|
|
||||||
#ifndef CONFIG_ESP32_WIFI_IRAM_OPT
|
#ifndef CONFIG_ESP32_WIFI_IRAM_OPT
|
||||||
*libnet80211.a:( .wifi0iram .wifi0iram.* .wifislpiram .wifislpiram.*)
|
*libnet80211.a:( .wifi0iram .wifi0iram.* .wifislpiram .wifislpiram.*)
|
||||||
|
@ -867,6 +868,7 @@ SECTIONS
|
||||||
_text_end = ABSOLUTE(.);
|
_text_end = ABSOLUTE(.);
|
||||||
_instruction_reserved_end = ABSOLUTE(.); /* This is a symbol marking the flash.text end, this can be used for mmu driver to maintain virtual address */
|
_instruction_reserved_end = ABSOLUTE(.); /* This is a symbol marking the flash.text end, this can be used for mmu driver to maintain virtual address */
|
||||||
__text_region_end = ABSOLUTE(.);
|
__text_region_end = ABSOLUTE(.);
|
||||||
|
__rom_region_end = ABSOLUTE(.);
|
||||||
_etext = .;
|
_etext = .;
|
||||||
} GROUP_DATA_LINK_IN(FLASH_CODE_REGION, ROMABLE_REGION)
|
} GROUP_DATA_LINK_IN(FLASH_CODE_REGION, ROMABLE_REGION)
|
||||||
|
|
||||||
|
|
|
@ -48,9 +48,9 @@
|
||||||
(SRAM1_SIZE - ((addr_dram) - SRAM1_DRAM_START) + SRAM1_IRAM_START)
|
(SRAM1_SIZE - ((addr_dram) - SRAM1_DRAM_START) + SRAM1_IRAM_START)
|
||||||
|
|
||||||
/* For safety margin between bootloader data section and startup stacks */
|
/* For safety margin between bootloader data section and startup stacks */
|
||||||
#define BOOTLOADER_DRAM_SEG_LEN 0x6400
|
#define BOOTLOADER_DRAM_SEG_LEN 0x7a00
|
||||||
#define BOOTLOADER_IRAM_LOADER_SEG_LEN 0x4000
|
#define BOOTLOADER_IRAM_LOADER_SEG_LEN 0x4000
|
||||||
#define BOOTLOADER_IRAM_SEG_LEN 0x9500
|
#define BOOTLOADER_IRAM_SEG_LEN 0xa000
|
||||||
|
|
||||||
/* Start of the lower region is determined by region size and the end of the higher region */
|
/* Start of the lower region is determined by region size and the end of the higher region */
|
||||||
#define BOOTLOADER_DRAM_SEG_START 0x3fff0000
|
#define BOOTLOADER_DRAM_SEG_START 0x3fff0000
|
||||||
|
|
|
@ -660,6 +660,7 @@ SECTIONS
|
||||||
_text_start = ABSOLUTE(.);
|
_text_start = ABSOLUTE(.);
|
||||||
_instruction_reserved_start = ABSOLUTE(.);
|
_instruction_reserved_start = ABSOLUTE(.);
|
||||||
__text_region_start = ABSOLUTE(.);
|
__text_region_start = ABSOLUTE(.);
|
||||||
|
__rom_region_start = ABSOLUTE(.);
|
||||||
|
|
||||||
#if !defined(CONFIG_ESP32_WIFI_IRAM_OPT)
|
#if !defined(CONFIG_ESP32_WIFI_IRAM_OPT)
|
||||||
*libnet80211.a:( .wifi0iram .wifi0iram.* .wifislpiram .wifislpiram.*)
|
*libnet80211.a:( .wifi0iram .wifi0iram.* .wifislpiram .wifislpiram.*)
|
||||||
|
@ -691,6 +692,7 @@ SECTIONS
|
||||||
_text_end = ABSOLUTE(.);
|
_text_end = ABSOLUTE(.);
|
||||||
_instruction_reserved_end = ABSOLUTE(.);
|
_instruction_reserved_end = ABSOLUTE(.);
|
||||||
__text_region_end = ABSOLUTE(.);
|
__text_region_end = ABSOLUTE(.);
|
||||||
|
__rom_region_end = ABSOLUTE(.);
|
||||||
_etext = .;
|
_etext = .;
|
||||||
|
|
||||||
} GROUP_DATA_LINK_IN(FLASH_CODE_REGION, ROMABLE_REGION)
|
} GROUP_DATA_LINK_IN(FLASH_CODE_REGION, ROMABLE_REGION)
|
||||||
|
|
|
@ -41,8 +41,8 @@
|
||||||
/* For safety margin between bootloader data section and startup stacks */
|
/* For safety margin between bootloader data section and startup stacks */
|
||||||
#define BOOTLOADER_STACK_OVERHEAD 0x0
|
#define BOOTLOADER_STACK_OVERHEAD 0x0
|
||||||
/* These lengths can be adjusted, if necessary: */
|
/* These lengths can be adjusted, if necessary: */
|
||||||
#define BOOTLOADER_DRAM_SEG_LEN 0x9000
|
#define BOOTLOADER_DRAM_SEG_LEN 0x9800
|
||||||
#define BOOTLOADER_IRAM_SEG_LEN 0x9000
|
#define BOOTLOADER_IRAM_SEG_LEN 0x9800
|
||||||
#define BOOTLOADER_IRAM_LOADER_SEG_LEN 0x1400
|
#define BOOTLOADER_IRAM_LOADER_SEG_LEN 0x1400
|
||||||
|
|
||||||
/* Start of the lower region is determined by region size and the end of the higher region */
|
/* Start of the lower region is determined by region size and the end of the higher region */
|
||||||
|
|
|
@ -661,6 +661,7 @@ SECTIONS
|
||||||
_text_start = ABSOLUTE(.);
|
_text_start = ABSOLUTE(.);
|
||||||
_instruction_reserved_start = ABSOLUTE(.);
|
_instruction_reserved_start = ABSOLUTE(.);
|
||||||
__text_region_start = ABSOLUTE(.);
|
__text_region_start = ABSOLUTE(.);
|
||||||
|
__rom_region_start = ABSOLUTE(.);
|
||||||
|
|
||||||
#if !defined(CONFIG_ESP32_WIFI_IRAM_OPT)
|
#if !defined(CONFIG_ESP32_WIFI_IRAM_OPT)
|
||||||
*libnet80211.a:( .wifi0iram .wifi0iram.* .wifislpiram .wifislpiram.*)
|
*libnet80211.a:( .wifi0iram .wifi0iram.* .wifislpiram .wifislpiram.*)
|
||||||
|
@ -692,6 +693,7 @@ SECTIONS
|
||||||
_text_end = ABSOLUTE(.);
|
_text_end = ABSOLUTE(.);
|
||||||
_instruction_reserved_end = ABSOLUTE(.);
|
_instruction_reserved_end = ABSOLUTE(.);
|
||||||
__text_region_end = ABSOLUTE(.);
|
__text_region_end = ABSOLUTE(.);
|
||||||
|
__rom_region_end = ABSOLUTE(.);
|
||||||
_etext = .;
|
_etext = .;
|
||||||
|
|
||||||
} GROUP_DATA_LINK_IN(CACHED_REGION, ROMABLE_REGION)
|
} GROUP_DATA_LINK_IN(CACHED_REGION, ROMABLE_REGION)
|
||||||
|
|
|
@ -814,6 +814,7 @@ SECTIONS
|
||||||
_instruction_reserved_start = ABSOLUTE(.);
|
_instruction_reserved_start = ABSOLUTE(.);
|
||||||
_text_start = ABSOLUTE(.);
|
_text_start = ABSOLUTE(.);
|
||||||
__text_region_start = ABSOLUTE(.);
|
__text_region_start = ABSOLUTE(.);
|
||||||
|
__rom_region_start = ABSOLUTE(.);
|
||||||
|
|
||||||
#if !defined(CONFIG_ESP32_WIFI_IRAM_OPT)
|
#if !defined(CONFIG_ESP32_WIFI_IRAM_OPT)
|
||||||
*libnet80211.a:( .wifi0iram .wifi0iram.* .wifislpiram .wifislpiram.*)
|
*libnet80211.a:( .wifi0iram .wifi0iram.* .wifislpiram .wifislpiram.*)
|
||||||
|
@ -843,6 +844,7 @@ SECTIONS
|
||||||
_text_end = ABSOLUTE(.);
|
_text_end = ABSOLUTE(.);
|
||||||
_instruction_reserved_end = ABSOLUTE(.); /* This is a symbol marking the flash.text end, this can be used for mmu driver to maintain virtual address */
|
_instruction_reserved_end = ABSOLUTE(.); /* This is a symbol marking the flash.text end, this can be used for mmu driver to maintain virtual address */
|
||||||
__text_region_end = ABSOLUTE(.);
|
__text_region_end = ABSOLUTE(.);
|
||||||
|
__rom_region_end = ABSOLUTE(.);
|
||||||
_etext = .;
|
_etext = .;
|
||||||
|
|
||||||
} GROUP_DATA_LINK_IN(FLASH_CODE_REGION, ROMABLE_REGION)
|
} GROUP_DATA_LINK_IN(FLASH_CODE_REGION, ROMABLE_REGION)
|
||||||
|
@ -853,7 +855,6 @@ SECTIONS
|
||||||
|
|
||||||
_image_drom_start = LOADADDR(.flash.rodata);
|
_image_drom_start = LOADADDR(.flash.rodata);
|
||||||
_image_drom_size = LOADADDR(.flash.rodata_end) + SIZEOF(.flash.rodata_end) - _image_drom_start;
|
_image_drom_size = LOADADDR(.flash.rodata_end) + SIZEOF(.flash.rodata_end) - _image_drom_start;
|
||||||
_image_drom_size2 = _rodata_end - _rodata_start;
|
|
||||||
_image_drom_vaddr = ADDR(.flash.rodata);
|
_image_drom_vaddr = ADDR(.flash.rodata);
|
||||||
|
|
||||||
/* Align next section to 64k to allow mapping */
|
/* Align next section to 64k to allow mapping */
|
||||||
|
|
|
@ -749,6 +749,7 @@ SECTIONS
|
||||||
_instruction_reserved_start = ABSOLUTE(.);
|
_instruction_reserved_start = ABSOLUTE(.);
|
||||||
_text_start = ABSOLUTE(.);
|
_text_start = ABSOLUTE(.);
|
||||||
__text_region_start = ABSOLUTE(.);
|
__text_region_start = ABSOLUTE(.);
|
||||||
|
__rom_region_start = ABSOLUTE(.);
|
||||||
|
|
||||||
#if !defined(CONFIG_ESP32_WIFI_IRAM_OPT)
|
#if !defined(CONFIG_ESP32_WIFI_IRAM_OPT)
|
||||||
*libnet80211.a:( .wifi0iram .wifi0iram.* .wifislpiram .wifislpiram.*)
|
*libnet80211.a:( .wifi0iram .wifi0iram.* .wifislpiram .wifislpiram.*)
|
||||||
|
@ -777,6 +778,7 @@ SECTIONS
|
||||||
_text_end = ABSOLUTE(.);
|
_text_end = ABSOLUTE(.);
|
||||||
_instruction_reserved_end = ABSOLUTE(.); /* This is a symbol marking the flash.text end, this can be used for mmu driver to maintain virtual address */
|
_instruction_reserved_end = ABSOLUTE(.); /* This is a symbol marking the flash.text end, this can be used for mmu driver to maintain virtual address */
|
||||||
__text_region_end = ABSOLUTE(.);
|
__text_region_end = ABSOLUTE(.);
|
||||||
|
__rom_region_end = ABSOLUTE(.);
|
||||||
_etext = .;
|
_etext = .;
|
||||||
|
|
||||||
} GROUP_DATA_LINK_IN(FLASH_CODE_REGION, ROMABLE_REGION)
|
} GROUP_DATA_LINK_IN(FLASH_CODE_REGION, ROMABLE_REGION)
|
||||||
|
|
|
@ -45,9 +45,9 @@
|
||||||
|
|
||||||
/* For safety margin between bootloader data section and startup stacks */
|
/* For safety margin between bootloader data section and startup stacks */
|
||||||
#define BOOTLOADER_STACK_OVERHEAD 0x0
|
#define BOOTLOADER_STACK_OVERHEAD 0x0
|
||||||
#define BOOTLOADER_DRAM_SEG_LEN 0x6400
|
#define BOOTLOADER_DRAM_SEG_LEN 0x8000
|
||||||
#define BOOTLOADER_IRAM_LOADER_SEG_LEN 0x1a00
|
#define BOOTLOADER_IRAM_LOADER_SEG_LEN 0x1a00
|
||||||
#define BOOTLOADER_IRAM_SEG_LEN 0xa000
|
#define BOOTLOADER_IRAM_SEG_LEN 0xa800
|
||||||
|
|
||||||
/* Start of the lower region is determined by region size and the end of the higher region */
|
/* Start of the lower region is determined by region size and the end of the higher region */
|
||||||
#define BOOTLOADER_IRAM_LOADER_SEG_START (BOOTLOADER_USER_DRAM_END - BOOTLOADER_STACK_OVERHEAD + \
|
#define BOOTLOADER_IRAM_LOADER_SEG_START (BOOTLOADER_USER_DRAM_END - BOOTLOADER_STACK_OVERHEAD + \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue