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: help! redboot console


I had a similar problem a couple of weeks ago. My problem was the board
comes up in big-endian mode while my code is compiled in little-endian
mode. GDB can recognize the endianness and load the code in big-endian,
thus swap the byte order of string constant. 
If your code is compiled in big-endian, then you should check if your
board come up in little endian. There should be a bit in some control
register. 

Zhao

-----Original Message-----
From: kneep [mailto:caozhiyuan@hotmail.com] 
Sent: Sunday, May 09, 2004 8:49 PM
To: Paul D. DeRocco
Cc: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] help! redboot console

Dear Paul D. DeRocco,
	Thank you for your information.
	I have some more questions:
	Does endian affect the byte order of a STRING? 
	And I confirm that Redboot is compiled as big-endian and my
machine is running big-endian because everything goes well except that
problem. 
	So what will the point be?
Best Regards,
-- 
kneep <caozhiyuan@hotmail.com>


On Sun, 9 May 2004 12:30:12 -0700

"Paul D. DeRocco" <pderocco@ix.netcom.com> wrote:

> > From: kneep
> >
> > 	My Redboot prints its prompt as 'bdeR>too' other than
> > 'Redboot>' in console. That is, the string is reversed in every 4
> > chars. Also, if you want to input some commands such as 'help',
> > you must type 'pleh', and the output information is abnormal too.
> > 	Here is a rough description of my environment:
> > 	A board running Intel IXP422, big endian, ram version
> > Redboot, using UART1, console initialised as FIFO mode.
> 
> I would say that either redboot was compiled little-endian, or the
machine
> is really running little-endian.
> 
> --
> 
> Ciao,               Paul D. DeRocco
> Paul                mailto:pderocco@ix.netcom.com



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




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


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