[U-Boot] [PATCH v6 0/5] iMX6 SabreSD SPL Support

Fabio Estevam festevam at gmail.com
Wed Nov 12 22:14:28 CET 2014


Hi John,

On Wed, Nov 12, 2014 at 4:19 PM, Fabio Estevam <festevam at gmail.com> wrote:
> Hi John,
>
> On Wed, Nov 12, 2014 at 3:14 PM, John Tobias <john.tobias.ph at gmail.com> wrote:
>> This patch is for SPL support for iMX6 SabreSD. The said
>> patches has been tested to work on SD2 and SD3 port of the
>> said board.
>>
>> After applying the following patches, it will produces
>> SPL and u-boot.img binary images. You should run the
>> two commands below to store it in your SD or eMMC.
>>
>> sudo dd if=SPL of=/dev/xxx bs=1K seek=1; sync
>> sudo dd if=u-boot.img of=/dev/xxx bs=1K seek=69
>
> Thanks for working on this of for your patience.
>
> It worked fine here:
>
> Tested-by: Fabio Estevam <fabio.estevam at freescale.com>
> Reviewed-by: Fabio Estevam <fabio.estevam at freescale.com>

Actually, I noticed that the SPL version detects 2GB of RAM instead of 1GB.

Here is a fix for this:

--- a/board/freescale/mx6sabresd/mx6sabresd.c
+++ b/board/freescale/mx6sabresd/mx6sabresd.c
@@ -741,7 +741,7 @@ static void spl_dram_init(void)
                /* config for full 4GB range so that get_mem_size() works */
                .cs_density = 32, /* 32Gb per CS */
                /* single chip select */
-               .ncs = 2,
+               .ncs = 1,
                .cs1_mirror = 0,
                .rtt_wr = 1 /*DDR3_RTT_60_OHM*/,        /* RTT_Wr = RZQ/4 */

On sabresd only CS0 is used to select all the four DDR3 chips.

Thanks


More information about the U-Boot mailing list