All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Help!Some memory doesn't work on PPC405Ex based board!
Date: Wed, 15 Apr 2009 10:08:40 +0200	[thread overview]
Message-ID: <200904151008.40439.sr@denx.de> (raw)
In-Reply-To: <BAY114-W51CCD6EF55178996AB73F5AB7D0@phx.gbl>

Sun,

On Wednesday 15 April 2009, SunNeo wrote:
> I tried to add auto-calibration related configuration to my configuation
> file, but Linux still hangs at the same location. It seems error happened
> when threads of Linux Kernel tried to access the high 512m memory.

I suggest you debug this further, either by adding some printk's or using a 
debugger to see where exactly the crash happens.

> Just like the Kilauea evb, there is no ECC on my board, and I use the same
> regisger setting for DDR Controller as Kilauea. Maybe you know, Kilauea
> uses the "MT47H64M16HR" DDRII SDRAM and only one rank. My board uses the
> "MT47H256M8THN" and two ranks. So, I changed setting of MB0CF & MB1CF.

When using the 2nd rank you need to change the termination settings as well 
(SDRAM0_MODT0, SDRAM_MODT1, SDRAM0_CODT). Using the original values from 
Kilauea is definitely a problem which could lead to all kind of problems.

> I think I can confirm all 1024M memory can work well at U-Boot.

Again, you don't really know if the whole memory is working correctly just 
because you are able to boot to the U-Boot prompt. Intensive memory tests 
(with and without burst access) are necessary here.

> And if I 
> add the parameter "mem=512M" to bootargs, and set "initrd_high" to
> "20000000", Linux can boot normally.

Understood. I still think that this is a problem with incorrect SDRAM 
configuration. Take a look at the termination registers mentioned above and 
configure them correctly. 

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
=====================================================================

  reply	other threads:[~2009-04-15  8:08 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-13 12:05 Help!Some memory doesn't work on PPC405Ex based board! SunNeo
2009-04-14  9:23 ` Stefan Roese
2009-04-14 11:08   ` SunNeo
2009-04-14 12:20     ` Stefan Roese
2009-04-14 12:20       ` [U-Boot] " Stefan Roese
2009-04-14 14:04     ` Grant Erickson
2009-04-14 16:30     ` Feng Kan
2009-04-15  7:56       ` [U-Boot] " SunNeo
2009-04-15  8:08         ` Stefan Roese [this message]
2009-04-23  5:00           ` SunNeo
2009-04-23  6:01             ` Grant Erickson
2009-04-23  8:07               ` Stefan Roese
2009-04-23  9:13                 ` SunNeo
2009-04-23  9:55                   ` Stefan Roese
2009-05-04  4:56                     ` SunNeo

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=200904151008.40439.sr@denx.de \
    --to=sr@denx.de \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.