* [U-Boot-Users] running custom apps under uboot
@ 2004-02-23 19:12 himbA
2004-02-23 19:39 ` Wolfgang Denk
0 siblings, 1 reply; 5+ messages in thread
From: himbA @ 2004-02-23 19:12 UTC (permalink / raw)
To: u-boot
hi
I would like to code standalone app under uboot that would test my eth
chip.
I tried running hello_world.srec from ram location and I got 'prefetch
abort' on go. My procedure follows:
tftp a0100000 hello_world.srec
go a0140004 test test2
(go a0100000 test test2)
address value for go is memory location plus offset defined in Makefile.
Both go commands yield an error and reset the board.
I would like to know what file and how to modify it to get standalone
programs running from memory.
regards, himba
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] running custom apps under uboot
2004-02-23 19:12 [U-Boot-Users] running custom apps under uboot himbA
@ 2004-02-23 19:39 ` Wolfgang Denk
2004-02-23 21:00 ` himbA
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Denk @ 2004-02-23 19:39 UTC (permalink / raw)
To: u-boot
In message <403A50BA.10807@email.si> you wrote:
>
> I would like to code standalone app under uboot that would test my eth
> chip.
> I tried running hello_world.srec from ram location and I got 'prefetch
> abort' on go. My procedure follows:
> tftp a0100000 hello_world.srec
> go a0140004 test test2
> (go a0100000 test test2)
How comes you are using 0xa0100000 as load address? Did you modify
the Makefile so that this address gets used? The default value used
in U-Boot for ARM systems is 0xc100000 ...
> address value for go is memory location plus offset defined in Makefile.
> Both go commands yield an error and reset the board.
Try running the code under a debugger...
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
You can observe a lot just by watchin'. - Yogi Berra
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] running custom apps under uboot
2004-02-23 19:39 ` Wolfgang Denk
@ 2004-02-23 21:00 ` himbA
2004-02-23 21:45 ` Wolfgang Denk
2004-02-24 2:22 ` Detlev Zundel
0 siblings, 2 replies; 5+ messages in thread
From: himbA @ 2004-02-23 21:00 UTC (permalink / raw)
To: u-boot
Wolfgang Denk wrote:
> In message <403A50BA.10807@email.si> you wrote:
>
>>I would like to code standalone app under uboot that would test my eth
>>chip.
>>I tried running hello_world.srec from ram location and I got 'prefetch
>>abort' on go. My procedure follows:
>>tftp a0100000 hello_world.srec
>>go a0140004 test test2
>>(go a0100000 test test2)
>
>
> How comes you are using 0xa0100000 as load address? Did you modify
> the Makefile so that this address gets used? The default value used
> in U-Boot for ARM systems is 0xc100000 ...
>
I'm trying to download hello_world.srec to the memory and run it from
the memory, as i do with the kernel. I didn't change any Makefiles nor
any of the sources. Was it wrong to think that I could execute an image
from the memory that way ?
>
>>address value for go is memory location plus offset defined in Makefile.
>>Both go commands yield an error and reset the board.
>
>
> Try running the code under a debugger...
>
Yet to learn :). Going slow though.
>
> Best regards,
>
> Wolfgang Denk
>
rgds, himba
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] running custom apps under uboot
2004-02-23 21:00 ` himbA
@ 2004-02-23 21:45 ` Wolfgang Denk
2004-02-24 2:22 ` Detlev Zundel
1 sibling, 0 replies; 5+ messages in thread
From: Wolfgang Denk @ 2004-02-23 21:45 UTC (permalink / raw)
To: u-boot
In message <403A69EE.6000101@email.si> you wrote:
>
> >>tftp a0100000 hello_world.srec
> >>go a0140004 test test2
> >>(go a0100000 test test2)
> >
> > How comes you are using 0xa0100000 as load address? Did you modify
> > the Makefile so that this address gets used? The default value used
> > in U-Boot for ARM systems is 0xc100000 ...
> >
> I'm trying to download hello_world.srec to the memory and run it from
> the memory, as i do with the kernel. I didn't change any Makefiles nor
> any of the sources. Was it wrong to think that I could execute an image
> from the memory that way ?
Standalone applications are not position-independent. They are linked
for a specific address and must be loaded to and started at the
correct address.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
But it's real. And if it's real it can be affected ... we may not be
able to break it, but, I'll bet you credits to Navy Beans we can put
a dent in it.
-- deSalle, "Catspaw", stardate 3018.2
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] running custom apps under uboot
2004-02-23 21:00 ` himbA
2004-02-23 21:45 ` Wolfgang Denk
@ 2004-02-24 2:22 ` Detlev Zundel
1 sibling, 0 replies; 5+ messages in thread
From: Detlev Zundel @ 2004-02-24 2:22 UTC (permalink / raw)
To: u-boot
The keyboard of himbA <goavr@email.si> wrote:
> Wolfgang Denk wrote:
> > In message <403A50BA.10807@email.si> you wrote:
> >
> >> I would like to code standalone app under uboot that would test my
> >> eth chip.
> >> I tried running hello_world.srec from ram location and I got
> >> 'prefetch abort' on go. My procedure follows:
> >>tftp a0100000 hello_world.srec
> >>go a0140004 test test2
> >>(go a0100000 test test2)
> > How comes you are using 0xa0100000 as load address? Did you
> > modify
> > the Makefile so that this address gets used? The default value used
> > in U-Boot for ARM systems is 0xc100000 ...
> >
> I'm trying to download hello_world.srec to the memory and run it from
> the memory, as i do with the kernel. I didn't change any Makefiles nor
> any of the sources. Was it wrong to think that I could execute an
> image from the memory that way ?
Tftp will transfer the file byte by byte so the srec ASCII will end
up in RAM - I doubt that you can run that. Try the hello_world.bin
binary file intended for this purpose.
Cheers
Detlev
--
Two monks went fishing in an electron river. The first monk drew out his
network, and out flopped a hacker. The second monk cried, "The poor hacker!
How can it live outside of the network?" The first monk said, "When you
have learned to live outside the network, then you will know."
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-02-24 2:22 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-23 19:12 [U-Boot-Users] running custom apps under uboot himbA
2004-02-23 19:39 ` Wolfgang Denk
2004-02-23 21:00 ` himbA
2004-02-23 21:45 ` Wolfgang Denk
2004-02-24 2:22 ` Detlev Zundel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox