All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Loading and Running u-boot from context RAM
Date: Wed, 31 Mar 2010 08:50:18 +0200	[thread overview]
Message-ID: <20100331065018.3022BE73028@gemini.denx.de> (raw)
In-Reply-To: <875745.66478.qm@web46116.mail.sp1.yahoo.com>

Dear Ronny D,

In message <875745.66478.qm@web46116.mail.sp1.yahoo.com> you wrote:
>
> I am working on PPC440 based customized board having 4MB context ram.
> 
> what are all changes need to perform to skip relocation of u-boot in DDR
> and relocated it to context ram and run from the same location.

first: why would you want to do that? Which advantages do you expect
compared to running from DDR?

It might be sufficient to change the initialization of "addr" in
board_init_f() in "lib_ppc/board.c"; instead of basing it on
"CONFIG_SYS_SDRAM_BASE + get_effective_memsize()" set it to the end
address of your contaxt RAM (+1). Be careful about the relocation of
the exception vectors, though. These probably still need to be
relocated to 0. I don't know which other obstacles might be on that
way - U-Boot's memory map on Power silently assumes that it has
contiguous memory from 0 through the current image address. Also, 4 MB
might not be sufficient for example to hold the malloc arena if you
want to uncompress bigger bz2 compressed images, and so on.

All in all I expect some effort especially for debugging, and little
or no benefit.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"There is no distinctly American criminal class except Congress."
- Mark Twain

      parent reply	other threads:[~2010-03-31  6:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-31  5:16 [U-Boot] Loading and Running u-boot from context RAM Ronny D
2010-03-31  6:41 ` Stefan Roese
2010-03-31  6:50 ` Wolfgang Denk [this message]

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=20100331065018.3022BE73028@gemini.denx.de \
    --to=wd@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.