public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Detlev Zundel <dzu@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Relocating to my code.
Date: Wed, 24 Jun 2009 10:34:04 +0200	[thread overview]
Message-ID: <m2r5xakp37.fsf@ohwell.denx.de> (raw)
In-Reply-To: <4A3F43F0.4050603@deeopl.com> (prathika@deeopl.com's message of "Mon, 22 Jun 2009 14:12:24 +0530")

Hi Prathika,

> hi everyone,
> I am working on a card based on PPC440EP, I am porting u-boot on this card.
> As I understand, the PPC initially boots from the flash and then 
> relocates itself to RAM address where there is board_init_r() and 
> main_loop() is called.

Correct.  Running from flash makes writing to flash (i.e. updating
images there) somewhat complicated.

> I have an application code that simply does a loop back on UART 
> channel2. After all the initialization,
> I want to knock off the relocation code, board_init_r() and main_loop() 
> execution in u-boot and relocate it to my application
> The application code will residing in flash. How can I do this.... 
> anyone kindly help me in this regard...........

Why do you want to run from flash - what exactly are you trying to do?
Did you think about the consequences, i.e. where will your code store
local variables, etc.?

Why do you want to use U-Boot in the first place if you do not want to
use its main functionality?

Cheers
  Detlev

-- 
The  mathematician's patterns,  like the  painter's or  the poet's,  must be
beautiful;  the ideas, like the colours or the words, must fit together in a
harmonious way. Beauty is the first test: there is no permanent place in the
world for ugly mathematics.                       -- G. H. Hardy
--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de

  reply	other threads:[~2009-06-24  8:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-22  8:42 [U-Boot] Relocating to my code prathika
2009-06-24  8:34 ` Detlev Zundel [this message]
     [not found]   ` <4A41EA8A.8080802@deeopl.com>
2009-06-24 13:39     ` Detlev Zundel
2009-06-25  3:27       ` prathika
2009-06-25 12:58         ` Detlev Zundel

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=m2r5xakp37.fsf@ohwell.denx.de \
    --to=dzu@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