[U-Boot] Problem executing hello world as specified on wiki

Vipul Jain vipulsj at gmail.com
Mon Feb 22 00:14:02 CET 2010


Hello U-Boot alias,

   I am trying to execute the standlone examples of hello world by following
the steps
specified at the U-Boot wiki but have no success. This is what I am getting.

Method 1:
---------------
EDB9302> tftp 40000 /tftpboot/hello_world.srec
Using ep93xx_eth-0 device
TFTP from server 192.168.15.6; our IP address is 192.168.15.15
Filename '/tftpboot/hello_world.srec'.
Load address: 0x40000
Loading: #
done
Bytes transferred = 1916 (77c hex)
EDB9302> go 40004
## Starting application at 0x00040004 ...

<nothing just hung>

Method 2:
----------------
EDB9302> tftp 40000 /tftpboot/hello_world.bin
Using ep93xx_eth-0 device
TFTP from server 192.168.15.6; our IP address is 192.168.15.15
Filename '/tftpboot/hello_world.bin'.
Load address: 0x40000
Loading: #
done
Bytes transferred = 616 (268 hex)
EDB9302> go 40004
## Starting application at 0x00040004 ...
�������������������������������������
<some garbage>

Method 3:
EDB9302> loadb 0x100000
## Ready for binary (kermit) download to 0x00100000 at 115200 bps...

(Back at Gladiator)
----------------------------------------------------
(./) C-Kermit>send /tftpboot/hello_world
(./) C-Kermit>connect
Connecting to /dev/ttyUSB0, speed 115200
 Escape character: Ctrl-\ (ASCII 28, FS): enabled
Type the escape character followed by C to get back,
or followed by ? to see other options.
----------------------------------------------------
 Total Size      = 0x0000937c = 37756 Bytes
## Start Addr      = 0x00100000
EDB9302> go 0x00100000
## Starting application at 0x00100000 ...
undefined instruction
pc : [<0010001c>]       lr : [<05706e50>]
sp : 0567fe4c  ip : fffffffe     fp : 00000001
r10: 056a01d8  r9 : 00000000     r8 : 0567ffe0
r7 : 00000000  r6 : 00000002     r5 : 056a028c  r4 : 00100000
r3 : 00100000  r2 : 056a028c     r1 : 056a028c  r0 : 0008000c
Flags: nZCv  IRQs off  FIQs off  Mode SVC_32
Resetting CPU ...

resetting ...

Please help me, how can I test simple hello world program like this on
U-Boot.

Regards,
Vipul.


More information about the U-Boot mailing list