From owner-freebsd-hackers Mon Nov 15 15: 0:47 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by hub.freebsd.org (Postfix) with ESMTP id C13481518A for ; Mon, 15 Nov 1999 15:00:44 -0800 (PST) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.9.3/8.9.1) id QAA58590; Mon, 15 Nov 1999 16:00:31 -0700 (MST) (envelope-from ken) Message-Id: <199911152300.QAA58590@panzer.kdm.org> Subject: Re: Set the baud rate on remote debugging In-Reply-To: <19991115175303.59865@mojave.sitaranetworks.com> from Greg Lehey at "Nov 15, 1999 05:53:03 pm" To: grog@lemis.com (Greg Lehey) Date: Mon, 15 Nov 1999 16:00:31 -0700 (MST) Cc: zzhang@cs.binghamton.edu (Zhihui Zhang), freebsd-hackers@FreeBSD.ORG From: "Kenneth D. Merry" X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Greg Lehey wrote... > On Monday, 15 November 1999 at 15:13:53 -0700, Kenneth D. Merry wrote: > > Zhihui Zhang wrote... > >> > >> I have set up a remote debugging environment. But I think default 9600 > >> bps is slow. I can use "set remotebaud 19200" on the debugging machine > >> side. How can I set the baud rate on the target machine that is running > >> the debugged kernel? (I press CTRL+ESC+ALT to drop to DDB mode and find > >> no command to set the baud rate). > >> > >> Any help is appreciated. > > > > Use the CONSPEED option in the kernel config file on the target machine. > > e.g.: > > > > options CONSPEED=115200 > > I'm planning to modify ddb to specify the bit rate as a parameter to > the gdb command: > > db> gdb 19200 > Next trap will enter GDB remote protocol mode at 19200 bps > > Comments? It might also be nice to have it tuneable as a kernel variable from the loader and a sysctl variable. Oh, I see it's already available as the 'machdep.conspeed' sysctl variable. Obviously, specifying the baud rate at the ddb prompt should override any previous baud rate setting. Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message