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: Issue regarding RedBoot for i386 ..


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


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