This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: boot ecos from Assabet


On Wed, 2001-10-17 at 13:47, Robert Lee wrote:
> Hi,
> 
> Thank Garry and Warren. 
        ^^^^^ Gary (one 'r' please)
> 
> I got redboot working; at least, I could ping some of
> the local machines.  I tried to load a program but got
> "access violation".
> 
> RedBoot> load hello -m tftp -h IP_address_of_Linux_PC
> Can't load 'hello': access violation
> 
> In the Linux PC, I have /tftpboot/hello (mode
> -r--r--r--)
> 
> What is access violation?  What did I violate?  How to
> fix it?  I searched the archive but did not find
> anybody with the same problem. (Am I so lucky :-(
> 

This is a problem with your TFTP setup.  Depending on the
system, you may actually have to specify the complete path,
not just the filename.  (In particular, on Red Hat 7.0 IIRC)
Try:
  RedBoot> load -h <host> /tftp/hello

The second thing is that RedBoot only knows how to load Motorola
S-record files.  You'll need to convert the 'hello' application
(which is an ELF image) before you can load it this way.
On your development host:
  % arm-elf-objcopy -O srec hello /tftpboot/hello.srec
Then tell RedBoot to load "/tftpboot/hello.srec"

> If I understand Garry correctly, I should change
> bin/install/include/pkgconf/system.h:
> #define CYG_HAL_STARTUP RAM
> 
> to 
> 
> #define CYG_HAL_STARTUP ROM
> 
> and run examples/Makefile to create a ROM version of
> hello.  Is this correct?

Not really.  You should edit the value in the 'ecos.ecc' (CDL
database file) and then rerun:
  % ecosconfig tree
  % make
Then you can go back and rebuild 'hello'.

Note that this will build an application, suitable for programming
into the Assabet ROM *** AS THE STARTUP APPLICATION **.  Once you
install it, that's all you'll be able to run on the board until
you reprogram the FLASH with a different image.

> 
> However, I still don't know how to boot ecos on
> Assabet.  Can I say that running Redboot is equivalent
> to booting ecos?  Honestly, I am very confused right
> now.

In a sense, yes, since RedBoot is just a [simple] eCos
application.  In general though, at least during the development
cycle, loading an eCos application is done using RedBoot as the
tool to get the application into memory for execution.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]