Skip to content

Commit 66b6120

Browse files
committed
rimage: manifest: Make "cold" section size 0 when not used
There are some non-critical data and code sections that are kept in DRAM to be accessed and executed from there without being copyind to SRAM. Such sections are marked as `detached` and linked into a separate "cold.mod" module. rimage considers zones starting at SOF_MODULE_DRAM_LINK_START to SOF_MODULE_DRAM_LINK_END to be cold and links them separately. On i.MX8MP for M7 support this overalps with ITCM/DTCM/OCRAM areas which causes boot problems. So, treat all sections as SRAM when CONFIG_COLD_STORE_EXECUTE_DRAM is not enabled by making DRAM link sections size equal to 0 in this case. Closes: #10602 Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
1 parent d16d8c4 commit 66b6120

File tree

1 file changed

+4
-0
lines changed
  • tools/rimage/src/include/rimage/sof/user

1 file changed

+4
-0
lines changed

tools/rimage/src/include/rimage/sof/user/manifest.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,10 @@ struct sof_man_module_manifest {
257257
* enough and that SRAM will not use these addresses.
258258
*/
259259
#define SOF_MODULE_DRAM_LINK_START 0
260+
#if CONFIG_COLD_STORE_EXECUTE_DRAM
260261
#define SOF_MODULE_DRAM_LINK_END 0x08000000
262+
#else
263+
#define SOF_MODULE_DRAM_LINK_END SOF_MODULE_DRAM_LINK_START
264+
#endif
261265

262266
#endif /* __RIMAGE_USER_MANIFEST_H__ */

0 commit comments

Comments
 (0)