public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] helloworld app from flash?
@ 2006-07-18  9:11 Ram
  2006-07-18  9:49 ` Wolfgang Denk
  2006-07-18 10:57 ` [U-Boot-Users] helloworld app from flash? Andreas Schweigstill
  0 siblings, 2 replies; 7+ messages in thread
From: Ram @ 2006-07-18  9:11 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-09-08 15:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-18  9:11 [U-Boot-Users] helloworld app from flash? Ram
2006-07-18  9:49 ` Wolfgang Denk
2006-07-18 11:37   ` Ram
2007-09-04 12:25   ` [U-Boot-Users] Is there anyone worked on ppc440EPx? jxnuxdy
2007-09-04 13:10     ` Wolfgang Denk
2007-09-08 15:10       ` jxnuxdy
2006-07-18 10:57 ` [U-Boot-Users] helloworld app from flash? Andreas Schweigstill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox