From mboxrd@z Thu Jan 1 00:00:00 1970 From: Detlev Zundel Date: 24 Feb 2004 03:22:38 +0100 Subject: [U-Boot-Users] running custom apps under uboot In-Reply-To: <403A69EE.6000101@email.si> References: <20040223193927.D80BDC0655@atlas.denx.de> <403A69EE.6000101@email.si> Message-ID: <87k72drzbl.fsf@deepthought.outer.space.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de The keyboard of himbA 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."