From: Scott McNutt <smcnutt@psyent.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] SDRAM init problem? Was Re: uboot 1.1.2 problem
Date: Tue, 24 May 2005 09:43:55 -0400 [thread overview]
Message-ID: <42932F9B.7060203@psyent.com> (raw)
In-Reply-To: <20050524045005.8296.qmail@web15906.mail.cnb.yahoo.com>
>>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.
next prev parent reply other threads:[~2005-05-24 13:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-23 13:50 [U-Boot-Users] uboot 1.1.2 problem Yigit Can
2005-05-23 14:02 ` 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 message]
-- strict thread matches above, loose matches on Subject: below --
2005-05-25 8:33 Sam Song
2005-05-25 9:10 ` Wolfgang Denk
2005-05-25 9:44 Sam Song
2005-05-25 10:11 ` Clemens Koller
2005-05-25 10:58 ` Thomas Kastner
2005-05-27 8:59 Sam Song
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42932F9B.7060203@psyent.com \
--to=smcnutt@psyent.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox