All of lore.kernel.org
 help / color / mirror / Atom feed
From: mazen.e <mazen.ezzeddine@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Standalone application issue.
Date: Sun, 25 May 2014 02:15:44 -0700 (PDT)	[thread overview]
Message-ID: <1401009344794-180667.post@n7.nabble.com> (raw)
In-Reply-To: <20140525082257.232823814BE@gemini.denx.de>

Dear wolfagang,

Again thank you very much.


Please note :



I used  the following command : 

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

I  transfred the image file to (using loadb 0x43e00000), the md command
shows the following:

43e00000: 56190527 7b49d5f0 62568253 52020000    '..V..I{S.Vb...R
43e00010: 000000c1 000000c1 ef3a4c3c 00010211    ........<L:.....
43e00020: 6c6c6548 6f57206f 00646c72 00000000    Hello World.....
43e00030: 00000000 00000000 00000000 00000000    ................
43e00040: e92d40f8 e1a05000 e1a00001 e1a06001    . at -..P.......`..
43e00050: eb000062 e3a01006 e59f007c e3a04000    b.......|.... at ..
43e00060: eb00002f e59f7074 eb000023 e1a01000    /...tp..#.......
43e00070: e59f006c eb00002a e59f0068 eb000028    l...*...h...(...
43e00080: e59f0064 e1a01005 eb000025 ea000006    d.......%.......
43e00090: e7962104 e1a01004 e59f0050 e2844001    .!......P.... at ..
43e000a0: e3520000 01a02007 eb00001d e1540005    ..R.. ........T.
43e000b0: dafffff6 e59f0038 eb000019 eb000012    ....8...........
43e000c0: e3500000 0afffffc eb00000d e59f0024    ..P.........$...
43e000d0: eb000013 e3a00000 e8bd80f8 0c1001cf    ................
43e000e0: 0c1001c8 0c1001ef 0c10020d 0c10021a    ................
43e000f0: 0c100225 0c100236 0c10024f e598c054    %...6...O...T.



Bootm  0x43e00000 raises an undefined instruction exception. 


 Booting kernel from Legacy Image@43e00000 ...
   Image Name:   Hello World
   Image Type:   ARM U-Boot Standalone Program (uncompressed)
   Data Size:    594 Bytes = 594 Bytes
   Load Address: c1000000
   Entry Point:  c1000000
   Verifying Checksum ... OK
   Loading Standalone Program ... OK
OK
undefined instruction
pc : [&lt;0000025e>]	   lr : [<bff7b45c>]
sp : bfe6fdd8  ip : 00000000	 fp : bffae680
r10: bffae104  r9 : 00000000	 r8 : bfe6ff30
r7 : 00000000  r6 : 00000002	 r5 : 00000001  r4 : 00000000
r3 : 00000100  r2 : 00000000	 r1 : 00000001  r0 : 00000001
Flags: nzcv  IRQs off  FIQs off  Mode SVC_32
Resetting CPU ...


----------------------------------------------------------------------------------------------------------------------------------------------------------------

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

Hence, I also used the command:

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
   Entry Point:  0c100000
   Verifying Checksum ... OK
   Loading Standalone Program ... OK
OK


and the program hangs on at this stage giving no sign of life.


Please help what I am missing.

Many thanks and best regards, 




--
View this message in context: http://u-boot.10912.n7.nabble.com/Standalone-application-issue-tp180515p180667.html
Sent from the U-Boot mailing list archive at Nabble.com.

  reply	other threads:[~2014-05-25  9:15 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 [this message]
2014-05-25 21:01             ` Wolfgang Denk
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=1401009344794-180667.post@n7.nabble.com \
    --to=mazen.ezzeddine@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.