From: Shawn Date: Thu, 24 Jun 2004 12:00:46 -0700 (PDT) Subject: [U-Boot-Users] Where is flash_init() after u-boot relocated to RAM? In-Reply-To: <20040624181208.411F9C13D3@atlas.denx.de> Message-ID: <20040624190046.76783.qmail@web20705.mail.yahoo.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Wolfgang, My question about BDI2000 should go to Abtron. But their response usually takes one or more days. So I just ask you here. ;) Yes. You're right. I set breakpoint mode to SOFT. But after I change the breakpoint to HARD, I have the following problem. There is only one hard breakpoint that can be set at a time. (gdb) target remote rslab129:9124 Remote debugging using rslab129:9124 0xfff07550 in ?? () (gdb) mon ci (gdb) b cpu_init_f Breakpoint 1 at 0xffe093c0: file cpu_init.c, line 93. (gdb) c Continuing. warning: Cannot insert breakpoint 1: Error accessing memory address 0xffe093c0: Unknown error 4294967295. (gdb) My target setup is as follows. [TARGET] CPUTYPE 8240 ;the CPU type (603EV,750,8240,8260) JTAGCLOCK 0 ;use 16 MHz JTAG clock WORKSPACE 0x00000000 ;workspace in target RAM for fast download BDIMODE AGENT ;the BDI working mode (LOADONLY | AGENT | GATEWAY) BREAKMODE HARD ;SOFT or HARD, HARD uses PPC hardware breakpoint ;VECTOR CATCH ;catch unhandled exceptions DCACHE NOFLUSH ;data cache flushing (FLUSH | NOFLUSH) MMU XLAT ; translate effective to physical address PTBASE 0x000000f0 ; Here is the pointer to the page table pointers Thanks a lot, -Shawn. > No, it's not. You probably forgot to configure your BDI2000 to > use > hardware breakpoints; and software breakpoints won't work as > GDB > cannot write a trap instruction at the breakpoint address. Try: > > gdb$ mon break hard > > before setting the breakpoint. __________________________________ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail