From owner-freebsd-hackers Mon Nov 15 14:59:40 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from bingnet2.cc.binghamton.edu (bingnet2.cc.binghamton.edu [128.226.1.18]) by hub.freebsd.org (Postfix) with ESMTP id C1ACB15189 for ; Mon, 15 Nov 1999 14:59:37 -0800 (PST) (envelope-from zzhang@cs.binghamton.edu) Received: from sol.cs.binghamton.edu (cs1-gw.cs.binghamton.edu [128.226.171.72]) by bingnet2.cc.binghamton.edu (8.9.3/8.9.3) with SMTP id RAA08807; Mon, 15 Nov 1999 17:59:17 -0500 (EST) Date: Mon, 15 Nov 1999 16:46:50 -0500 (EST) From: Zhihui Zhang To: Greg Lehey Cc: "Kenneth D. Merry" , freebsd-hackers@FreeBSD.ORG Subject: Re: Set the baud rate on remote debugging In-Reply-To: <19991115175303.59865@mojave.sitaranetworks.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 15 Nov 1999, 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? > That will be useful. I have just found out that I can use sysctl -w machdep.conspeed=19200 to achieve this. But I can not go higher than 19200. -Zhihui To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message