Hi ,
I am trying to setup KGDB over ethernet. when i connect to the target machine with the command target remote udp:192.168.0.2:6443, i am getting the error such as "Kernel panic - not syncing: No init found. Try passing init= option to kernel."
The following is the actual inputs and outputs while i am doing this.
Script started on Sat 06 May 2006 07:53:09 AM IST
]0;[EMAIL PROTECTED]:/home/[EMAIL PROTECTED] linux-2.6.15.5]# gdb ./vmlinux
GNU gdb Red Hat Linux (5.3post-0.20021129.18rh)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...
(gdb) target remote udp:192.178 68.0.2: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.0.2:6443
breakpoint () at kernel/kgdb.c:1876
1876 atomic_set(&kgdb_setting_breakpoint, 0);
warning: shared library handler failed to enable breakpoint
(gdb) continue
Continuing.
[ 46.793869] md: Autodetecting RAID arrays.
[ 46.794252] md: autorun ...
[ 46.795810] md: ... autorun DONE.
[ 46.836415] input: AT Translated Set 2 keyboard as /class/input/input0
[ 46.841316] kjournald starting. Commit interval 5 seconds
[ 46.842706] EXT3-fs: mounted filesystem with ordered data mode.
[ 46.843353] VFS: Mounted root (ext3 filesystem) readonly.
[ 46.844291] Freeing unused kernel memory: 224k freed
[ 46.845120] Warning: unable to open an initial console.
[ 46.854868] Kernel panic - not syncing: No init found. Try passing init= option to kernel.
[ 46.860542] [New Thread 1]
]0;[EMAIL PROTECTED]:/home/[EMAIL PROTECTED] linux-2.6.15.5]# gdb ./vmlinux
GNU gdb Red Hat Linux (5.3post-0.20021129.18rh)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...
(gdb) target remote udp:192.178 68.0.2: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.0.2:6443
breakpoint () at kernel/kgdb.c:1876
1876 atomic_set(&kgdb_setting_breakpoint, 0);
warning: shared library handler failed to enable breakpoint
(gdb) continue
Continuing.
[ 46.793869] md: Autodetecting RAID arrays.
[ 46.794252] md: autorun ...
[ 46.795810] md: ... autorun DONE.
[ 46.836415] input: AT Translated Set 2 keyboard as /class/input/input0
[ 46.841316] kjournald starting. Commit interval 5 seconds
[ 46.842706] EXT3-fs: mounted filesystem with ordered data mode.
[ 46.843353] VFS: Mounted root (ext3 filesystem) readonly.
[ 46.844291] Freeing unused kernel memory: 224k freed
[ 46.845120] Warning: unable to open an initial console.
[ 46.854868] Kernel panic - not syncing: No init found. Try passing init= option to kernel.
[ 46.860542] [New Thread 1]
Program received signal SIGTRAP, Trace/breakpoint trap.
breakpoint () at kernel/kgdb.c:1876
1876 atomic_set(&kgdb_setting_breakpoint, 0);
(gdb) quit
The program is running. Exit anyway? (y or n) y
]0;[EMAIL PROTECTED]:/home/[EMAIL PROTECTED] linux-2.6.15.5]# exit
breakpoint () at kernel/kgdb.c:1876
1876 atomic_set(&kgdb_setting_breakpoint, 0);
(gdb) quit
The program is running. Exit anyway? (y or n) y
]0;[EMAIL PROTECTED]:/home/[EMAIL PROTECTED] linux-2.6.15.5]# exit
Script done on Sat 06 May 2006 07:54:21 AM IST
I have statically linked the ex3 file system. Please help me on this regard.
Reagards,
Prasad
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
