[ECOS] Running Redboot RAM mode on custom AT91x40 board

Gary Thomas gary@mlbassoc.com
Tue Jun 20 21:09:00 GMT 2006

On Tue, 2006-06-20 at 17:00 -0400, David Ho wrote:
> Hello list,
> I am attempting to boot Redboot on a custom at91R40008 board with
> nothing inside flash memory.  I am using the BDI2000 to load the image
> directly into RAM via gdb.  The output from at the serial port appear
> to be a gdb-stub packet of some sort
> (+$T0a0f:18f00710;0d:b0020310;#78), and when I stop the running image
> it is stuck wait for  serial characters in generic-stub.c
> (gdb) bt
> #0  cyg_hal_plf_serial_getc (__ch_data=0x1002d088)
>     at /home/davidho/ecos-dev/ecos-2.0/packages/hal/arm/at91/v2_0/src/hal_diag.c:140
> #1  0x10024920 in getDebugChar () at hal_if.h:311
> #2  0x1002356c in __putpacket (buffer=0x10031f00 "T0a0f:18f00710;0d:b0020310;")
>     at /home/davidho/ecos-dev/ecos-2.0/packages/hal/common/v2_0/src/generic-stub.c:349
> #3  0x100245f4 in process_exception (sigval=0)
>     at /home/davidho/ecos-dev/ecos-2.0/packages/hal/common/v2_0/src/generic-stub.c:1605
> #4  0x10023cb8 in __handle_exception ()
>     at /home/davidho/ecos-dev/ecos-2.0/packages/hal/common/v2_0/src/generic-stub.c:988
> #5  0x10023010 in exception_handler (regs=0x1002eaf0)
>     at /home/davidho/ecos-dev/ecos-2.0/packages/hal/arm/arch/v2_0/src/hal_misc.c:139
> #6  0x10020228 in call_exception_handler ()
> Is it a good idea to remove gdb-stub from my redboot configuration?
> I looked into it briefly, and strangely enough the redboot build
> requires gdb-stubs.
> Is there something critical that I missed?

Use GDB to debug this - that's why it's there :-)

Simply disconnect your terminal [emulator] and then connect to
the board using GDB.  It will then tell you why it stopped and
you should be able to poke around, get back-traces, etc.

Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world

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

More information about the Ecos-discuss mailing list