public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Big Endian port
@ 2002-03-25 22:04 Agarwal, Lomesh
  2002-03-26  4:31 ` [ECOS] Converting Binaries for LEON CPU Andrew Lai
  2002-04-03 20:31 ` [ECOS] Big Endian port Jonathan Larmour
  0 siblings, 2 replies; 4+ messages in thread
From: Agarwal, Lomesh @ 2002-03-25 22:04 UTC (permalink / raw)
  To: eCos Discuss

I am trying to port RedBoot for Xscale from Little endian to Big endian. Can
someone help me in identifying the items I need to take care.

Thanks,
Lomesh

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ECOS] Converting Binaries for LEON CPU
  2002-03-25 22:04 [ECOS] Big Endian port Agarwal, Lomesh
@ 2002-03-26  4:31 ` Andrew Lai
  2002-04-03 20:35   ` Jonathan Larmour
  2002-04-03 20:31 ` [ECOS] Big Endian port Jonathan Larmour
  1 sibling, 1 reply; 4+ messages in thread
From: Andrew Lai @ 2002-03-26  4:31 UTC (permalink / raw)
  To: eCos Discuss

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

Am I missing something?

Regards,
Andrew Lai 


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ECOS] Big Endian port
  2002-03-25 22:04 [ECOS] Big Endian port Agarwal, Lomesh
  2002-03-26  4:31 ` [ECOS] Converting Binaries for LEON CPU Andrew Lai
@ 2002-04-03 20:31 ` Jonathan Larmour
  1 sibling, 0 replies; 4+ messages in thread
From: Jonathan Larmour @ 2002-04-03 20:31 UTC (permalink / raw)
  To: Agarwal, Lomesh; +Cc: eCos Discuss

"Agarwal, Lomesh" wrote:
> 
> I am trying to port RedBoot for Xscale from Little endian to Big endian. Can
> someone help me in identifying the items I need to take care.

The biggest problem is usually interfacing with devices. Depending on the
hardware you may need to byte swap every time you access them. A driver
expecting LE all the time wouldn't expect this.

The generic ARM HAL supports big endian operation though - we have it for
ye olde PID.

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ECOS] Converting Binaries for LEON CPU
  2002-03-26  4:31 ` [ECOS] Converting Binaries for LEON CPU Andrew Lai
@ 2002-04-03 20:35   ` Jonathan Larmour
  0 siblings, 0 replies; 4+ messages in thread
From: Jonathan Larmour @ 2002-04-03 20:35 UTC (permalink / raw)
  To: Andrew Lai; +Cc: eCos Discuss

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-04-04  4:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-25 22:04 [ECOS] Big Endian port Agarwal, Lomesh
2002-03-26  4:31 ` [ECOS] Converting Binaries for LEON CPU Andrew Lai
2002-04-03 20:35   ` Jonathan Larmour
2002-04-03 20:31 ` [ECOS] Big Endian port Jonathan Larmour

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).