From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] u-boot hangs after detecting DDR3 RAM and Flash.
Date: Tue, 4 May 2010 16:34:33 +0200 [thread overview]
Message-ID: <201005041634.34046.sr@denx.de> (raw)
In-Reply-To: <x2mb9c1f3ac1005040721nb3922549l8b488a478bb5b9bd@mail.gmail.com>
Hi Prakash,
On Tuesday 04 May 2010 16:21:19 prakash bedge wrote:
> I am facing an error while porting u-boot for my platform because if
> exception error.
>
> After running the u-boot to detect the DDR and flash u-boot hangs after
> showing the serial console output. In debugger I am seeing PC at 0x00000400
> address which the exception handler vector address.
>
> But when I modify the below statement in the function int interrupt_init
> (void) in u-boot\lib_ppc\interrupts.c, u-boot continues and I can see the
> u-boot prompt and I am able to run all u-boot commands.
>
> int interrupt_init (void)
> {
> int ret;
>
> /* call cpu specific function from $(CPU)/interrupts.c */
> ret = interrupt_init_cpu (&decrementer_count);
>
> if (ret)
> return ret;
>
> set_dec (decrementer_count);
>
> --- set_msr (get_msr () | MSR_EE); //Removed this statement.
> ++ set_msr (get_msr ());
By not setting MSR_EE, you will not be able to receive external interrupts, or
even worse, your timer will most likely not work. Try the "sleep" command.
> return (0);
> }
>
> It seems that there is an exception error and because of this u-boot hangs.
> But I didn't get any error condition till now.
>
> If someone has earlier experienced this kind of issue, please share.
One thing I've noticed in other PPC4xx ports as well, is that DDR auto-
calibration (with short memory tests) can lead to exceptions that need to be
cleared after the DDR is fully configured. Example:
arch/powerpc/cpu/ppc4xx/44x_spd_ddr2.c:
phys_size_t initdram(int board_type)
{
...
/*
* Clear potential errors resulting from auto-calibration.
* If not done, then we could get an interrupt later on when
* exceptions are enabled.
*/
set_mcsr(get_mcsr());
Hard to tell, if you experience the same problem, since we have little
information about your platform (which DDR3 core is used etc).
Cheers,
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
next prev parent reply other threads:[~2010-05-04 14:34 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-04 14:21 [U-Boot] u-boot hangs after detecting DDR3 RAM and Flash prakash bedge
2010-05-04 14:34 ` Stefan Roese [this message]
2010-05-04 15:03 ` prakash bedge
2010-05-04 15:38 ` Stefan Roese
2010-05-05 11:48 ` prakash bedge
2010-05-05 11:52 ` Stefan Roese
2010-05-06 13:06 ` prakash bedge
[not found] ` <201005071030.24575.sr@denx.de>
2010-05-07 14:52 ` prakash bedge
2010-05-07 15:17 ` Wolfgang Denk
2010-05-10 14:28 ` prakash bedge
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=201005041634.34046.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.