Common U-boot for different DDR size?

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

Common U-boot for different DDR size?

1,911 Views
sijilcv
Contributor II

We are planning to have a common u-boot for 2 different hardware with different DDR size. One hardware with 2 GB DDR and other with 512 MB DDR. We are using iMX6 Dual core custom boards.

Is it possible to have a common u-boot with some default DDR configuration so that it will work for 2 boards ?

After booting with default DDR configuration, reconfigure DDR based on the actual DDR size from u-boot .

The DDR sizes of two boards are as follows

1) 64x16 MB ( 4 DDR )  - 512 MB. 

2) 512x16 MB (4 DDR)  - 2 GB.

The plan was to boot with mnimum DDR size ( 512) and after boot up read hardware BOM to identify the actual DDR size need to be configured . If the size is not matching reconfigure DDR from u-boot itself.

Is it really possible ??   

Labels (3)
Tags (2)
0 Kudos
Reply
1 Reply

1,384 Views
igorpadykov
NXP Employee
NXP Employee

Hi sijil

one can try to load small uboot portion to internal ram (OCRAM) and

configure ddr based on its size, then relocate full uboot to ddr.

Probably approach of SPL Uoot may suit:

ubuntu - what is the use of SPL (secondary program loader) - Stack Overflow 

http://www.denx.de/wiki/pub/U-Boot/MiniSummitELCE2013/tpl-presentation.pdf 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply