* debugging IBM405GP with abatron bdi 2000
@ 2003-08-05 15:52 Steven Blakeslee
0 siblings, 0 replies; 3+ messages in thread
From: Steven Blakeslee @ 2003-08-05 15:52 UTC (permalink / raw)
To: 'linuxppc-embedded@lists.linuxppc.org'
Has anyone used an Abatron BDI 2000 to debug Linux on an IBM 405GP
processor? I am using an Embedded Planet ep405 with the latest
linuxppc_2_4_devel tree. Linux boots fine on the board until I connect the
Abatron. When the Abatron is connected I can step through the code until
the rfi command in head_4xx.S then I get the following.
- TARGET: target has entered debug mode
Target state : debug mode
Debug entry cause : JTAG stop request
Current PC : 0x00000700
Current CR : 0x28004088
Current MSR : 0x00000000
Current LR : 0x000007a8
# Step timeout detected
Below is the config file I am using. I would appreciate any adive anyone
can offer.
[INIT]
;
WSPR 954 0x00000000 ;DCWR: Disable data cache write-thru
WSPR 1018 0x00000000 ;DCCR: Disable data cache
WSPR 1019 0x00000000 ;ICCR: Disable instruction cache
WSPR 982 0x00000000 ;EVPR: Exception Vector Table @0x00000000
;
; Setup TCR (Timer Control Register)
WSPR 986 0x00400000
; Setup MMU info
WM32 0x000000f0 0x00000000 ;invalidate page table base
;
;
[TARGET]
JTAGCLOCK 0 ;use 16 MHz JTAG clock
CPUTYPE 405 ;the used target CPU type
BDIMODE AGENT ;the BDI working mode (LOADONLY | AGENT)
BREAKMODE SOFT ;SOFT or HARD, HARD uses PPC
hardware breakpoint
STEPMODE JTAG ;JTAG or HWBP, HWPB uses one or two
hardware breakpoints
MMU XLAT 0xC0000000 ;enable virtual address mode
PTBASE 0x000000f0 ;here is the pointer to the page table
pointers
;
[HOST]
IP 10.0.0.198 ;Windows host
FILE rImage.srec
FORMAT SREC
LOAD MANUAL ;load code MANUAL or AUTO after reset
;
;
[REGS]
IDCR1 0x010 0x011 ;MEMCFGADR and MEMCFGDATA
IDCR2 0x012 0x013 ;EBCCFGADR and EBCCFGDATA
IDCR3 0x014 0x015 ;KIAR and KIDR
FILE defs/reg405gp.def
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread* RE: debugging IBM405GP with abatron bdi 2000
@ 2003-08-05 18:37 Steven Blakeslee
2003-08-05 19:12 ` Wolfgang Denk
0 siblings, 1 reply; 3+ messages in thread
From: Steven Blakeslee @ 2003-08-05 18:37 UTC (permalink / raw)
To: 'Chris Hallinan',
'linuxppc-embedded@lists.linuxppc.org'
I found a work around that would suggest the opposite. If I do the
following I can get Linux to boot with an Abatron connected.
1. Connect the board to the abatron and power up.
2. Wait for the configuration to complete.
3. Give the go command, the bootloader now runs.
4. Give the reset command in the bootloader, this causes a checkstop reset.
A checkstop reset sets most registers to their default values.
5. The bootloader loads a second time.
6. Download Linux and boot from bootloader.
This tells me that the abatron is doing some type of initialization other
than the config file. Whatever it is doing behind the scenes is causing a
problem after the rfi instruction.
-----Original Message-----
From: Chris Hallinan [mailto:clh@net1plus.com]
Sent: Tuesday, August 05, 2003 1:40 PM
To: Steven Blakeslee
Subject: RE: debugging IBM405GP with abatron bdi 2000
It is likely that your kernel is mucking with the debug registers in
the processor core. This is typically what happens if that is the
case... Just a thought...
> -----Original Message-----
> From: owner-linuxppc-embedded@lists.linuxppc.org
> [mailto:owner-linuxppc-embedded@lists.linuxppc.org]On
> Behalf Of Steven
> Blakeslee
> Sent: Tuesday, August 05, 2003 11:53 AM
> To: 'linuxppc-embedded@lists.linuxppc.org'
> Subject: debugging IBM405GP with abatron bdi 2000
>
>
>
> Has anyone used an Abatron BDI 2000 to debug Linux on an IBM 405GP
> processor? I am using an Embedded Planet ep405 with the latest
> linuxppc_2_4_devel tree. Linux boots fine on the board
> until I connect the
> Abatron. When the Abatron is connected I can step
> through the code until
> the rfi command in head_4xx.S then I get the following.
>
> - TARGET: target has entered debug mode
> Target state : debug mode
> Debug entry cause : JTAG stop request
> Current PC : 0x00000700
> Current CR : 0x28004088
> Current MSR : 0x00000000
> Current LR : 0x000007a8
> # Step timeout detected
>
>
> Below is the config file I am using. I would appreciate
> any adive anyone
> can offer.
>
>
> [INIT]
> ;
> WSPR 954 0x00000000 ;DCWR: Disable data cache write-thru
> WSPR 1018 0x00000000 ;DCCR: Disable data cache
> WSPR 1019 0x00000000 ;ICCR: Disable instruction cache
> WSPR 982 0x00000000 ;EVPR: Exception Vector
> Table @0x00000000
> ;
> ; Setup TCR (Timer Control Register)
> WSPR 986 0x00400000
> ; Setup MMU info
> WM32 0x000000f0 0x00000000 ;invalidate page table base
> ;
> ;
> [TARGET]
> JTAGCLOCK 0 ;use 16 MHz JTAG clock
> CPUTYPE 405 ;the used target CPU type
> BDIMODE AGENT ;the BDI working
> mode (LOADONLY | AGENT)
> BREAKMODE SOFT ;SOFT or HARD, HARD uses PPC
> hardware breakpoint
> STEPMODE JTAG ;JTAG or HWBP, HWPB
> uses one or two
> hardware breakpoints
> MMU XLAT 0xC0000000 ;enable virtual address mode
> PTBASE 0x000000f0 ;here is the pointer to the
> page table
> pointers
> ;
> [HOST]
> IP 10.0.0.198 ;Windows host
> FILE rImage.srec
> FORMAT SREC
> LOAD MANUAL ;load code MANUAL or AUTO
> after reset
> ;
> ;
> [REGS]
> IDCR1 0x010 0x011 ;MEMCFGADR and MEMCFGDATA
> IDCR2 0x012 0x013 ;EBCCFGADR and EBCCFGDATA
> IDCR3 0x014 0x015 ;KIAR and KIDR
> FILE defs/reg405gp.def
>
>
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: debugging IBM405GP with abatron bdi 2000
2003-08-05 18:37 Steven Blakeslee
@ 2003-08-05 19:12 ` Wolfgang Denk
0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2003-08-05 19:12 UTC (permalink / raw)
To: Steven Blakeslee; +Cc: linuxppc-embedded
In message <D73A25AA6E54D511AD74009027B1110F3C099A@ORION> you wrote:
>
> This tells me that the abatron is doing some type of initialization other
> than the config file. Whatever it is doing behind the scenes is causing a
> problem after the rfi instruction.
You cannot single step through some instructions, including rfi. This
has been discussed before, you may want to search the mailing list
archive.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
Perfection is reached, not when there is no longer anything to add,
but when there is no longer anything to take away.
- Antoine de Saint-Exupery
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-08-05 19:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-05 15:52 debugging IBM405GP with abatron bdi 2000 Steven Blakeslee
-- strict thread matches above, loose matches on Subject: below --
2003-08-05 18:37 Steven Blakeslee
2003-08-05 19:12 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox