public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Redboot for ATLAS (MIPS 4Kc)
@ 2003-05-04 23:36 Michael Anburaj
  2003-05-05  9:31 ` Nick Garnett
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Anburaj @ 2003-05-04 23:36 UTC (permalink / raw)
  To: ecos-discuss

Hi,

I tried building Redboot in BIG endian mode for the MIPS Atlas 4Kc platform.

Opened a new cconfiguration (.ecc), chose the Atlas 4Kc template, Changed 
the default endiness under "ECOS HAL -> MIPS Architecture -> MIPS Variant -> 
Endian Format" to use BIG endian, saved it & imported 
"/packages/hal/mips/atlas/current/misc/redboot_ROM.ecm", added CRC package & 
then issues the build library command from the Configtool. I got the 
following error:

make[1]: Entering directory 
`/home/michaelanburaj/ecos/atlas4kc_redboot_eb/redboot_eb_build/devs/flash/mips/atlas/current'
mipsisa32-elf-gcc -S  
-I/home/michaelanburaj/ecos/atlas4kc_redboot_eb/redboot_eb_install/include 
-I/home/michaelanburaj/ecoscvs/packages/devs/flash/mips/atlas/current 
-I/home/michaelanburaj/ecoscvs/packages/devs/flash/mips/atlas/current/src 
-I/home/michaelanburaj/ecoscvs/packages/devs/flash/mips/atlas/current/tests 
-I. -mips32 -EB -msoft-float -Wall -Wpointer-arith -Wstrict-prototypes 
-Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections 
-fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority -G0 
-EL -g0 -fno-function-sections 
/home/michaelanburaj/ecoscvs/packages/devs/flash/mips/atlas/current/src/flash_erase_block.c
make[1]: Leaving directory 
`/home/michaelanburaj/ecos/atlas4kc_redboot_eb/redboot_eb_build/devs/flash/mips/atlas/current'
mipsisa32-elf-gcc: may not use both -EB and -EL
make: Leaving directory 
`/home/michaelanburaj/ecos/atlas4kc_redboot_eb/redboot_eb_build'
make[1]: *** [flash_erase_block.o] Error 1
make: *** [build] Error 2


Please tell me from where does the -EL build C flag got inserted. If I made 
a mistake do let me know.

Thanks,
-Mike.



_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  
http://join.msn.com/?page=features/virus


-- 
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] 2+ messages in thread

* Re: [ECOS] Redboot for ATLAS (MIPS 4Kc)
  2003-05-04 23:36 [ECOS] Redboot for ATLAS (MIPS 4Kc) Michael Anburaj
@ 2003-05-05  9:31 ` Nick Garnett
  0 siblings, 0 replies; 2+ messages in thread
From: Nick Garnett @ 2003-05-05  9:31 UTC (permalink / raw)
  To: Michael Anburaj; +Cc: ecos-discuss

"Michael Anburaj" <embeddedeng@hotmail.com> writes:

> Hi,
> 
> I tried building Redboot in BIG endian mode for the MIPS Atlas 4Kc platform.
> 
> Opened a new cconfiguration (.ecc), chose the Atlas 4Kc template,
> Changed the default endiness under "ECOS HAL -> MIPS Architecture ->
> MIPS Variant ->
> Endian Format" to use BIG endian, saved it & imported
> "/packages/hal/mips/atlas/current/misc/redboot_ROM.ecm", added CRC
> package & then issues the build library command from the Configtool.

Generally the endianness gets set by the platform HAL package, which
will also handle other endianness issues like changing the compiler
options. While we have certainly supported big endian MIPS targets in
the past, I do not believe any of the current ones are BE. So I would
not expect it to work straight out of the box. Of course you will also
have to work out how to flip the endianness of the Atlas devices,
unless this happens automatically when you set the CPU endianness.

> 
> 
> Please tell me from where does the -EL build C flag got inserted. If I
> made a mistake do let me know.
> 

It comes from the custom make rules in the flash device driver. This
is an example of the LE-only bias of the current targets.

-- 
Nick Garnett                    eCos Kernel Architect
http://www.ecoscentric.com/     The eCos and RedBoot experts


-- 
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] 2+ messages in thread

end of thread, other threads:[~2003-05-05  9:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-04 23:36 [ECOS] Redboot for ATLAS (MIPS 4Kc) Michael Anburaj
2003-05-05  9:31 ` Nick Garnett

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).