From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 9 04:39:53 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 DA19516A4CE for ; Thu, 9 Sep 2004 04:39:53 +0000 (GMT) Received: from ozlabs.org (ozlabs.org [203.10.76.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id 543F343D3F for ; Thu, 9 Sep 2004 04:39:53 +0000 (GMT) (envelope-from grog@lemis.com) Received: from blackwater.lemis.com (blackwater.lemis.com [192.109.197.80]) by ozlabs.org (Postfix) with ESMTP id 3927E2BDB5 for ; Thu, 9 Sep 2004 14:39:50 +1000 (EST) Received: by blackwater.lemis.com (Postfix, from userid 1004) id 48A6D511FA; Thu, 9 Sep 2004 14:09:47 +0930 (CST) Date: Thu, 9 Sep 2004 14:09:47 +0930 From: Greg 'groggy' Lehey To: Rob Deker Message-ID: <20040909043947.GV21117@wantadilla.lemis.com> 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> <41336DE5.4000000@slackdot.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="CSNFvL6ilyiKL/Hs" Content-Disposition: inline In-Reply-To: <41336DE5.4000000@slackdot.org> User-Agent: Mutt/1.4.1i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 cc: freebsd-hackers@freebsd.org cc: Stephan Uphoff 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: Thu, 09 Sep 2004 04:39:54 -0000 --CSNFvL6ilyiKL/Hs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Monday, 30 August 2004 at 14:11:49 -0400, Rob Deker wrote: > > Stephan Uphoff wrote: > >> Are you sure that your serial line is configured with the right >> baud rate? > > This may seem a stupid question, but how do I set the baudrate on > the port and in gdb? The default bit rate is 9600 bps. It would be nice to go higher, but there appear to be race conditions which make it unreliable. At least initially, you should run at 9600 bps; after that, there are ways of changing the rate that are themselves changing. Check the kernel configuration files and sysctl. To set the bit rate on the port depends on what software you're using. I still use cu, though it's now gone from the base system, along with its parent uucp. With cu you'd do: cu -s 9600 -l /dev/cuaa0 You can do something similar with tip, which is still around. If you have a firewire connection, that's *much* better. Before you say "no, I don't have that", consider that firewire hardware is very cheap. There's some stuff about it in http://www.lemis.com/papers/AUUG2004/tutorial.pdf, but it would be nice if somebody were to extract this information and put it in the handbook. If anybody wants to, please contact me and I'll supply the source. Greg -- See complete headers for address and phone numbers. --CSNFvL6ilyiKL/Hs Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQFBP96TIubykFB6QiMRAuS2AJ49zA6HmXaAaQ+F/Zx7TElnkGVxiQCgnjST 9vR5B4UniDWtzjR261HMDJw= =I9q8 -----END PGP SIGNATURE----- --CSNFvL6ilyiKL/Hs--