public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: RadekFisera <jungelist@centrum.cz>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users]  Au1550 U-boot debugging - a newbie question
Date: Mon, 18 Feb 2008 06:37:39 -0800 (PST)	[thread overview]
Message-ID: <15546519.post@talk.nabble.com> (raw)


Hi everybody,
I'd like to exploit U-boot as a linux bootloader on the board with Au1550
(128MB RAM, 64MB NOR flash). So I put necessary files in /board/<my_board>
subdir, adjusted Makefile and successfully created binary image in my build
directory. I use crosstooll from ELDK 4.1. I have BDI2000 at disposal also. 

When I program the bin file to the flash (at 0xbfc00000) and run from this
address the bootloader always hangs at 0xbfc0054c (romExcHandle in start.S).
I can debug the code via BDI2000 and therefore I see that the code fails at
the begining of board_init_f function where the rellocation to RAM is
performed.
I have some troubles also with remote debugging via gdb. I always receive
the SIGABRT when the debug pointer reaches the first instruction in start.S.

# ${CROSS_COMPILE}gdb /var/tmp/builds/u-boot
GNU gdb Red Hat Linux (6.3.0.0-1.21_3rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=i386-redhat-linux --target=mips-linux".
The target architecture is set automatically (currently mips)
..
(gdb) set endian little
The target is assumed to be little endian
(gdb) target remote bdi2000:2001
Remote debugging using bdi2000:2001
_start () at start.S:41
41              RVECENT(reset,0)        /* U-boot entry point */
Current language:  auto; currently asm
(gdb) stepi

Program received signal SIGABRT, Aborted.
reset () at start.S:211
211             mtc0    zero, CP0_WATCHLO

I can set breakpoint however it is not reached although it is set in the
code before the function board_init_f. I can see the message on the BDI2000
telnet session window: 
*** TARGET: all hardware breakpoints in use
I tried to clear all breakpoints after each program stop but it didn't help. 

I suspect that there are some wrong settings in
/include/configs/<my_board>.h . My settings:
#define CFG_SDRAM_BASE		0x80000000
#define	CFG_MONITOR_BASE	TEXT_BASE
#define	CFG_MONITOR_LEN		(192 << 10)
#define CFG_INIT_SP_OFFSET	0x10000000 
#define CFG_FLASH_BASE		0xbc000000 
TEXT_BASE = 0xbfc00000

Thank you in advance
-- 
View this message in context: http://www.nabble.com/Au1550-U-boot-debugging---a-newbie-question-tp15546519p15546519.html
Sent from the Uboot - Users mailing list archive@Nabble.com.

             reply	other threads:[~2008-02-18 14:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-18 14:37 RadekFisera [this message]
2008-02-18 15:21 ` [U-Boot-Users] Au1550 U-boot debugging - a newbie question Shinya Kuribayashi
2008-02-19  7:25   ` RadekFisera
2008-02-19  9:52     ` Vlad Lungu
2008-02-20 10:05       ` RadekFisera

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=15546519.post@talk.nabble.com \
    --to=jungelist@centrum.cz \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox