[U-Boot-Users] helloworld app from flash?

Ram vshrirama at gmail.com
Tue Jul 18 11:11:41 CEST 2006


Hi,
   im trying to run the helloworld application

   1st Option: download the hello_world.bin to some location on RAM
and execute it

            OMAP5912OSK: tftpboot 0x10000000 hello_world.bin
            OMAP5912OSK: go 0x10000004

         This works fine. no problem


  2nd Option: I want to burn the hello_world.bin into flash. During
startup i want u-boot to launch it after booting - just like the way
it boots the kernel.

    It does not work for me, this is what i did.
   $ ../tools/mkimage -A arm -O linux -T kernel -C gzip -a 0x10000000
-e 0x10000004 -n 'Hello Image' -d hello_world.bin.gz hello.img

   I downloaded the hello.img and burnt it to 0x40000

   I did: setenv bootcmd bootm 0x40000


  Now when i restarted the boot i get the following:-

                     Example expects ABI version 2
                     Actual U-Boot ABI version 2
                     Hello World
                     argc = 0
                     data abort
                     pc : [<10000058>]          lr : [<10000048>]
                     sp : 1103fc10  ip : ffffffff     fp : 00000001
                     r10: 110996d8  r9 : 1103fca4     r8 : 1103ffdc
                     r7 : 110996d8  r6 : 00000203     r5 : 00000000
r4 : 00000000
                     r3 : 00000020  r2 : 00000001     r1 : 0000000a
r0 : 00000000
                     Flags: nZCv  IRQs off  FIQs off  Mode SVC_32
                     Resetting CPU ...

   All i am doing in the hello world example is to read a line and
print the line entered.

   I am using readline function for doing that.


  The programs works fine if i download it to RAM and say go. but if i
flash it it does not work?.

  Am i missing something?.


Regards,
sriram




More information about the U-Boot mailing list