From: sudheer <urwithsudheer@gmail.com>
To: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Cc: kernelnewbies@nl.linux.org, linuxppc-embedded@ozlabs.org
Subject: Re: regarding kgdb in ppc
Date: Mon, 29 Jan 2007 17:08:16 +0530 [thread overview]
Message-ID: <45BDDCA8.5020505@gmail.com> (raw)
In-Reply-To: <45B62294.5020900@ru.mvista.com>
Hello Sergie
Thanks for the reply.
>> I gave the following bootargs:
>> console=ttyS0,115200 root=/dev/ram rw
>> kgdboe=@192.168.3.80/,@192.168.3.14/00:08:A1:84:EF:CA kgdbwait
>
> You don't have to specify the remote MAC, IIUC.
When i dont give the mac address, the mac address all FFs(default) is
considered. So am giving the mac address too, only then its working
properly.
I have added few lines of code in driver/net/gianfar.c
void gfar_poll_gianfar(struct net_device *dev )
{
disable_irq(dev->irq);
gfar_interrupt(dev->irq, dev, NULL);
enable_irq(dev->irq);
}
Now am able to boot the target kernel without any error. kgdb waits for gdb connection.
>> kgdboe: local port 6443
>> kgdboe: local IP 192.168.3.80
>> kgdboe: interface eth0
>> kgdboe: remote port 6442
>> kgdboe: remote IP 192.168.3.14
>> kgdboe: remote ethernet address 00:08:a1:84:ef:ca
>> kgdboe: eth0 doesn't support polling, aborting.
>> kgdboe: netpoll_setup failed kgdboe failed
>
> Have you backported the gianfar netpoll patch from 2.6.20-rc1?
I haven't backported the 2.6.20-rc1. As there are many patches under that tree , i didnt try for it and could not know which one to add.
I could get only the below when googled.
http://kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.20-rc1/2.6.20-rc1-mm1/
After booting the target kernel, it waits for the gdb connection.
At this point of time, i could not ping to the target kernel. The ping says unreachable.
On the host side :
[root@Sudheer linux-2.6.15.5]# powerpc-eabi-gdb ./vmlinux
GNU gdb 6.3
<gdb stuff>
(gdb) target remote udp:192.168.3.80:6443
warning: The remote protocol may be unreliable over UDP.
warning: Some events may be lost, rendering further debugging impossible.
Remote debugging using udp:192.168.3.80:6443
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Couldn't establish connection to remote target
Quit
(gdb)
The complete dump on target side is as follows:
<tftp, booting >
mpc8540ads_init(): exit
id mach(): done
MMU:enter
MMU:hw init
MMU:mapin
MMU:setio
MMU:exit
setup_arch: enter
setup_arch: bootmem
mpc8540ads_setup_arch()
arch: exit
openpic: enter
Memory CAM mapping: CAM0=256Mb, CAM1=0Mb, CAM2=0Mb residual: 0Mb
Linux version 2.6.15.5 (root@Sudheer) (gcc version 3.4.4) #48 Mon Jan 29 14:02:38
IST 2007
KGDB cannot initialize I/O yet.
Built 1 zonelists
Kernel command line: console=ttyS0,115200 root=/dev/ram rw
kgdboe=@192.168.3.80/,@192.168.3.14/00:08:A1:84:EF:CA kgdbwait
kgdboe: local port 6443
kgdboe: local IP 192.168.3.80
kgdboe: interface eth0
kgdboe: remote port 6442
kgdboe: remote IP 192.168.3.14
kgdboe: remote ethernet address 00:08:a1:84:ef:ca
OpenPIC Version 1.2 (1 CPUs and 60 IRQ sources) at fcfbb000
PID hash table entries: 2048 (order: 11, 32768 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 255744k available (1596k kernel code, 376k data, 120k init, 0k highmem)
Mount-cache hash table entries: 512
checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
Freeing initrd memory: 1682k freed
NET: Registered protocol family 16
PCI: Probing PCI hardware
Generic PHY: Registered new driver
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
Generic RTC Driver v1.07
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
serial8250.0: ttyS0 at MMIO map 0xfdf04500 mem 0xfcffc500 (irq = 26) is a 16550A
serial8250.0: ttyS1 at MMIO map 0xfdf04600 mem 0xfcffb600 (irq = 26) is a 16550A
RAMDISK driver initialized: 16 RAM disks of 32768K size 1024 blocksize
loop: loaded (max 8 devices)
Gianfar MII Bus: probed
eth0: Gianfar Ethernet Controller Version 1.2, 00:01:af:07:9b:8a
eth0: Running with NAPI enabled
eth0: 256/256 RX/TX BD ring size
eth1: Gianfar Ethernet Controller Version 1.2, 00:01:af:07:9b:8b
eth1: Running with NAPI enabled
eth1: 256/256 RX/TX BD ring size
eth2: Gianfar Ethernet Controller Version 1.2, 7f:68:36:82:b9:f7
eth2: Running with NAPI enabled
eth2: 256/256 RX/TX BD ring size
netconsole: not configured, aborting
kgdboe: local port 6443
kgdboe: local IP 192.168.3.80
kgdboe: interface eth0
kgdboe: remote port 6442
kgdboe: remote IP 192.168.3.14
kgdboe: remote ethernet address 00:08:a1:84:ef:ca
kgdboe: device eth0 not up yet, forcing it
kgdboe: carrier detect appears untrustworthy, waiting 4 seconds
phy0:7: Link is Up - 100/Full
kgdboe: debugging over ethernet enabled
i2c /dev entries driver
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 4, 65536 bytes)
TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
kgdb: Waiting for connection from remote gdb...
Waiting for connection from remote gdb...
>
>> Thanks
>> Sudheer
>
> WBR, Sergei
>
next prev parent reply other threads:[~2007-01-29 11:38 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-28 16:20 regarding kgdb in ppc Anumolu Sudheer
2006-11-30 4:33 ` Anumolu Sudheer
[not found] ` <d16b1c80611300036x36ec0009r2eb20ebbc6966a97@mail.gmail.com>
[not found] ` <12c9fc1a0611300924r406e95acie5c2053c1433ab33@mail.gmail.com>
[not found] ` <d16b1c80611301101n5f9ea44died47d2ff1bac4221@mail.gmail.com>
[not found] ` <12c9fc1a0611302029h36f29943s119f8ad70b95f2c4@mail.gmail.com>
[not found] ` <12c9fc1a0612010331p2c33c048j1af6006deda14abb@mail.gmail.com>
[not found] ` <d16b1c80612010540k7600f0e1n92fadd3d539d75bf@mail.gmail.com>
[not found] ` <12c9fc1a0612040805p64f23a7bj42fd27891294dfc2@mail.gmail.com>
2006-12-24 8:20 ` sudheer
2006-12-27 14:18 ` sudheer
2006-12-29 0:34 ` Reeve Yang
2006-12-29 1:02 ` Vijay Sampath
2006-12-30 11:27 ` sudheer
2006-12-31 1:53 ` Vijay Sampath
2007-01-23 6:00 ` sudheer
2007-01-23 8:49 ` Vitaly Bordug
2007-01-23 14:47 ` sudheer
2007-01-23 14:58 ` Sergei Shtylyov
2007-01-29 11:38 ` sudheer [this message]
2007-01-29 13:00 ` Sergei Shtylyov
2007-01-31 3:39 ` sudheer
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=45BDDCA8.5020505@gmail.com \
--to=urwithsudheer@gmail.com \
--cc=kernelnewbies@nl.linux.org \
--cc=linuxppc-embedded@ozlabs.org \
--cc=sshtylyov@ru.mvista.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.