This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: eb40a target submitted
- From: Gary Thomas <gary at chez-thomas dot org>
- To: Tim Drury <tdrury at siliconmotorsports dot com>
- Cc: eCos Discussion <ecos-discuss at sources dot redhat dot com>
- Date: 22 Jul 2002 12:03:18 -0600
- Subject: Re: [ECOS] eb40a target submitted
- References: <200207221336.07949.tdrury@siliconmotorsports.com>
On Mon, 2002-07-22 at 11:36, Tim Drury wrote:
>
> I created the patch for the Atmel eb40a target and posted it
> to the ecos-patches mailing list. There are a few notes regarding
> its use.
>
> 1. It must be applied on top of Thomas Koeller's eb40 patch.
> It makes a couple changes to his patch and adds the eb40a
> target. His patch can be found in the ecos-patches list in an
> email dated June 26, 2002.
>
> 2. When building the tests, the resulting elf image is not runnable
> by redboot. It has to be converted to srecs first. Here is how
> I built the tests:
What's the problem? What errors are you getting?
>
> ecosconfig target eb40a
> ecosconfig tree
> make ; make all
> <cd into the directory containing a test image>
> arm-elf-objcopy -O srec basic basic.srec
If arm-elf-objcopy can read the file, GDB should be able to as well,
since they use the same library for reading ELF images.
>
> You can then upload via ymodem the basic.srec image to
> the eb40a and issue the 'g' command to run it.
>
> A few things I love to see here: a) what is the proper way to
> make the process create srecs instead of elf images?
Why would you want to do this? It seems to me that effort should be
spent figuring out what problems you are having with GDB.
> b) can we have each test end by returning to redboot so the
> target board doesn't have to be reset after each run?
You could easily define it to work this way. All tests go to
'cyg_test_exit()', which is currently defined as a hard loop.
> c) can we automate this in Linux?
Automate what?
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss