From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Hangs at relocation on 460EX Target
Date: Tue, 21 Oct 2008 17:54:21 +0200 [thread overview]
Message-ID: <200810211754.22055.sr@denx.de> (raw)
In-Reply-To: <20081021153706.GA21379@crust.elkhashab.com>
On Tuesday 21 October 2008, Ayman M. El-Khashab wrote:
> We've got our custom hardware in and are having trouble getting
> u-boot to start up. We've modeled our board close to the canyonlands.
> The main differences are no sensors, DIMM at 0x51, and a 16Mb NOR
> flash instead of 64Mb. We boot and get messages and we've determined
> it is stuck inside the relocation or immediately after it branches
> to the code in RAM.
I suggest that you enable DEBUG in lib_ppc/board.c (define DEBUG before the
#includes). This will show you a little more.
But you may be correct that U-Boot hangs/crashes upon relocation. This is most
likely a problem with the DDR2 configuration. You might have noticed the
latest autocalibration changes for the 4xx DDR2 controller. It's worth to
give these new methods a try.
> My first thought is that we need to make several changes to handle
> the 16Mb flash since there was some code to handle the movement of
> the 64Mb flash in early_init_r. It seems for us that is not needed.
>
> Secondly, there might be some changes needed to the EBC Setup in
> the config file. However I've compared those to the data sheet
> and not seeing anything obvious. I have disabled early_init_r and
> made the following changes to the configuration
>
> #define CFG_FLASH_BASE 0xFF000000 * later mapped to this addr
> */
>
> #define CFG_FLASH_BASE_PHYS_H 0x0
> #define CFG_FLASH_BASE_PHYS_L 0xFF000000
> #define CFG_FLASH_BASE_PHYS (((u64)CFG_FLASH_BASE_PHYS_H << 32) | \
> (u64)CFG_FLASH_BASE_PHYS_L)
>
> #define CFG_FLASH_SIZE (16 << 20)
>
>
> Any tips to what else I might be missing? I don't recall having
> this much difficulty last time u-boot was ported to our boards.
On the 460EX/GT is especially hard to handle bigger boot FLASH sizes because
of it's restricted boot map size.
But this is most likely not your problem. I'm pretty sure that you are
experiencing SDRAM problem.
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
=====================================================================
next prev parent reply other threads:[~2008-10-21 15:54 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-21 15:37 [U-Boot] Hangs at relocation on 460EX Target Ayman M. El-Khashab
2008-10-21 15:54 ` Stefan Roese [this message]
2008-10-21 16:20 ` Ayman M. El-Khashab
2008-10-21 19:10 ` Wolfgang Denk
2008-10-21 21:59 ` Ayman M. El-Khashab
2008-10-22 5:12 ` Stefan Roese
2008-10-23 0:59 ` Ayman M. El-Khashab
2008-10-23 4:02 ` Stefan Roese
2008-10-23 6:27 ` Felix Radensky
2008-10-23 7:15 ` Stefan Roese
2008-10-23 7:31 ` Felix Radensky
2008-10-23 8:39 ` Stefan Roese
2008-10-27 14:34 ` Ayman M. El-Khashab
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=200810211754.22055.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox