From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.180]) by ozlabs.org (Postfix) with ESMTP id 2E382DE0A3 for ; Sat, 28 Jun 2008 06:46:26 +1000 (EST) Received: by py-out-1112.google.com with SMTP id z59so224650pyg.27 for ; Fri, 27 Jun 2008 13:46:24 -0700 (PDT) Message-ID: <4e69a5150806271346m77c26d2cp8d583ae87d13c235@mail.gmail.com> Date: Fri, 27 Jun 2008 13:46:22 -0700 From: "SEEMA pm" To: linuxppc-dev@ozlabs.org Subject: Re: issue with kgdb on ppc In-Reply-To: <4e69a5150806261453n1196b5b8va61e330ea57bb00e@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_17546_29772835.1214599584112" References: <4e69a5150806261453n1196b5b8va61e330ea57bb00e@mail.gmail.com> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , ------=_Part_17546_29772835.1214599584112 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello I got the gianfar.c patch and enabled CONFIG_NETCONSOLE and now i'm able to connect kgdb and gdb. But when i try to cont in gdb, the system tries to load the rootfs but fails and trys to reboot. Can someone please provide some help on this. dump: (gdb) c Continuing. RAMDISK: Compressed image found at block 0 VFS: Mounted root (ext2 filesystem). Root-NFS: No NFS server available, giving up. VFS: Unable to mount root fs via NFS, trying floppy. VFS: Cannot open root device "ram=rw" or unknown-block(2,0) Please append a correct "root=" boot option Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0) total: used: free: shared: buffers: cached: Mem: 1060827136 226791424 834035712 0 219955200 8192 Swap: 0 0 0 MemTotal: 1035964 kB MemFree: 814488 kB MemShared: 0 kB Buffers: 214800 kB Cached: 8 kB SwapCached: 0 kB Active: 0 kB Inactive: 0 kB HighTotal: 1035964 kB HighFree: 814488 kB LowTotal: 0 kB LowFree: 0 kB SwapTotal: 8192 kB SwapFree: 0 kB [New Thread 1] Program received signal SIGTRAP, Trace/breakpoint trap. 0x8003c0d8 in breakpoint () at kernel/kgdb.c:1773 1773 wmb(); (gdb) Thanks On Thu, Jun 26, 2008 at 2:53 PM, SEEMA pm wrote: > Hello > > I'm trying to get kgdb working on a mpc8540 based target machine. I took > the latest patches which are for 2.6.13(mine is 2.6.11) and build and made > changes to config by enabling : > - Compile the kernel with debug info > - KGDB: kernel debugging with remote gdb > - KGDB: Console messages through gdb > - Method for KGDB communication (KGDB: On ethernet - in kernel) > > I also added bootargs through uboot as: > kgdboe=6443@10.110.1.2/,6442@10.110.1.31/00:0F:1F:6E:F3:30 kgdbwait > > Now, I'm getting the messages: > netconsole: not configured, aborting > kgdboe: eth0 doesn't support polling, aborting. > kgdboe: netpoll_setup failed kgdboe failed > > And after some lines; > > kgdb: Defering I/O setup to kernel module. > kgdb: Waiting for connection from remote gdb... > But then it goes to load ramdisk. > > Can someone please provide some help on this > > thanks > > > ------=_Part_17546_29772835.1214599584112 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello

I got the gianfar.c patch and  enabled CONFIG_NETCONSOLE and now i'm able to connect kgdb and gdb.
But when i try to cont in gdb, the system tries to load the rootfs but fails and trys to reboot. Can someone please provide some help on this.
dump:

(gdb) c
Continuing.
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem).
Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "ram=rw" or unknown-block(2,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
        total:    used:    free:  shared: buffers:  cached:
Mem:  1060827136 226791424 834035712        0 219955200     8192
Swap:        0        0        0
MemTotal:      1035964 kB
MemFree:        814488 kB
MemShared:           0 kB
Buffers:        214800 kB
Cached:              8 kB
SwapCached:          0 kB
Active:              0 kB
Inactive:            0 kB
HighTotal:     1035964 kB
HighFree:       814488 kB
LowTotal:            0 kB
LowFree:             0 kB
SwapTotal:        8192 kB
SwapFree:            0 kB
 [New Thread 1]

Program received signal SIGTRAP, Trace/breakpoint trap.
0x8003c0d8 in breakpoint () at kernel/kgdb.c:1773
1773            wmb();
(gdb)

Thanks

On Thu, Jun 26, 2008 at 2:53 PM, SEEMA pm <seema.pm@gmail.com> wrote:
Hello

I'm trying to get kgdb working on a mpc8540 based target machine. I took the latest patches which are for 2.6.13(mine is 2.6.11) and build and made changes to config by enabling :
- Compile the kernel with debug info
- KGDB: kernel debugging with remote gdb
- KGDB: Console messages through gdb
- Method for KGDB communication (KGDB: On ethernet - in kernel)

I also added bootargs through uboot as:
kgdboe=6443@10.110.1.2/,6442@10.110.1.31/00:0F:1F:6E:F3:30 kgdbwait

Now, I'm getting the messages:
netconsole: not configured, aborting
kgdboe: eth0 doesn't support polling, aborting.
kgdboe: netpoll_setup failed kgdboe failed
 
And after some lines;

kgdb: Defering I/O setup to kernel module.
kgdb: Waiting for connection from remote gdb...
But then it goes to load ramdisk.

Can someone please provide some help on this

thanks



------=_Part_17546_29772835.1214599584112--