public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Standalone application issue.
Date: Sun, 25 May 2014 23:01:26 +0200	[thread overview]
Message-ID: <20140525210127.070AF3823D1@gemini.denx.de> (raw)
In-Reply-To: <1401009344794-180667.post@n7.nabble.com>

Dear "mazen.e",

In message <1401009344794-180667.post@n7.nabble.com> you wrote:
> 
> On the other hand, the command arm-linux-gnueabi-nm hello_world | grep
> hello_world
> 
> 0c100000 T hello_world
> 
> so, the entry point of the image 0c100000

OK, so it's at 0c10.0000

> mkimage -A arm -O u-boot -T standalone -C none -a c1000000 -e 0c100000 -n 
----------------------------------------------------^^^^^^^^
> "Hello World" -d hello_world.bin Hello.img

> the command bootm 0x43e00000 returns the following :
> 
> 
> AUB ARNDALE 5250 # bootm 0x43E00000
> ## Booting kernel from Legacy Image at 43e00000 ...
>    Image Name:   Hello World
>    Image Type:   ARM U-Boot Standalone Program (uncompressed)
>    Data Size:    594 Bytes = 594 Bytes
>    Load Address: c1000000
-------------------^^^^^^^^^

You fixed the entry point address, but you still use the incorrect
load address.  The program cannot run if you load it into some
unrelated memory region and then jump to some totally different
address.  You must use the SAME address (0c10.0000) for both the -a
and -e options.

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
Command, n.:
            Statement presented by a human and accepted by a computer
in such a manner as to make the human feel as if he is in control.

  reply	other threads:[~2014-05-25 21:01 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-23  7:45 [U-Boot] Standalone application issue mazen.e
2014-05-23 12:10 ` Wolfgang Denk
2014-05-24  8:32   ` mazen.e
2014-05-24 16:04     ` Wolfgang Denk
2014-05-25  7:24       ` mazen.e
2014-05-25  8:22         ` Wolfgang Denk
2014-05-25  9:15           ` mazen.e
2014-05-25 21:01             ` Wolfgang Denk [this message]
2014-05-26  6:34               ` mazen.e
2014-05-26  8:00                 ` Wolfgang Denk
2014-05-26  9:00                   ` mazen.e
2014-05-27 23:35                     ` Rommel G Custodio
2014-05-28  4:30                       ` Wolfgang Denk
2014-05-28  4:59                         ` Rommel G Custodio
2014-05-26  9:19                 ` Jeroen Hofstee
2014-05-26 10:47                   ` mazen.e

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=20140525210127.070AF3823D1@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox