how to make ATF load address constant ?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to make ATF load address constant ?

484 Views
sandeep3
Contributor I

I am working on a custom s32g3 board and i am using yocto BSP43 , whenever i add any major features (ex:- HSE ,SECURE BOOT) , the load address of the ATF changes dynamically and this results in bootloader changes to configure the new load address. so whenever there is an update on A-CORE or ATF along with that i am updating the bootloader as well. so , is there a way where we can set a load address to the ATF so that even after multiple builds or addition of new features the load address remains the same and rest will be aligned with respect to the load address which is set.

NOTE: main objective of this is to avoid bootloader changes every time there is a ATF update

0 Kudos
Reply
2 Replies

469 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @sandeep3 

Thanks for the post.

I suggest adding BL2_BASE=$Address_Specified while building the TFA, then the load address could be calculated, you may reference the s32_common.mk for details.

 

BR

Chenyin

0 Kudos
Reply

228 Views
sandeep3
Contributor I
Hi Chenyin,

I have changed BL2_BASE and it works but load address is still changing dynamically, for example , if I add HSE module i get different load address compared to package without HSE module , how do we make load address static ? considering BL2_BASE is same in all cases.

thanks
sandeep
0 Kudos
Reply