how to make ATF load address constant ?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

how to make ATF load address constant ?

477 次查看
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 项奖励
回复
2 回复数

462 次查看
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 项奖励
回复

221 次查看
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 项奖励
回复