This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: help! redboot console
- From: "Zhao Luo" <ZhaoL at TCTechnologies dot tc>
- To: "kneep" <caozhiyuan at hotmail dot com>,"Paul D. DeRocco" <pderocco at ix dot netcom dot com>
- Cc: <ecos-discuss at sources dot redhat dot com>
- Date: Mon, 10 May 2004 15:54:43 +0200
- Subject: RE: [ECOS] 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