[ECOS] Weird problem about redboot display

Jonathan Larmour jlarmour@redhat.com
Fri Mar 1 12:19:00 GMT 2002


A Roturier wrote:
> 
> Hi all,
> 
> My platform is ARM7 based board. I can now burn Redboot image I built
> in Windows onto the flash and boot up Redboot normally, and I can
> connect to Redboot from hyper-terminal of Windows via com1 and give
> commands there.
> 
> I then try to connect to Redboot throught [graphical] gdb in cygwin.
> The connection is setup as remote/serial/38400. When Redboot is connected,
> I dump memory and check registers only to find that all the values are
> displayed as little-endian while Redboot is actually configured as
> big-endian.
> 
> In such situation, if I hit 'step' button, it seems gdb takes the
> wrongly ordered value(address) in pc(program counter) to execute and
> can't continue any more.
> 
> So I wonder if there is any bye ordering issue that needs to be taken
> care of when building Redboot image.

If your redboot works, then that sounds fine. More likely GDB needs to be
told it is big endian and default to little endian. I can't remember
off-hand what to do for insight, but on the command line it's done with
"set endian big".

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



More information about the Ecos-discuss mailing list