[ECOS] load / go in RedBoot

Robert Lee rlee_1900@yahoo.com
Fri Dec 21 11:31:00 GMT 2001


Honestly, I don't know how to answer your questions.

The "hello" program has only a few lines:

#include <stdio.h>
void cyg_user_start(void)
{
  diag_printf("Hello, eCos world!\n"); 
}

The binary is created by

arm-elf-gcc -mcpu=strongarm1100                 
-nostartfiles -L/ecos/ecos/install/bin/install//lib
-Wl,--gc-sections -o hello hello.o -Ttarget.ld
-nostdlib


hello.srec is created by

arm-elf-objcopy -O srec hello hello.srec

How do I change to RAM instead of ROM?

Thank you.

--- Gary Thomas <gthomas@redhat.com> wrote:
> On Thu, 2001-12-20 at 20:10, Robert Lee wrote:
> > Hi,
> > 
> > I am not sure how to use the load / go commands. 
> Is
> > it true that I can "load" an executable (srec
> format)
> > and then execute it using "go"?  This is what I
> tried:
> > 
> > RedBoot> load -b 0x01000000 -h (host IP address)
> > /tftpboot/hello
> > 
> > ELF images not supported
> > 
> > RedBoot> load -b 0x01000000 -h (host IP address) 
> > /tftpboot/hello.srec
> > 
> > Address offset = 0xb1000000
> > Entry point: 0x50000040, address range:
> > 0x50000000-0x50008788
> > 
> > RedBoot> go 0xb1000000
> > $T05thread:00000000;0f:e8500050;0d:6c8a0000;#f3
> > 
> > Then it kept printing some garbage.  Can anybody
> tell
> > me the right way to use load / go commands?  Thank
> > you.
> 
> This "garbage" is GDB telling you that you're
> program has
> jumped into space :-)
> 
> How did you create this program?  On the Assabet
> with RedBoot,
> RAM is at 0x00000000 and ROM/FLASH is at 0x50000000.
>  Your program
> seems to have been built to run from ROM.
> 
> Note: the 'go' command is for programs built using
> eCos or GNUPro
> with 'newlib' support.  It is not for stand-alone
> programs, in general.
> 


=====
Robert Lee
Software Engineer

__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com



More information about the Ecos-discuss mailing list