[U-Boot] DRAM initialization hangs on MX28EVK rev. D

Dear all,
I am quite new to uboot and I am experimenting it on a iMX28 EVK board (rev. D).
I am building the uboot (2014.07 version) by means of buildroot (version 2014.08) and I am using the standard mxs-bootlet package provided by buildroot.
When trying to boot the EVK, it hangs after DRAM initialization as shown below.
The EVK itself seems ok since barebox (also built with buildroot) can successfully starts up.
I have read that such problem has been seem on iMX28 EVK rev A but I am not aware of any DDR related issue on the iMX28 EVK rev D board.
Would anyone have already seen such issue and know if some patches are required in uboot?
Thanks in advance for any help or suggestion
Best regards
Adrien
Uboot log:
PowerPrep start initialize power...
Battery Voltage = 2.21V
No battery or bad battery detected!!!.Disabling battery voltage measurements./r/nMar 13 201515:40:12
FRAC 0x92925552
memory type is DDR2
Wait for ddr ready 1power 0x00820616
Frac 0x92925552
start change cpu freq
hbus 0x00000003
cpu 0x00010001
start test memory accress
ddr2 0x40000000
finish simple test
U-Boot 2014.07 (Mar 13 2015 - 15:40:15)
CPU: Freescale i.MX28 rev1.2 at 454 MHz
BOOT: NAND 8GiB 3,3V 8-bit
SPI: ready
DRAM:

Hi Adrien,
On Fri, Mar 13, 2015 at 12:44 PM, Adrien Decostre ad.decostre@gmail.com wrote:
Dear all,
I am quite new to uboot and I am experimenting it on a iMX28 EVK board (rev. D).
I am building the uboot (2014.07 version) by means of buildroot (version 2014.08) and I am using the standard mxs-bootlet package provided by buildroot.
No, please don't use the bootlets.
U-boot has included the bootlets functionality. So use U-boot only and things will be good.
You see the hang because bootlets initialize DDR, then U-boot would try again to initialize it causing the hang.
Take a look at the READMEs:
doc/README.mxs board/freescale/mx28evk/README
Regards,
Fabio Estevam

Hello Fabio,
Thanks a lot for your quick answer. If I correctly understand the board/freescale/mx28evk/README file, only boot up from SD card or flash is supported. It is not possible to boot uboot via USB (and by example the sbloader tool)?
Best regards
Adrien
On Fri, Mar 13, 2015 at 8:32 PM, Fabio Estevam festevam@gmail.com wrote:
Hi Adrien,
On Fri, Mar 13, 2015 at 12:44 PM, Adrien Decostre ad.decostre@gmail.com wrote:
Dear all,
I am quite new to uboot and I am experimenting it on a iMX28 EVK board (rev. D).
I am building the uboot (2014.07 version) by means of buildroot (version 2014.08) and I am using the standard mxs-bootlet package provided by buildroot.
No, please don't use the bootlets.
U-boot has included the bootlets functionality. So use U-boot only and things will be good.
You see the hang because bootlets initialize DDR, then U-boot would try again to initialize it causing the hang.
Take a look at the READMEs:
doc/README.mxs board/freescale/mx28evk/README
Regards,
Fabio Estevam

On Mon, Mar 16, 2015 at 12:51 PM, Adrien Decostre ad.decostre@gmail.com wrote:
Thanks a lot for your quick answer. If I correctly understand the board/freescale/mx28evk/README file, only boot up from SD card or flash is supported. It is not possible to boot uboot via USB (and by example the sbloader tool)?
It is, for sure.
http://www.denx-cs.de/doku/?q=m28evkusbdownloader

Hello Otavio,
Thanks a lot for your answer.
It is now working by using the mx28evk config for uboot and specifying u-boot.sb as U-boot binary format in buildroot.
Best regards
Adrien
On Mon, Mar 16, 2015 at 5:35 PM, Otavio Salvador otavio@ossystems.com.br wrote:
On Mon, Mar 16, 2015 at 12:51 PM, Adrien Decostre ad.decostre@gmail.com wrote:
Thanks a lot for your quick answer. If I correctly understand the board/freescale/mx28evk/README file, only boot up from SD card or flash is supported. It is not possible to boot uboot via USB (and by example the sbloader tool)?
It is, for sure.
http://www.denx-cs.de/doku/?q=m28evkusbdownloader
-- Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
participants (3)
-
Adrien Decostre
-
Fabio Estevam
-
Otavio Salvador