* [U-Boot-Users] SDRAM init problem? Was Re: uboot 1.1.2 problem
2005-05-23 14:02 [U-Boot-Users] " Jerry Van Baren
@ 2005-05-24 4:50 ` Sam Song
2005-05-24 13:43 ` Scott McNutt
0 siblings, 1 reply; 8+ messages in thread
From: Sam Song @ 2005-05-24 4:50 UTC (permalink / raw)
To: u-boot
Jerry Van Baren <gerald.vanbaren@smiths-aerospace.com>
wrote:
> Your SDRAM configuration is wrong or your board
> layout doesn't support the faster speeds.
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? Could it boot after relocation?
I know my assumption isn't reasonable. Well, I have
a similar experience on 823. That board could only
get the output before relocation in u-boot. Never
for booting Linux. After a fix on some pull-ups
around CPU and good PCB processing, it worked fine.
So I can make sure one thing. Not all crash after
relocation is due to SDRAM init. That's just our
software engineer/developer can do. Perhaps it is
related with mini error on schematic design or PCB
layout including processing.
A little bit out of topic. Sorry for this:-)
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/
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot-Users] SDRAM init problem? Was Re: uboot 1.1.2 problem
2005-05-24 4:50 ` [U-Boot-Users] SDRAM init problem? Was " Sam Song
@ 2005-05-24 13:43 ` Scott McNutt
0 siblings, 0 replies; 8+ messages in thread
From: Scott McNutt @ 2005-05-24 13:43 UTC (permalink / raw)
To: u-boot
>>Your SDRAM configuration is wrong or your board
>>layout doesn't support the faster speeds.
>
> 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.
I experienced a similar problem that was caused by
the phase difference between CLKIN and the SDRAM
clock that only occurred during 8-beat burst write
cycles. In many designs there are only two things
that generate these cycles: the CPM during (burst)
writes to SDRAM, and the CPU during a dcache flush.
Since u-boot normally doesn't run with the data
cache enabled, and u-boot usually puts buffers in
the CPM shared memory (rather than SDRAM) ... you
won't see any errors ... until after the kernel
enables the data cache.
The bad part is that the data error occurs during
the write (dcache writing a line), but the kernel
crashes after reloading the (corrupted) cache line
(e.g. - reading in a pointer that was corrupted).
So it's _very_ difficult to observe this problem
when the kernel boots.
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 ;-)
Regards,
--Scott
BTW: We ended up dropping in a PLL so we could
adjust the clock phase as needed.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot-Users] SDRAM init problem? Was Re: uboot 1.1.2 problem
@ 2005-05-25 8:33 Sam Song
2005-05-25 9:10 ` Wolfgang Denk
0 siblings, 1 reply; 8+ messages in thread
From: Sam Song @ 2005-05-25 8:33 UTC (permalink / raw)
To: u-boot
Scott McNutt <smcnutt@psyent.com> wrote:
> > 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]
> 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/
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot-Users] SDRAM init problem? Was Re: uboot 1.1.2 problem
2005-05-25 8:33 Sam Song
@ 2005-05-25 9:10 ` Wolfgang Denk
0 siblings, 0 replies; 8+ messages in thread
From: Wolfgang Denk @ 2005-05-25 9:10 UTC (permalink / raw)
To: u-boot
In message <20050525083355.6524.qmail@web15904.mail.cnb.yahoo.com> 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 ;-)
> 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.
> 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
--
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot-Users] SDRAM init problem? Was Re: uboot 1.1.2 problem
@ 2005-05-25 9:44 Sam Song
2005-05-25 10:11 ` Clemens Koller
0 siblings, 1 reply; 8+ messages in thread
From: Sam Song @ 2005-05-25 9:44 UTC (permalink / raw)
To: u-boot
-- Wolfgang Denk <wd@denx.de> 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.
Firmware guys is better to me. I amn't willing to
be an native HW fellow although I come from HW
field. To blame right is my hope. SW is only one
side:-)
[snip]
> 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
Ummm, this is really what I want. It seems I should
look back more to take case HW side:-)
Thanks so much,
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/
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot-Users] SDRAM init problem? Was Re: uboot 1.1.2 problem
2005-05-25 9:44 [U-Boot-Users] SDRAM init problem? Was Re: uboot 1.1.2 problem Sam Song
@ 2005-05-25 10:11 ` Clemens Koller
2005-05-25 10:58 ` Thomas Kastner
0 siblings, 1 reply; 8+ messages in thread
From: Clemens Koller @ 2005-05-25 10:11 UTC (permalink / raw)
To: u-boot
Hi, Sam!
As Wolfgang said, check the voltages, caps, terminations...
You might also try to actively lower/rise the voltages of
your board/ram/... a bit. If your problem changes, I would
bet it's a hardware problem.
Greets,
Clemens
Sam Song wrote:
> -- Wolfgang Denk <wd@denx.de> 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.
>
>
> Firmware guys is better to me. I amn't willing to
> be an native HW fellow although I come from HW
> field. To blame right is my hope. SW is only one
> side:-)
>
> [snip]
>
>>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
>
>
> Ummm, this is really what I want. It seems I should
> look back more to take case HW side:-)
>
> Thanks so much,
>
> Sam
>
--
Clemens Koller
_______________________________
R&D Imaging Devices
Anagramm GmbH
Rupert-Mayer-Str. 45/1
81379 Muenchen
Germany
http://www.anagramm.de
Phone: +49-89-741518-50
Fax: +49-89-741518-19
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot-Users] SDRAM init problem? Was Re: uboot 1.1.2 problem
2005-05-25 10:11 ` Clemens Koller
@ 2005-05-25 10:58 ` Thomas Kastner
0 siblings, 0 replies; 8+ messages in thread
From: Thomas Kastner @ 2005-05-25 10:58 UTC (permalink / raw)
To: u-boot
Hello Sam,
cooler spray might help find the cause, too.
For example I once had a similar problem that looked like a SDRAM
problem. In the end I found out that the oscillator sourcing the CPU's
PLL input was a little weak and the CPU's internal PLL sometimes went
crazy, causing this strange behaviour. Cooler spray on the oscillator
marginally raised the slew rate and the system ran stable.
Check the clocks, especially termination.
If you have any chance to reduce the SDRAM clock rate, try that. Maybe
by changing dividers in software or replacing a hardware oscillator.
Generally speaking cooler spray has saved me a lot of time finding the
cause of timing problems, so this really might be worth a try.
Kind regards,
Thomas
Clemens Koller wrote:
> Hi, Sam!
>
> As Wolfgang said, check the voltages, caps, terminations...
>
> You might also try to actively lower/rise the voltages of
> your board/ram/... a bit. If your problem changes, I would
> bet it's a hardware problem.
>
> Greets,
>
> Clemens
>
> Sam Song wrote:
>
>>-- Wolfgang Denk <wd@denx.de> 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.
>>
>>
>>Firmware guys is better to me. I amn't willing to
>>be an native HW fellow although I come from HW
>>field. To blame right is my hope. SW is only one
>>side:-)
>>
>>[snip]
>>
>>
>>>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
>>
>>
>>Ummm, this is really what I want. It seems I should
>>look back more to take case HW side:-)
>>
>>Thanks so much,
>>
>>Sam
>>
>
>
--
Thomas Kastner
Dipl.-Ing. (FH)
Entwicklung Hard- und Software
MarekMicro GmbH
Fuggerstr. 9
D-92224 Amberg
Tel: +49 96 21 / 97 32 - 124
Fax: +49 96 21 / 97 32 - 199
eMail: thomas.kastner at marekmicro.de
http://www.marekmicro.de
PGP: http://pgpkeys.pca.dfn.de/pks/lookup?search=0xA197D41B
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot-Users] SDRAM init problem? Was Re: uboot 1.1.2 problem
@ 2005-05-27 8:59 Sam Song
0 siblings, 0 replies; 8+ messages in thread
From: Sam Song @ 2005-05-27 8:59 UTC (permalink / raw)
To: u-boot
Thomas Kastner <thomas.kastner@marekmicro.de> wrote:
[snip]
> Generally speaking cooler spray has saved me a lot
> of time finding the cause of timing problems, so
> this really might be worth a try.
Thanks. Good idea to try.
> Clemens Koller wrote:
[snip]
> > You might also try to actively lower/rise the
> > voltages of your board/ram/... a bit. If your
> > problem changes, I would bet it's a hardware
> > problem.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2005-05-27 8:59 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-25 9:44 [U-Boot-Users] SDRAM init problem? Was Re: uboot 1.1.2 problem Sam Song
2005-05-25 10:11 ` Clemens Koller
2005-05-25 10:58 ` Thomas Kastner
-- strict thread matches above, loose matches on Subject: below --
2005-05-27 8:59 Sam Song
2005-05-25 8:33 Sam Song
2005-05-25 9:10 ` Wolfgang Denk
2005-05-23 14:02 [U-Boot-Users] " Jerry Van Baren
2005-05-24 4:50 ` [U-Boot-Users] SDRAM init problem? Was " Sam Song
2005-05-24 13:43 ` Scott McNutt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox