This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Issue regarding RedBoot for i386 ..
- From: Jonathan Larmour <jlarmour at redhat dot com>
- To: Robin Randhawa <robin at codito dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Tue, 30 Apr 2002 22:18:23 +0100
- Subject: Re: [ECOS] Issue regarding RedBoot for i386 ..
- Organization: Red Hat UK Ltd.
- References: <200205010119.16781.robin@codito.com>
Robin Randhawa wrote:
> I have compiled a simple hello world app on the synthetic Linux target by
> linking it with the libtarget.a library created for the i386.
If it's compiled for the synthetic linux target, you have to run it on
Linux, not on RedBoot on a PC!
Assuming you actually are linking it with an eCos configuration for the PC:
> By default, the
> binary generated was in an ELF format and so attempts to remotely load it
> into the remote RedBoot host failed (since ELF images are not supported).
>
> Being at a loss as to what binary format was supported, I grepped through the
> RedBoot code and learnt that the SREC format was supported. So I used objcopy
> to convert the ELF image to an SREC image. This is accepted by RedBoot over
> the network, but when I execute it, it results in trash output.
What output exactly? If it's complete jibberish it's probably something to
do with baud rates. If it's something like +$O848A8A, i.e. something
beginning $O, then it's trying to talk to GDB.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
--[ "You can complain because roses have thorns, or you ]--
--[ can rejoice because thorns have roses." -Lincoln ]-- 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