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