From: Andre Puschmann <andre.puschmann@stud.tu-ilmenau.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] u-boot hangs after relocating itself to ram
Date: Wed, 29 Nov 2006 16:52:29 +0100 [thread overview]
Message-ID: <ekkac0$5ok$1@sea.gmane.org> (raw)
In-Reply-To: <20061128210525.CBFDE352650@atlas.denx.de>
Wolfgang Denk wrote:
> In message <ekhurb$vvk$1@sea.gmane.org> you wrote:
>
>> I have ported u-boot to a custom board based on a freescale mpc5200. I
>> can successfully copy u-boot into flash using the connected bdi2000 and
>> we get some output on the debug port. It seems that the board crashes
>> right after relocation to ram (see output). I already
>> read the regarding faq entry but I'm not sure if this problem has
>> something to do with faulty sdram initialization.
>
> Guess why the FAQ is there?
>
>> Can this be a sdram related problem or what might cause this behavior?
>
> Please re-read the FAQ.
>
>> Any comments and suggestions are more than welcome.
>
> The FAQ is based on (a) a lot of experience and (b) a lot of
> questions from engineers who've been there before you. Don't ignore
> it.
Hello,
I really admire the experience of all those engineers and don't wanna
spam the list.
I read the FAQ many times and double-checked the sdram initialization as
well as compared it with other code.
But I still didn't find the problem and I'm still hanging at this point.
Are there any other configuration parts that are necessary to know at
this point of u-boot loading?
here is the dram init-code I'm using:
<code>
#define SDRAM_MODE 0x00CD0000 /* burst_len = 8, cas = 3, wrt_str set */
#define SDRAM_CONTROL 0x504F0000
#define SDRAM_CONFIG1 0x62322900
#define SDRAM_CONFIG2 0x88C70004
/* configure SDRAM start/end */
*(vu_long *)MPC5XXX_SDRAM_CS0CFG = 0x00000016; /* 8MB at 0x00000000 */
*(vu_long *)MPC5XXX_SDRAM_CS1CFG = 0x00000000; /* disabled */
/* setup config registers */
*(vu_long *)MPC5XXX_SDRAM_CONFIG1 = SDRAM_CONFIG1;
*(vu_long *)MPC5XXX_SDRAM_CONFIG2 = SDRAM_CONFIG2;
/* unlock mode register */
*(vu_long *)MPC5XXX_SDRAM_CTRL = (SDRAM_CONTROL | MODE_EN);
/* precharge all banks */
*(vu_long *)MPC5XXX_SDRAM_CTRL = (SDRAM_CONTROL | MODE_EN | SOFT_PRE);
/* set mode register */
*(vu_long *)MPC5XXX_SDRAM_MODE = SDRAM_MODE;
/* precharge all banks */
*(vu_long *)MPC5XXX_SDRAM_CTRL = SDRAM_CONTROL | MODE_EN | SOFT_REF;
/* auto refresh */
*(vu_long *)MPC5XXX_SDRAM_CTRL = (SDRAM_CONTROL | MODE_EN | SOFT_REF);
/* set mode register */
*(vu_long *)MPC5XXX_SDRAM_MODE = SDRAM_MODE;
/* normal operation */
*(vu_long *)MPC5XXX_SDRAM_CTRL = SDRAM_CONTROL;
</code>
>
> Best regards,
>
> Wolfgang Denk
>
Thanks for your help.
Andre
next prev parent reply other threads:[~2006-11-29 15:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-28 18:23 [U-Boot-Users] u-boot hangs after relocating itself to ram Andre Puschmann
2006-11-28 21:05 ` Wolfgang Denk
2006-11-29 15:52 ` Andre Puschmann [this message]
2006-11-29 16:11 ` Jerry Van Baren
2006-11-29 19:32 ` Andre Puschmann
2006-11-28 21:12 ` Jerry Van Baren
2006-12-02 11:56 ` Andre Puschmann
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='ekkac0$5ok$1@sea.gmane.org' \
--to=andre.puschmann@stud.tu-ilmenau.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox