This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: boot ecos from Assabet
- To: Robert Lee <rlee_1900 at yahoo dot com>
- Subject: Re: [ECOS] boot ecos from Assabet
- From: Gary Thomas <gthomas at redhat dot com>
- Date: 17 Oct 2001 14:03:16 +0900
- Cc: ecos-discuss at sourceware dot cygnus dot com
- References: <20011017044753.5424.qmail@web9006.mail.yahoo.com>
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.