public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] MX28EVK Hangs on DRAM
@ 2012-04-05 12:33 Chiz Chikwendu
  2012-04-05 19:59 ` Fabio Estevam
  0 siblings, 1 reply; 6+ messages in thread
From: Chiz Chikwendu @ 2012-04-05 12:33 UTC (permalink / raw)
  To: u-boot

Hi,

 

I'm pretty new to u-boot and I am trying to use it on the mx28 platform.
I have an MX28 EVK (rev A), which I'm using. I was able to build u-boot
2009 with all the patches supplied by Freescale, and to get it working. 

I moved on to u-boot 2011 because I wanted to use the I2C, SPI and other
tools supported. 

The problem I have is that when I build u-boot, it hangs at after
dram_init during the initialization sequence.

This is what I get from u-boot...

 

PowerPrep start initialize power...

Battery Voltage = 4.26V

boot from battery. 5v input not detected

Apr  4 201220:57:25

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 2011.12 (Apr 04 2012 - 16:55:47)

 

Freescale i.MX28 family

I2C:   ready

DRAM:  0 Bytes

 

I realize this problem was supposed to have been fixed by several
patches, but it still exists.

On my platform it seems to occur if SPL is configured, and during
relocation. 

U-boot is not able to get the proper RAM size from the scratch registers
(SCRATCH0, and SCRATCH1).

 

I've even tried the latest u-boot (2012.04.rc1) and I still get the same
results.

 

Can anyone help me or point me in the right direction?

 

Thanks. 

Chiz

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] MX28EVK Hangs on DRAM
  2012-04-05 12:33 [U-Boot] MX28EVK Hangs on DRAM Chiz Chikwendu
@ 2012-04-05 19:59 ` Fabio Estevam
       [not found]   ` <DDD7C8B39B485D45BC118F7E0D9E9A2218C58137@brs-fortress.haemo.net>
  0 siblings, 1 reply; 6+ messages in thread
From: Fabio Estevam @ 2012-04-05 19:59 UTC (permalink / raw)
  To: u-boot

Hi Chiz,

On Thu, Apr 5, 2012 at 9:33 AM, Chiz Chikwendu
<chiz.chikwendu@haemonetics.com> wrote:

> I'm pretty new to u-boot and I am trying to use it on the mx28 platform.
> I have an MX28 EVK (rev A), which I'm using. I was able to build u-boot
> 2009 with all the patches supplied by Freescale, and to get it working.

This is a known issue. As per the doc/README.mx28evk only rev.D of
mx28evk is supported.

mx28evk rev.D has DDR2, but mx28evk rev A has some other type of
memory (mDDR if I recall correctly).

You can try to use the RAM settings from the FSL bootlets for mx28evk
A into mainline U-boot.

Not sure if there are more differences and I do not have access to a
mx28evk rev. A to test it.

Or to make your life easier, please get access to a rev D board ;-)

Regards,

Fabio Estevam

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] MX28EVK Hangs on DRAM
       [not found]   ` <DDD7C8B39B485D45BC118F7E0D9E9A2218C58137@brs-fortress.haemo.net>
@ 2012-04-05 21:47     ` Fabio Estevam
  2012-04-06  0:05       ` Fabio Estevam
  0 siblings, 1 reply; 6+ messages in thread
From: Fabio Estevam @ 2012-04-05 21:47 UTC (permalink / raw)
  To: u-boot

On Thu, Apr 5, 2012 at 6:07 PM, Chiz Chikwendu
<chiz.chikwendu@haemonetics.com> wrote:
> Hi Fabio,
>
> Thanks for your response. I actually have a rev.D version of the mx28evk and it hangs too.

I am checking your log and this seems strange:

PowerPrep start initialize power...

Battery Voltage = 4.26V

boot from battery. 5v input not detected

Apr  4 201220:57:25

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

You should not be getting any of the above.

Please follow the doc/README.mx28evk and doc/README.mx28common

