This is the mail archive of the
mailing list for the eCos project.
Re: Redboot: Not able to resolve conflict of Bigendian formatselection in SH77x9 board configuration
- From: Jonathan Larmour <jifl at eCosCentric dot com>
- To: Aniket S Joshi <aniketsj at myw dot ltindia dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Wed, 11 Feb 2004 04:17:59 +0000
- Subject: Re: [ECOS] Redboot: Not able to resolve conflict of Bigendian formatselection in SH77x9 board configuration
- References: <s028e31f.076@EMAIL>
Aniket S Joshi wrote:
I am tring to generate *.srec file with "Bigendian file format" in win2000 with ecos configuration tool (Hitachi SH77x9 board) , but i am not able to resolve the conflict for Bigendian file format.
I am able to generate the *.srec file with littleendian file format selection but it is not working because i have Hitachi boot loader with Bigendian EPROM Set.
I want to generate *.srec file with bigendian setting.
Pls give me an idea to solve this problem.
Depending on what you are specifically referring to, you should either
compile your program in big-endian format. Or if it's just the way the
EPROM is accessed, then you just need to swap the bytes in the program
itself. You can probably do this by converting your program to binary and
then to srec separately, using sh-elf-objcopy. When it's in binary format
you can swap the bytes relatively easily using a script or whatever.
hal/mips/ref4955/current/misc/swap4.tcl might help do the swapping of the
You'll need to set the load address on the objcopy command line when you
convert to srec of course be warned.
eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts
Visit us at Embedded World 2004, Nürnberg, Germany, 17-19 Feb, Stand 12-449
--["No sense being pessimistic, it wouldn't work anyway"]-- Opinions==mine
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss