Skip to contentSkip to conversation

SDRAM init problem? Was Re: uboot 1.1.2 problem

U-Boot-Users Sam Song 2 participants 2 messages May 25, 2005

lore
Share & tools
lore

Sam Song

author
#0 lore raw
Quoted 7 lines · Scott McNutt
Quoted 4 lines

Just wanna to confirm one thing. If one board's
SDRAM init was good enough but with poor layout
(Layout design or PCB Processing), it would crash
like this?

Yes, if your clock signals were not routed cleanly ... but re-check your SDRAM init first.

Thanks. Actually, it involves the grey area which a probelm was supposed to produce by hardware or software. The golden role is to check SW first.

[snip]

Quoted 4 lines

The good part is that u-boot remains stable (due to some handy design decisions) ... and the POST cache tests are a great starting point to determine if the problem exists ... in a deterministic manner ;-)

Really a nice explanation and experience share.

I have been thinking one puzzle related u-boot itself. I noticed that sometimes u-boot would hang after relocation on my board. The chance is slim but have an effect on normal operation. Maybe 1 out of 10 times. Especially when power down and on in a short interval like no more than 1 minute. I don't know whether this symptom is due to SDRAM init problem.

My wild guess is some elements like capacitances don't discharge enough to restore the original state they should be.

U-Boot 1.0.0 (Aug 20 2004 - 21:11:30)
 
CPU: PPC823EZTnnB2 at 48 MHz: 16 kB I-Cache 8 kB Cache
Board: DMTXX
DRAM: 128 MB

Code reached to relocate_code()->board_init_r(). Stoped before flash_init().

Does anyone encounter such a problem? Ideas?

Thanks in advance,

Sam

_________________________________________________________
Do You Yahoo!?
150??MP3????????????
http://cn.rd.yahoo.com/mail_cn/tag/yisou/music/*http://music.yisou.com/
???????????????????
http://cn.rd.yahoo.com/mail_cn/tag/yisou/image/*http://image.yisou.com
1G??1000???????????
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/

#1 lore raw
Quoted 4 lines · In message <[email protected]> you wrote:

Thanks. Actually, it involves the grey area which a probelm was supposed to produce by hardware or software. The golden role is to check SW first.

You must be one of these hardware guys who always blame the software. I hope you have your asbestos ready in case you need them soon ;-)

Quoted 7 lines

I have been thinking one puzzle related u-boot itself. I noticed that sometimes u-boot would hang after relocation on my board. The chance is slim but have an effect on normal operation. Maybe 1 out of 10 times. Especially when power down and on in a short interval like no more than 1 minute. I don't know whether this symptom is due to SDRAM init problem.

This is one of the possible reasons.

Quoted 1 line

Does anyone encounter such a problem? Ideas?

We've seen lots of "funny" problems with the many boards we lay hands on. Three more things to check:

* Check the voltages on your system: tolerances ok? spikes or other noise on the lines? especially close to the CPU?
* Check the clocks. Check the clocks again.
* check for unconnected pins, missing pull-ups or -downs, or incorrect resistor values

Best regards,

Wolfgang Denk

Signature · 6 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
... The things love can drive a man to -- the  ecstasies,  the  mise-
ries,  the broken rules, the desperate chances, the glorious failures
and the glorious victories.
	-- McCoy, "Requiem for Methuselah", stardate 5843.7