Set ram size from SPL.

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

Set ram size from SPL.

跳至解决方案
2,307 次查看
Arm7
Contributor II

Hello,

Could you help me, Where in the SPL ( Secondary program Loader ) can I set the ram size?

 

Currently, the configuration is done in u-boot like: gd->ram_size = PHYS_SDRAM_SIZE;

And now, I have to do it in the SPL side.

 

I'd appreciate the support. Thank you!

标记 (1)
0 项奖励
回复
1 解答
2,220 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hello @Arm7  

The SPL is not designed to set global data

在原帖中查看解决方案

0 项奖励
回复
5 回复数
2,263 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @Arm7 

There is no example code for setting ram size in SPL.

0 项奖励
回复
2,244 次查看
Arm7
Contributor II

Hello @Zhiming_Liu,

Thank you for the support, CONFIG_SPL_SIZE_LIMIT it seems, this configuration is only for SPL side, When the boot sequence ends, in kernel, the configuration would be kept ?

0 项奖励
回复
2,221 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hello @Arm7  

The SPL is not designed to set global data

0 项奖励
回复
2,194 次查看
Arm7
Contributor II
Hello @Zhiming_Liu

Could you give me a little more detail please?
Is this documented somewhere ?

Thank you!
0 项奖励
回复
2,170 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport