From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 30 19:16:48 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2027B16A4CE for ; Mon, 30 Aug 2004 19:16:48 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 01BA843D48 for ; Mon, 30 Aug 2004 19:16:48 +0000 (GMT) (envelope-from julian@elischer.org) Received: from elischer.org (julian.vicor-nb.com [208.206.78.97]) by mail.vicor-nb.com (Postfix) with ESMTP id D80367A3D2; Mon, 30 Aug 2004 12:16:47 -0700 (PDT) Message-ID: <41337D1F.8030805@elischer.org> Date: Mon, 30 Aug 2004 12:16:47 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3.1) Gecko/20030516 X-Accept-Language: en, hu MIME-Version: 1.0 To: Stephan Uphoff References: <1093817592.8552.90.camel@nyx.slackdot.org> <1093820159.61235.81.camel@palm.tree.com> <1093835972.6769.55.camel@localhost> <1093885212.61235.102.camel@palm.tree.com> In-Reply-To: <1093885212.61235.102.camel@palm.tree.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org cc: Rob Deker Subject: Re: Serial consoles and remote GDB X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2004 19:16:48 -0000 Stephan Uphoff wrote: >Are you sure that your serial line is configured with the >right baud rate? > >I also encountered something like this when additional programs >were reading form the serial line and stole characters from gdb. >( terminal emulators for testing, getty? ...) > >Your /boot/loader.conf should look somewhat like: > >console=comconsole > >hint.sio.1.flags=0x80 > try 0xC0 > >boot_ddb=1 >boot_gdb=1 >boot_verbose=1 > >Good luck > Stephan > > >On Sun, 2004-08-29 at 23:19, Rob Deker wrote: > > >>On Sun, 2004-08-29 at 18:55, Stephan Uphoff wrote: >> >> >>>Hi, >>> >>>Try the patch from kern/65278 >>> >>>http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/65278 >>> >>> >>> >>Thanks, >> >> Looks like that did some good (I have my console back now), but when i >>either "boot -g" or break into ddb and give it a "gdb" command, then try >>and connect gdb to it on the other serial port, gdb seems to not be able >>to connect to it (and I consequently have to power cycle the machine to >>un-hang it). What I get from gdb is the following: >> >>bash-2.05b$ sudo gdb -k kernel.debug >>GNU gdb 5.2.1 (FreeBSD) >>Copyright 2002 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-unknown-freebsd"... >>(kgdb) target remote /dev/cuaa4 >>Remote debugging using /dev/cuaa4 >>Ignoring packet error, continuing... >>Ignoring packet error, continuing... >>Ignoring packet error, continuing... >>Couldn't establish connection to remote target >>Malformed response to offset query, timeout >> >>thanks for the help, >> >>-d >> >> > >_______________________________________________ >freebsd-hackers@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-hackers >To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > >