Set ram size from SPL.

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

Set ram size from SPL.

Jump to solution
594 Views
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!

Tags (1)
0 Kudos
1 Solution
507 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hello @Arm7  

The SPL is not designed to set global data

View solution in original post

0 Kudos
5 Replies
550 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @Arm7 

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

0 Kudos
531 Views
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 Kudos
508 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hello @Arm7  

The SPL is not designed to set global data

0 Kudos
481 Views
Arm7
Contributor II
Hello @Zhiming_Liu

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

Thank you!
0 Kudos
457 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport