Date: Wed, 17 Nov 1999 16:24:11 -0500 From: Greg Lehey <grog@mojave.sitaranetworks.com> To: Doug Rabson <dfr@nlsystems.com> Cc: Zhihui Zhang <zzhang@cs.binghamton.edu>, "Kenneth D. Merry" <ken@kdm.org>, freebsd-hackers@freebsd.org Subject: Re: Set the baud rate on remote debugging Message-ID: <19991117162411.27609@mojave.sitaranetworks.com> In-Reply-To: <Pine.BSF.4.10.9911172110300.318-100000@salmon.nlsystems.com>; from Doug Rabson on Wed, Nov 17, 1999 at 09:10:58PM %2B0000 References: <19991116205031.07184@mojave.sitaranetworks.com> <Pine.BSF.4.10.9911172110300.318-100000@salmon.nlsystems.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday, 17 November 1999 at 21:10:58 +0000, Doug Rabson wrote: > On Tue, 16 Nov 1999, Greg Lehey wrote: > >> On Monday, 15 November 1999 at 16:46:50 -0500, Zhihui Zhang wrote: >>> >>> 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. >> >> I set 38400 today, but it ran very badly. I think 19200 is probably >> as high as you want to go, at least until somebody fixes the buffering >> in the UARTs. > > I've always used 57600 and it seems to work fine... I think it depends on your UART hardware. Greg -- Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991117162411.27609>