All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jerry Van Baren <gvb.uboot@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Problem in relocate_code on Xilinx FPGA
Date: Sat, 18 Apr 2009 08:08:19 -0400	[thread overview]
Message-ID: <49E9C2B3.60508@gmail.com> (raw)
In-Reply-To: <817973.54808.qm@web54004.mail.re2.yahoo.com>

Seyyed Mohammad Sajjadi wrote:
> Hi
> 
> I am trying to use u-boot on a Xilinx V4FX12 FPGA, in which a ppc405
> system is running. The board includes an ST SPI Flash, which I have
> to use as the only non-volatile memory available (in case important,
> its Atmark Techno suzaku_v sz410).
> 
> I have been able to add the board configuration in u-boot and build
> an image. But, as ppc405 in xilinx fpga can't but from spi flash, I
> have to use a first stage bootloader to load u-boot. This seems to be
> normal in xilinx FPGAs as u-boot in petalinux is loaded to. I
> thaught, if that's the case, I should be able to load u-boot directly
> to DDR and test it. But when I do so, u-boot hangs after it reaches
> relocate_code. I should be missing sth, but don't find it. Could
> anybody help me?

Hi Seyyed,

I'm not familiar with your hardware (including using the ppc405), but if 
I understand you correctly, you are trying to manually (e.g. via a 
debugger) load a test u-boot into DDR and then run it from there.

The typical problem with this approach is that your code does the DDR 
initialization *while running out of DDR*.  While DDR is being 
initialized, it doesn't work as RAM, which causes your program to crash.

You need to find all of your DDR and processor initialization that 
causes u-boot initialization to crash, and disable it.  There are board 
configurations that do this with #if constructs, but I don't remember 
which ones.

For the discouraging discussion, see:
<http://www.denx.de/wiki/view/DULG/CanUBootBeConfiguredSuchThatItCanBeStartedInRAM>

Best regards,
gvb

  reply	other threads:[~2009-04-18 12:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-18  8:09 [U-Boot] Problem in relocate_code on Xilinx FPGA Seyyed Mohammad Sajjadi
2009-04-18 12:08 ` Jerry Van Baren [this message]
2009-04-18 15:17   ` Grant Likely
2009-04-18 17:19     ` [U-Boot] Any Xilinx SPI Driver on U-boot? Seyyed Mohammad Sajjadi

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=49E9C2B3.60508@gmail.com \
    --to=gvb.uboot@gmail.com \
    --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.