[U-Boot] Standalone application issue.
mazen.e
mazen.ezzeddine at gmail.com
Sun May 25 11:15:44 CEST 2014
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 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: c1000000
Verifying Checksum ... OK
Loading Standalone Program ... OK
OK
undefined instruction
pc : [<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.
More information about the U-Boot
mailing list