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]
Other format: [Raw text]

RE: Way of developing new port?


This should work in principle. I did a similar operation:

1) Made a ROM build of a simple bootstrapper, which can find an image in the
flash file system on an ARM Integrator platform. Note I used 'the eCos build
process' but mainly for convenience. I put all the bootstrap code in
cyg_user_start(), from which it jumps to the image copied into RAM from
flash, which effectively starts everything from the beginning again.
2) Turned the bootstrapper ELF file into S-records
3) Downloaded and burned the bootstrapper S-record file into flash block 1,
using the ARM ROM Monitor.
4) Made a RAM build of my application + eCos
5) Turned the application ELF file into S-records
6) Modified the location addresses in the application S-record file (so the
ARM ROM Monitor would know to burn it into flash block 2).
7) Downloaded and burned the modified application S-record file into flash
block 2, using the ARM ROM Monitor.
8) Changed the ARM Integrator power up to start from the bootstrapper in
flash block 1

On power up, the bootstrapper would find the image in flash block 2, copy it
to RAM and jump to it.

What you want to do sounds like steps 4-8 above (skipping 6), except you are
downloading straight into RAM and manually jumping to the start address
using the ROM Monitor. The only caveat is to make sure that the addresses
the RAM build uses do not corrupt any RAM space the ROM Monitor may be
using, which shouldn't happen. However, if it does (probably the only way of
telling will be that the download fails to finish and you don't get the
monitor prompt back), you will need to change the addresses the RAM build
uses in the memory layout (mlt*.h and mlt*.ldi) files in
hal/<port>/include/pkgconf.

Robert Cragie, Design Engineer

Direct: +44 (0) 114 281 4512
_______________________________________________________________
Jennic Ltd, Furnival Street, Sheffield, S1 4QT,  UK
http://www.jennic.com  Tel: +44 (0) 114 281 2655
_______________________________________________________________
Visit our stand at Electronica, Munich 12-14 November 2002
_______________________________________________________________

> -----Original Message-----
> From: ecos-discuss-owner@sources.redhat.com
> [mailto:ecos-discuss-owner@sources.redhat.com]On Behalf Of Qiang Huang
> Sent: 16 October 2002 14:07
> To: Ecos-Discuss
> Subject: [ECOS] Way of developing new port?
>
>
> Dear all:
>      I have a simple "load" and "go" rom monitor in my target platform, is
> it possible to just make a basic HAL (without debug support), and
> build the
> ecos library, then link the ecos application with the ecos library to
> produce a .srec format file then use the simple "load and go" monitor to
> download and run the ecos application.
> Thanks a lot!
>
>
>
> --
> Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
> and search the list archive: http://sources.redhat.com/ml/ecos-discuss
>
>


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


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