public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] SDRAM initialization process - U-BOOT1.1.1
@ 2006-01-30 21:58 ronen no
  2006-01-30 22:39 ` Jerry Van Baren
  0 siblings, 1 reply; 2+ messages in thread
From: ronen no @ 2006-01-30 21:58 UTC (permalink / raw)
  To: u-boot

Hello,

we are in the process of initializing the SDRAM refresh procedure with 
MPC8260.
As we get started, we have seen that u-boot.1.1.1 code includes two 
functions
which includes:
board/mpc8260ads/mpc8260ads.c   initdram()
cpu/cpu.c                                    upmconfig()

we have seen that initdram() is called from  init_func_ram() in 
board/lib_ppc/board.c
Also, init_func_ram() is a function pointer in the array init_sequence[].

we have not seen that the function upmconfig() is ever called for 
MPC8260ads, and
we would like to know whether we should call it.

Currently, we have the u-boot1.1.1 reaching the relocate_code to the point 
where
the kernel image is copied from Flash to SDRAM, but the image in the SDRAM 
is corrupted.

The question is: is there a bug in the mpc8260ads that does not call the 
upmconfig()
or we should not call it at all?

Looking forward for your input.

Regards,
Ronen

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

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

* [U-Boot-Users] SDRAM initialization process - U-BOOT1.1.1
  2006-01-30 21:58 [U-Boot-Users] SDRAM initialization process - U-BOOT1.1.1 ronen no
@ 2006-01-30 22:39 ` Jerry Van Baren
  0 siblings, 0 replies; 2+ messages in thread
From: Jerry Van Baren @ 2006-01-30 22:39 UTC (permalink / raw)
  To: u-boot

ronen no wrote:
> Hello,
> 
> we are in the process of initializing the SDRAM refresh procedure with 
> MPC8260.
> As we get started, we have seen that u-boot.1.1.1 code includes two 
> functions
> which includes:
> board/mpc8260ads/mpc8260ads.c   initdram()
> cpu/cpu.c                                    upmconfig()
> 
> we have seen that initdram() is called from  init_func_ram() in 
> board/lib_ppc/board.c
> Also, init_func_ram() is a function pointer in the array init_sequence[].
> 
> we have not seen that the function upmconfig() is ever called for 
> MPC8260ads, and
> we would like to know whether we should call it.
> 
> Currently, we have the u-boot1.1.1 reaching the relocate_code to the 
> point where
> the kernel image is copied from Flash to SDRAM, but the image in the 
> SDRAM is corrupted.
> 
> The question is: is there a bug in the mpc8260ads that does not call the 
> upmconfig()
> or we should not call it at all?
> 
> Looking forward for your input.
> 
> Regards,
> Ronen

The SDRAM is controlled by the SDRAM machine which is initialized by 
initdram().  The UPM machine is not used to control the SDRAM (at least 
in any 82xx system I'm aware of), so not calling upmconfig() is not an 
error unless your board uses the upm for something (sounds like not).

You probably have a problem in your SDRAM initialization: this is a 
tough area to set up correctly because it depends on your SDRAM and 
other hardware.  Make sure your initialization matches the 
manufacturer's recommended initialization.

FAQ:
<http://www.denx.de/wiki/view/DULG/UBootCrashAfterRelocation>

gvb

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

end of thread, other threads:[~2006-01-30 22:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-30 21:58 [U-Boot-Users] SDRAM initialization process - U-BOOT1.1.1 ronen no
2006-01-30 22:39 ` Jerry Van Baren

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