[U-Boot-Users] running custom apps under uboot

Detlev Zundel
2004-02-24T02:22:38Z

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."