Looks like you have not flashed your card correctly.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] MX28EVK Hangs on DRAM
  2012-04-05 21:47     ` Fabio Estevam
@ 2012-04-06  0:05       ` Fabio Estevam
       [not found]         ` <DDD7C8B39B485D45BC118F7E0D9E9A2218C582BE@brs-fortress.haemo.net>
  0 siblings, 1 reply; 6+ messages in thread
From: Fabio Estevam @ 2012-04-06  0:05 UTC (permalink / raw)
  To: u-boot

On Thu, Apr 5, 2012 at 6:47 PM, Fabio Estevam <festevam@gmail.com> wrote:

> Please follow the doc/README.mx28evk and doc/README.mx28common

I realize that these files are not in mainline yet.

They are currently at Stefano's tree:
http://git.denx.de/?p=u-boot/u-boot-imx.git;a=blob;f=doc/README.mx28_common;h=448d2211621d67e1baf856c1713c8423ff955989;hb=17fa8f93b38dc23d82a9b4f2b8169ce58cce29c3

Please follow the instructions there and you will be able to boot your
mx28evk revD.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] MX28EVK Hangs on DRAM
       [not found]         ` <DDD7C8B39B485D45BC118F7E0D9E9A2218C582BE@brs-fortress.haemo.net>
@ 2012-04-06 12:37           ` Fabio Estevam
  2012-04-06 12:45             ` Stefano Babic
  0 siblings, 1 reply; 6+ messages in thread
From: Fabio Estevam @ 2012-04-06 12:37 UTC (permalink / raw)
  To: u-boot

On Fri, Apr 6, 2012 at 8:57 AM, Chiz Chikwendu
<chiz.chikwendu@haemonetics.com> wrote:
> Thank you Fabio. It worked!

That's good news ;-)

> I definitely needed the README file to have the correct instructions and settings.
>
> Note: The readme file you linked me to is missing instructions on the settings for the EVK.
> The version submitted by Otavio Salvador has the instructions for the EVK settings in it.

The mx28evk README is currently at Stefano's tree:
http://git.denx.de/?p=u-boot/u-boot-imx.git;a=commitdiff;h=8e4cc4ef10f1cd4da12dbc98e694d2e3436888a0;hp=17fa8f93b38dc23d82a9b4f2b8169ce58cce29c3

Hopefully it will be in mainline for 2012.04-rc2.

Regards,

Fabio Estevam

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] MX28EVK Hangs on DRAM
  2012-04-06 12:37           ` Fabio Estevam
@ 2012-04-06 12:45             ` Stefano Babic
  0 siblings, 0 replies; 6+ messages in thread
From: Stefano Babic @ 2012-04-06 12:45 UTC (permalink / raw)
  To: u-boot

On 06/04/2012 14:37, Fabio Estevam wrote:
> On Fri, Apr 6, 2012 at 8:57 AM, Chiz Chikwendu
> <chiz.chikwendu@haemonetics.com> wrote:
>> Thank you Fabio. It worked!
> 
> That's good news ;-)
> 
>> I definitely needed the README file to have the correct instructions and settings.
>>
>> Note: The readme file you linked me to is missing instructions on the settings for the EVK.
>> The version submitted by Otavio Salvador has the instructions for the EVK settings in it.
> 
> The mx28evk README is currently at Stefano's tree:
> http://git.denx.de/?p=u-boot/u-boot-imx.git;a=commitdiff;h=8e4cc4ef10f1cd4da12dbc98e694d2e3436888a0;hp=17fa8f93b38dc23d82a9b4f2b8169ce58cce29c3
> 
> Hopefully it will be in mainline for 2012.04-rc2.

Yes, it will be. It is part of my next pull request.

Regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-04-06 12:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-05 12:33 [U-Boot] MX28EVK Hangs on DRAM Chiz Chikwendu
2012-04-05 19:59 ` Fabio Estevam
     [not found]   ` <DDD7C8B39B485D45BC118F7E0D9E9A2218C58137@brs-fortress.haemo.net>
2012-04-05 21:47     ` Fabio Estevam
2012-04-06  0:05       ` Fabio Estevam
     [not found]         ` <DDD7C8B39B485D45BC118F7E0D9E9A2218C582BE@brs-fortress.haemo.net>
2012-04-06 12:37           ` Fabio Estevam
2012-04-06 12:45             ` Stefano Babic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox