From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 30 01:47:15 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 F3B8216A4CE for ; Mon, 30 Aug 2004 01:47:14 +0000 (GMT) Received: from web53310.mail.yahoo.com (web53310.mail.yahoo.com [206.190.39.239]) by mx1.FreeBSD.org (Postfix) with SMTP id 793A843D53 for ; Mon, 30 Aug 2004 01:47:14 +0000 (GMT) (envelope-from jiafu_he@yahoo.com) Message-ID: <20040830014713.39877.qmail@web53310.mail.yahoo.com> Received: from [151.196.46.2] by web53310.mail.yahoo.com via HTTP; Sun, 29 Aug 2004 18:47:13 PDT Date: Sun, 29 Aug 2004 18:47:13 -0700 (PDT) From: Jiafu He To: Rob Deker , freebsd-hackers@freebsd.org In-Reply-To: <1093817592.8552.90.camel@nyx.slackdot.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 01:47:15 -0000 --- Rob Deker wrote: > Hi folks, > > New to the list, so please bear with me if this is a question that's > been answered someplace before. I've been searching and can't seem to > find an answer. > > I'm doing some driver hacking w/ FreeBSD 5.2.1 and I've hit a spot > where > my life would be much easier if I had remote GDB for kernel > debugging. I > am however using a serial console on this box, and can't seem to get > things working so that I have console access to the box on one serial > port and remote gdb running on the other one. Is this possible? I've > tried various combinations of port flags for sio[01] in the > device.hints > file, but I'm not having much luck. I've tried toe following > combinations (with the following results): > > - hint.sio.0.flags="0x10" > hint.sio.1.flags="0x80" > > This yeilded a console initially at boot, but one I told the > loader > to go ahead and boot the kernel, all I got for output were repeated > 0x8e > chars (looks like an accented capital 'A'). > > so, i figured that it might possibly be that the lowest numbered port > should be the one with 0x80 set in flags, so I tried: > > - hint.sio.0.flags="0x80" > hint.sio.1.flags="0x10" > > This got me (again) a console up until kernel load, but after that > I > had NO output at all. > > I'm open to any suggestions. My problem is that the machines that are > the debug target and debug host are in my basement headless while my > office is upstairs and I really would like to avoid running up and > down > stairs every time I need to switch in and out of gdb mode in ddb (no > matter how much I might need the exercise ;) > Well. Would you try add one line "set console=comconsole" at the very beginning of /boot/loader.rc? JF __________________________________ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail