public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Jerry Van Baren <gerald.vanbaren@ge.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Need Some Help
Date: Wed, 23 Jul 2008 17:09:15 -0400	[thread overview]
Message-ID: <48879DFB.9020606@ge.com> (raw)
In-Reply-To: <AA28F077645B324881335614E4F7C4284A49B4@win-ex01.bench.com>

Ken.Fuchs at bench.com wrote:
> Please do not use HTML on this mailing list.  All
> messages to this list must be in plain text.
> 
> Mondesir, Alshine wrote:
> 
>> My latest endeavor has me cross compiling a stand
>> alone application for > MPC8548 PPC for a U-Boot
>> Based target.  There is no Operating System to
>> run on the target to speak of, just my application.
>> I'm building the application in Code Warrior
>> using an 8548_init.S hardware initialization file.
>  
>> 1) My first thought was that this should be as
>> simple as using the .ELF image that codewarrior
>> produces, right?  So I build a simple hello_world
>> application and sent it down to my target.  U-Boot
>> recognizes it as an ELF image, sets up the
>> segments, and tries to run it!  But then low and
>> behold, the U-Boot flash image comes up again. 
>  
>> => bootelf 400000
> 
>> => bootm 400000
>  
>> How do I go about exporting my code warrior
>> application so that I can run it as stand-alone
>> on a U-Boot based target?  Thanks so much
> 
> I suspect that your application is using a device
> or resource that neither U-Boot nor your
> application have properly initialized.
> 
> What is your display device for your hello_world
> application?  Where is this device initialized?
> 
> Sincerely,
> 
> Ken Fuchs

...and are you (Alshine) loading your application in a valid location? 
I see 0x00002000 and following.  I suspect those locations are used by 
your version of u-boot.  You probably want to link your test app at 
0x400000 or somewhere up high like that.

>> => bootelf 400000
>> Loading .init @ 0x00002000 (972 bytes)

[snip]

>> ## Starting application at 0x00002044 ...

gvb

  reply	other threads:[~2008-07-23 21:09 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-23 13:42 [U-Boot-Users] Need Some Help Mondesir, Alshine
2008-07-23 20:48 ` Ken.Fuchs at bench.com
2008-07-23 21:09   ` Jerry Van Baren [this message]
2008-07-24  3:18 ` Wolfgang Denk
2008-08-01 18:25   ` Alshine Mondesir
2008-08-01 18:55     ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2007-03-17 17:58 [U-Boot-Users] need some help Timothy Rosario
2007-03-17 18:13 ` David Hawkins

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=48879DFB.9020606@ge.com \
    --to=gerald.vanbaren@ge.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox