You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
opensbi using a large amount of memory now, and there is a memory hole, is there any way to avoid it?thanks.
opensbi/firmware/fw_base.ldS
PROVIDE(_rodata_end = .);
/* End of the read-only data sections */
/*
* PMP regions must be to be power-of-2. RX/RW will have separate
* regions, so ensure that the split is power-of-2.
*/
. = ALIGN(1 << LOG2CEIL((SIZEOF(.rodata) + SIZEOF(.text)
+ SIZEOF(.dynsym) + SIZEOF(.rela.dyn))));
PROVIDE(_fw_rw_start = .);
Sections sample:
rela.dyn end 0x200674e8, data start 0x20080000, there is a 98K memory hole
This is so we can use PMP to protect the read-only part of the firmware. The easiest way to reduce the firmware size is to disable unused drivers in Kconfig (make menuconfig). If you can reduce the firmware RO size by 30 KiB, the RW alignment will jump down from 256 KiB to 128 KiB and fill in the hole.
Considering future expansion(like adding secure os support, power control, etc), it is not easy to limit the size of the firmware
Anyway, I understand the limitations here, thanks
Hi
opensbi using a large amount of memory now, and there is a memory hole, is there any way to avoid it?thanks.
opensbi/firmware/fw_base.ldS
Sections sample:
rela.dyn end 0x200674e8, data start 0x20080000, there is a 98K memory hole
The text was updated successfully, but these errors were encountered: