public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] ppc405ep boot freeze with u-boot 1.3.4
@ 2008-11-21 17:52 Reto Stalder
  2008-11-22 19:05 ` Stefan Roese
  0 siblings, 1 reply; 3+ messages in thread
From: Reto Stalder @ 2008-11-21 17:52 UTC (permalink / raw)
  To: u-boot

Hi

I have a custom ppc405ep board with 128MB SDRAM, very similar to the
AMCC Taihu board. U-Boot 1.1.4 works perfectly fine. But version 1.3.4
freezes after saying "Relocating now" in debug mode.

Additionally, I've observed a strange effect concerning memory size:
When a BDI2000 emulator is connected and the SDRAM size is set to 64MB
or less, the board starts to the prompt. When a BDI2000 emulator is
connected and the SDRAM size is set to 128MB, it freezes as well.

Has somebody any ideas, where the problem could reside, or what else to
do, to isolate the problem?

Every comment is welcome ;-),
Reto

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

* [U-Boot] ppc405ep boot freeze with u-boot 1.3.4
  2008-11-21 17:52 [U-Boot] ppc405ep boot freeze with u-boot 1.3.4 Reto Stalder
@ 2008-11-22 19:05 ` Stefan Roese
  2008-11-23 13:39   ` Reto Stalder
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Roese @ 2008-11-22 19:05 UTC (permalink / raw)
  To: u-boot

Hi Reto,

On Friday 21 November 2008, Reto Stalder wrote:
> I have a custom ppc405ep board with 128MB SDRAM, very similar to the
> AMCC Taihu board. U-Boot 1.1.4 works perfectly fine. But version 1.3.4
> freezes after saying "Relocating now" in debug mode.

This is an indication of an SDRAM initialization problem.

> Additionally, I've observed a strange effect concerning memory size:
> When a BDI2000 emulator is connected and the SDRAM size is set to 64MB
> or less, the board starts to the prompt. When a BDI2000 emulator is
> connected and the SDRAM size is set to 128MB, it freezes as well.

What does this mean: "the SDRAM size is set to 64MB"? Who *set's* the SDRAM 
size? Does the board do an SDRAM size autodetection? Which SDRAM init code is 
used? You probably don't reset the SDRAM controller after running an SDRAM 
initialization from the BDI2000. How do you start via the BDI2000? 
With "reset run"? Or differently?

> Has somebody any ideas, where the problem could reside, or what else to
> do, to isolate the problem?
>
> Every comment is welcome ;-),

Even 1.3.4 is old. I suggest that you give the latest git version a try. And 
please use the code in cpu/ppc4xx/sdram.c to init the SDRAM controller. How 
many SDRAM banks do you use? 1 or 2? If you use two then you need to enable 
both banks via those config options:

/*
 * SDRAM configuration (please see cpu/ppc/sdram.[ch])
 */
#define CONFIG_SDRAM_BANK0      1       /* init onboard SDRAM bank 0 */
#define CONFIG_SDRAM_BANK1      1       /* init onboard SDRAM bank 1 */
...

Please see taihu.h or zeus.h as a reference. This should help.

Best regards,
Stefan

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

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

* [U-Boot] ppc405ep boot freeze with u-boot 1.3.4
  2008-11-22 19:05 ` Stefan Roese
@ 2008-11-23 13:39   ` Reto Stalder
  0 siblings, 0 replies; 3+ messages in thread
From: Reto Stalder @ 2008-11-23 13:39 UTC (permalink / raw)
  To: u-boot

Hi Stefan

> On Friday 21 November 2008, Reto Stalder wrote:
>> I have a custom ppc405ep board with 128MB SDRAM, very similar to the
>> AMCC Taihu board. U-Boot 1.1.4 works perfectly fine. But version 1.3.4
>> freezes after saying "Relocating now" in debug mode.
> 
> This is an indication of an SDRAM initialization problem.

You were right...

> Even 1.3.4 is old. I suggest that you give the latest git version a try. And 
> please use the code in cpu/ppc4xx/sdram.c to init the SDRAM controller. How 

Actually that was exactly the problem: I had overloaded the function
"initdram(int board)" in my "board.c" to initialize the SDRAM stuff. The
solution was to trash my own code and let U-Boot use the routines
defined in cpu/ppc4xx/sdram.c. Now it works perfectly.

Thank you very much for your help!

Best regards,
Reto

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

end of thread, other threads:[~2008-11-23 13:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-21 17:52 [U-Boot] ppc405ep boot freeze with u-boot 1.3.4 Reto Stalder
2008-11-22 19:05 ` Stefan Roese
2008-11-23 13:39   ` Reto Stalder

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