From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2137 invoked by alias); 20 Jun 2006 21:09:17 -0000 Received: (qmail 2118 invoked by uid 22791); 20 Jun 2006 21:09:16 -0000 X-Spam-Check-By: sourceware.org Received: from sta-204-188-98-27.rockynet.com (HELO hermes.chez-thomas.org) (204.188.98.27) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 20 Jun 2006 21:09:12 +0000 Received: by hermes.chez-thomas.org (Postfix, from userid 999) id BB1A919500AD; Tue, 20 Jun 2006 15:09:09 -0600 (MDT) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by hermes.chez-thomas.org (Postfix) with ESMTP id DC9AB195000F; Tue, 20 Jun 2006 15:09:07 -0600 (MDT) From: Gary Thomas To: David Ho Cc: ecos-discuss@ecos.sourceware.org In-Reply-To: <4dd15d180606201400j3a73e941iff7ff0869e0587d5@mail.gmail.com> References: <4dd15d180606201400j3a73e941iff7ff0869e0587d5@mail.gmail.com> Content-Type: text/plain Date: Tue, 20 Jun 2006 21:09:00 -0000 Message-Id: <1150837747.16508.66.camel@hermes> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 (2.6.2-1.fc5.5) Content-Transfer-Encoding: 7bit Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] Running Redboot RAM mode on custom AT91x40 board X-SW-Source: 2006-06/txt/msg00188.txt.bz2 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