Hi Wang,

 

Please provide a build command and your changes (if possible) to reproduce this build error.

 

At this time,  I am just speculating that we may need to increase the maximum size of the BL31 image

i.e. ‘ PLAT_ARM_MAX_BL31_SIZE’ to fix this issue, but it will be good if you provide the above details

to root-caused this issue.

 

Thanks,

Manish Badarkhe

 

From: TF-A <tf-a-bounces@lists.trustedfirmware.org> on behalf of Chenxu Wang via TF-A <tf-a@lists.trustedfirmware.org>
Date: Sunday, 19 December 2021 at 19:39
To: tf-a@lists.trustedfirmware.org <tf-a@lists.trustedfirmware.org>
Subject: [TF-A] How to change the address of region "RAM" in BL31?

Hi all,

I want to add some big data structures in BL31 (e.g., create a large
uint32_t array). Also, I reserve a secure memory space (assume it is
0xa000_0000 - 0xb000_0000) by configuring TZASC.

Now, the BL31 says

build/fvp/debug/bl31/bl31.elf section `.bss' will not fit in region `RAM'
aarch64-none-elf-ld: BL31 image has exceeded its limit.
aarch64-none-elf-ld: region `RAM' overflowed by 458752 bytes

It looks like that the previous RAM cannot hold my big data
structures. If I want to add my reserved region into RAM (so I may
allocate these data into the reserved region), what should I do?

Sincerely,
Wang
--
TF-A mailing list
TF-A@lists.trustedfirmware.org
https://lists.trustedfirmware.org/mailman/listinfo/tf-a