Open thomas-coding opened 3 months ago
Any suggestions?
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.
Platform vendors can also keep separate defconfig for such things in their fork of OpenSBI repo.
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