This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Converting Binaries for LEON CPU
- From: Jonathan Larmour <jlarmour at redhat dot com>
- To: Andrew Lai <laiandrew at cwc dot nus dot edu dot sg>
- Cc: eCos Discuss <ecos-discuss at sources dot redhat dot com>
- Date: Thu, 04 Apr 2002 05:35:43 +0100
- Subject: Re: [ECOS] Converting Binaries for LEON CPU
- References: <4.2.2.20020326165058.0192dc30@postman.cwc.nus.edu.sg>
Andrew Lai wrote:
>
> Hi all,
>
> I have a particular file called "tm_basic.o", which was produced in the
> eCos development environment. Have been experimenting with eCos over the
> LEON. "tm_basic.o" was compiled in the eCos environment. The question is:
>
> How to convert tm_basic.o into a form that can be run by LEON and TSIM?
>
> I suspect that I should be using sparc-rtems-objcopy. Have tried this
> without success. Am probably missing something in the switches. This the
> why i've used the command:
>
> sparc-rtems-objcopy -O elf32-sparc tm_basic.o tm_basic
> sparc-rtems-objcopy -O srec tm_basic.o tm_basic.srec
Don't bother with the .o file - that's not the test. You need to use the
test executable which should be in the "tests" directory underneath your
install tree.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss