Remote kernel debugging

Please help me in remote kernel debugging using vmware.

I did the following things:

Code:
$ cd /usr/src/sys/i386/conf/
$ cp GENERIC MYKERNEL

On your development machine, open the configuration file in your favorite editor (vi):

$ vi /usr/src/sys/i386/conf/MYKERNEL

Add the following lines, as follows:
options ddb
#This line will add the debugger into the kernel after the kernel compilation. 
		
makeoptions debug = -g
#This line will tell the compiler to add debugging information into the new compiled 
#kernel image, which you are going to put on target machine.

in MYKERNEL:

makeoptions	DEBUG=-g

options		DDB
options		GDB

Then edit "boot/device.hints":

hint.uart.0.flags="0x00080"

# cd /usr/src
# make buildkernel KERNCONF=MYKERNEL
# make installkernel KERNCONF=MYKERNEL

The host Setup:

# cd /usr/obj
# mount /remote/usr

[CODE]Error: "mount: /remote/usr: unknown special file or file system"

target:

# make buildkernel KERNCONF=MYKERNEL
# make installkernel KERNCONF=MYKERNEL
# cd /boot/kernel
# strip -x *

Code:
Error : unknown file format
# shutdown -r now

[/code]

What should I do now? Please help.

I have also checked the sio drivers but the current version of freebsd FreeBSD seems to be handling this using uart only.
 
Read the sign-up email you received, and format your posts. I have no idea which part of that post was a quote, written by you, or written by someone else. So I had to guess.
 
Formatted query :

I configured the target machine as follows


Code:
$cd /usr/src/sys/i386/conf/
$cp GENERIC MYKERNEL

MYKERNEL

Code:
makeoptions	DEBUG=-g
options		KDB
options		DDB
options		GDB


/boot/device.hints
Code:
hint.uart.0.flags="0x00080"


Code:
# cd /usr/src
# make buildkernel KERNCONF=MYKERNEL
# make installkernel KERNCONF=MYKERNEL
# shutdown -r now


Now please tell me how to configure the host and proceed further!
I'm working on VMware workstation.
 
Back
Top