From: Robert S. Grimes <rsg@alum.mit.edu>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] U-boot for MCF5329
Date: Fri, 27 Jul 2007 10:06:24 -0400 [thread overview]
Message-ID: <46A9FBE0.3080703@alum.mit.edu> (raw)
In-Reply-To: <46A9F943.27701.B1E6222@w.wegner.astro-kom.de>
w.wegner at astro-kom.de wrote:
> Hi Bob,
>
> did you try running U-Boot from RAM?
> I am still trying to get CONFIG_MONITOR_IS_IN_RAM to work completely, but am stuck in
> speed.c/clock_pll().
>
No, directly from Flash. As I am using the factory board, flash works,
and I have a P&E Micro BDM working with GDB, there is no reason for me
to not run directly from Flash. Especially since this is _not_ a custom
board, and _should_ work "out of the box". Of course, there are always
little issues along the bleeding edge!
Also, given your difficulties with RAM, and the apparent advice to not
bother trying to run out of RAM, it seems better not to go that route.
But bottom line: for me, I just want to get this working in the final
configuration ASAP - then again, don't we all? ;-)
> All is working when I let the code run from flash or completely disable re-setting the PLL by
> some #ifndef CONFIG_MONITOR_IS_IN_RAM, and now I am wondering if this has
> something to do with my RAM, or if I am still doing anything wrong when trying to put the
> RAM in self-refresh mode.
>
This is what I expected - it all to work when run from flash (of course,
with relocation to RAM). Are you running on your custom board? Or the
Cobra? And more pertinent (I think), are you using NAND Flash?
> PS: the problem in env_init was related to bad chip select setups, I did not realize that the
> values of CFG_CSx_BASE had to be truncacted to the upper 16 bits
>
I tried that in response to your earlier email, but no luck. the
CFG_CS2_BASE _was_ indeed set to 0x00800000; setting it to 0x0080 did
*not* fix the problem.
I found something interesting, though. I'm not too proficient with gdb,
but when I single-step to the call to icache_enable(), then enter "step"
to step into that function, gdb never returns. However, if I do "set
lang asm" first, then I get something like this when I step:
120 icache_enable();
(gdb) stepi
120 icache_enable();
(gdb) stepi
120 icache_enable();
(gdb) stepi
120 icache_enable();
I don't know what that's all about, but again, if I remove the call to
icache_enable(), it still doesn't work - removing the CS2 stuff does.
Thanks,
-Bob
next prev parent reply other threads:[~2007-07-27 14:06 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4791E710007FEB4BBF83775D787F462F047A346F@az33exm22.fsl.freescale.net>
[not found] ` <46787DEF.6030808@alum.mit.edu>
[not found] ` <4791E710007FEB4BBF83775D787F462F048C798C@az33exm22.fsl.freescale.net>
2007-07-27 2:53 ` [U-Boot-Users] U-boot for MCF5329 Robert S. Grimes
2007-07-27 11:55 ` w.wegner at astro-kom.de
2007-07-27 14:06 ` Robert S. Grimes [this message]
2007-07-27 14:22 ` w.wegner at astro-kom.de
2007-07-27 15:12 ` w.wegner at astro-kom.de
2007-07-28 0:34 ` Liew Tsi Chung-r5aahp
2007-07-30 9:36 ` w.wegner at astro-kom.de
2007-07-28 0:38 ` Liew Tsi Chung-r5aahp
2007-07-28 15:39 ` Robert S. Grimes
2007-07-28 0:00 ` Liew Tsi Chung-r5aahp
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=46A9FBE0.3080703@alum.mit.edu \
--to=rsg@alum.mit.edu \
--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