Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Feb 2005 22:46:29 -0500
From:      Stephan Uphoff <ups@tree.com>
To:        Gerald Heinig <gheinig@syskonnect.de>
Cc:        hackers@freebsd.org
Subject:   Re: Firewire blues
Message-ID:  <1108352789.6309.9948.camel@palm.tree.com>
In-Reply-To: <420B938D.2040708@syskonnect.de>
References:  <420731DD.3050206@syskonnect.de> <42088232.1030001@syskonnect.de> <1107888844.6309.221.camel@palm.tree.com> <1107964038.6309.1137.camel@palm.tree.com> <420B938D.2040708@syskonnect.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 2005-02-10 at 12:02, Gerald Heinig wrote:
> Stephan Uphoff wrote:
> > Once I linked in dcons, dcons_crom and firewire into the kernel
> > everything worked. (I think only dcons is really needed - maybe a link
> > set issue?)
> > I only used the gdb stub method.
> > 
> > Can you send me your dmesg? (After you linked the dcons stuff into the
> > kernel)
> 
> Another thing: what system are you on? -current?
> I'm using 5.3-RELEASE and I've noticed that a lot of the commands and 
> responses in the HowTo are different to my system.
> Could that be the problem?
> 
> Cheers,
> Gerald

OK - I finally managed to try this on a newly installed 5.3-RELEASE.

I copied the GENERIC config file (to GENERIC.debug) and added a few
lines

 diff -u GENERIC GENERIC.debug
--- GENERIC     Sun Oct 24 14:02:52 2004
+++ GENERIC.debug       Mon Feb 14 03:15:21 2005
@@ -24,6 +24,14 @@
 cpu            I686_CPU
 ident          GENERIC
 
+makeoptions     DEBUG=-g                # Build kernel with gdb(1)
debug symbols
+options         KDB                     # Enable kernel debugger
support.
+options         DDB                     # Support DDB.
+options         GDB                     # Support remote GDB.
+options         ALT_BREAK_TO_DEBUGGER
+device dcons
+device dcons_crom
+
 # To statically compile in device wiring instead of /boot/device.hints
 #hints         "GENERIC.hints"         # Default places to look for
devices.
 

Then configured/compiled/installed the GENERIC.debug kernel.
Copied the kernel.debug file in the GENERIC.debug compile directory to
the debug station and rebooted the target machine.

After reboot I set the default debugger to gdb

	target# sysctl -w debug.kdb.current=gdb
and entered the debugger
	target# sysctl -w debug.kdb.enter=1

	
On the debugging station I entered
	debug 1# dconschat -br -G 5555 -t <firewire address of target>

and then in another window
	debug 2#   kgdb -r :5555 kernel.debug

And it just worked for me.
I have to admit that my debugging machine is not 5.3 .. but I believe I
used the same setup with pre 5.3 userland before.

Let me know if you can repeat my steps.
If not then I can set up a 5.3 debugging station in the next days.

Stephan





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1108352789.6309.9948.camel>