From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: MIME-Version: 1.0 In-Reply-To: <6213bc560903280810t73f821ceufb7711a70619d396@mail.gmail.com> References: <6213bc560903280810t73f821ceufb7711a70619d396@mail.gmail.com> Date: Sat, 28 Mar 2009 21:00:23 +0530 Message-ID: <6213bc560903280830o704164cfy59760993a2ce7650@mail.gmail.com> Subject: Re: KGDB8250 doesn't hit KGDB breakpoint in PowerPC-440 From: srikanth krishnakar To: Linuxppc-dev@ozlabs.org Content-Type: multipart/alternative; boundary=000e0cd2dc582582b904662f875b List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --000e0cd2dc582582b904662f875b Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi, The simple" config is deprecated , when the MMIO support was added to the KGDB 8250 driver. I have to use the syntax: kgdb8250=,
,, Thanks Srikanth On Sat, Mar 28, 2009 at 8:40 PM, srikanth krishnakar wrote: > Hi all, > > I am using KGDB on powerpc-440. This is tested on* Linux-2.6.27*, the > following arguments to KGDB showing init_delay of 8250 as shown below: > > Target Side : > > ----------------------------- > > Linux/PowerPC load: console=ttyS0 ip=bootp root=/dev/nfs rw > kgdb8250=ttyS0,9600 kgdbwait > Finalizing device tree... flat tree at 0x5ad300 > > *kgdb8250: ttyS0 init delayed, use io/mmio/mbase syntax for early > init. * > ..... > ..... > ....... > ...... > ...... > ....... > ...... > console [ttyS0] enabled > kgdb: Registered I/O driver kgdb8250. > > Stops here -> > ------------------------------- > > Host Side: > > (gdb) target remote > /dev/ttyS0 > Remote debugging using > /dev/ttyS0 > 0xc01a760c in mem_serial_in (p=0xc036e050, offset= out>) > at /opt/linux-2.6.29/arch/powerpc/include/asm/io.h:153 > 153 DEF_MMIO_IN_BE(in_8, 8, lbz); > > (gdb) info threads > 14 Thread 109 (nfsiod) __switch_to (prev=, > new=0xcf8227f0) at arch/powerpc/kernel/process.c:412 > 13 Thread 108 (aio/0) __switch_to (prev=, > new=0xcf8227f0) at arch/powerpc/kernel/process.c:412 > 12 Thread 107 (kswapd0) __switch_to (prev=, > new=0xcf8227f0) at arch/powerpc/kernel/process.c:412 > 11 Thread 106 (pdflush) __switch_to (prev=, > new=0xcf8227f0) at arch/powerpc/kernel/process.c:412 > 10 Thread 105 (pdflush) __switch_to (prev=, > new=0xcf8227f0) at arch/powerpc/kernel/process.c:412 > > > ******************** > But when I say Continue -> > > (gdb) c > Continuing. > *warning: Remote failure reply: E22 * > > ------------------------ > > Can anybody correct me, where I am going wrong. I am not able to hit KGDB > breakpoint. ? > > > > -- > Regards > Srikanth Krishnakar > ********************** > -- "The Good You Do, The Best You GET" Regards Srikanth Krishnakar ********************** --000e0cd2dc582582b904662f875b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,

The simple" config is deprecated , when the MMIO support wa= s added
to the KGDB 8250 driver. I have to use the syntax:

kgdb8250=3D<io or mmio>,<address>,<baud rate>,<irq>=

Thanks
Srikanth


On Sat, Ma= r 28, 2009 at 8:40 PM, srikanth krishnakar <skrishnakar@gmail.com> wrote:<= br>
Hi all,

I = am using KGDB on powerpc-440. This is tested on Linux-2.6.27, the fo= llowing arguments to KGDB showing init_delay of 8250 as shown below:

Target Side :

-----------------------------

Linux/PowerPC load: console=3DttyS0 ip=3Dbootp root=3D/dev/nfs rw kgdb8= 250=3DttyS0,9600 kgdbwait
Finalizing device tree... flat tree at 0x5ad30= 0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0
=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0
kgdb8250: ttyS0 init delayed, use io/mmio/mbase syntax for= early init.=A0=A0=A0=A0
.....
.....
.......
......
......
.......
......
conso= le [ttyS0] enabled
kgdb: Registered I/O driver kgdb8250.

Stops he= re ->
-------------------------------

Host Side= :

(gdb) target remote /dev/ttyS0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
Remote debugging using /dev/ttyS0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0
0= xc01a760c in mem_serial_in (p=3D0xc036e050, offset=3D<value optimized ou= t>)=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0
=A0=A0=A0 at /opt/linux-2.6.29/arch/powerpc/include/asm/io.h:153=A0=A0=A0= =A0=A0=A0=A0
153=A0=A0=A0=A0 DEF_MMIO_IN_BE(in_8,=A0=A0=A0=A0 8, lbz);= =A0=A0=A0=A0
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0
(gdb) info threads=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0
14 Thread 109 (nfsiod)=A0 __switch_to (prev=3D<value optimized out>, = new=3D0xcf8227f0) at arch/powerpc/kernel/process.c:412
=A0 13 Thread 108= (aio/0)=A0 __switch_to (prev=3D<value optimized out>, new=3D0xcf8227= f0) at arch/powerpc/kernel/process.c:412
=A0 12 Thread 107 (kswapd0)=A0 __switch_to (prev=3D<value optimized out&= gt;, new=3D0xcf8227f0) at arch/powerpc/kernel/process.c:412
=A0 11 Threa= d 106 (pdflush)=A0 __switch_to (prev=3D<value optimized out>, new=3D0= xcf8227f0) at arch/powerpc/kernel/process.c:412
=A0 10 Thread 105 (pdflush)=A0 __switch_to (prev=3D<value optimized out&= gt;, new=3D0xcf8227f0) at arch/powerpc/kernel/process.c:412


****= ****************
But when I say Continue -> <Got the Error as belo= w >

(gdb) c=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0
Continuing.=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0
warning: Remo= te failure reply: E22=A0=A0=A0=A0=A0=A0=A0

------------------------

Can anybody correct me, where I am goin= g wrong. I am not able to hit KGDB breakpoint. ?



--
Regards
Srikanth Krishnak= ar
**********************



--
"The Good You Do, = The Best You GET"

Regards
Srikanth Krishnakar
***********= ***********
--000e0cd2dc582582b904662f875b--