From owner-freebsd-current@FreeBSD.ORG Mon Nov 17 12:09:18 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A212A1065677 for ; Mon, 17 Nov 2008 12:09:18 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA03.emeryville.ca.mail.comcast.net (qmta03.emeryville.ca.mail.comcast.net [76.96.30.32]) by mx1.freebsd.org (Postfix) with ESMTP id 8996A8FC12 for ; Mon, 17 Nov 2008 12:09:18 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA02.emeryville.ca.mail.comcast.net ([76.96.30.19]) by QMTA03.emeryville.ca.mail.comcast.net with comcast id gBj11a0090QkzPwA3C9Jh6; Mon, 17 Nov 2008 12:09:18 +0000 Received: from koitsu.dyndns.org ([69.181.141.110]) by OMTA02.emeryville.ca.mail.comcast.net with comcast id gC9G1a00N2P6wsM8NC9GHF; Mon, 17 Nov 2008 12:09:17 +0000 X-Authority-Analysis: ?? Received: by icarus.home.lan (Postfix, from userid 1000) id 171ED33C36; Mon, 17 Nov 2008 04:09:17 -0800 (PST) Date: Mon, 17 Nov 2008 04:09:17 -0800 From: Jeremy Chadwick To: Anton Yuzhaninov Message-ID: <20081117120917.GA28884@icarus.home.lan> References: <491B3161.7000808@citrin.ru> <20081112203501.GA81783@hoeg.nl> <491B41F3.9030307@citrin.ru> <20081112212350.GB81783@hoeg.nl> <491C6BE7.3020202@citrin.ru> <20081113180514.GH81783@hoeg.nl> <492150E8.3040708@citrin.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <492150E8.3040708@citrin.ru> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: Ed Schouten , FreeBSD Current Subject: Re: serial console in current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Nov 2008 12:09:18 -0000 On Mon, Nov 17, 2008 at 02:09:28PM +0300, Anton Yuzhaninov wrote: > On 13.11.2008 21:05, Ed Schouten wrote: >> * Anton Yuzhaninov wrote: >>> with cuau0 in /etc/ttys it works! >> >> That means your serial cable probably doesn't have its carrier detect >> line connected properly. >> > > Pinout of my cable is: > > 1 - 1 > 2 - 3 > 3 - 2 > 4 - 6 > 5 - 5 > 6 - 4 > 7 - 8 > 8 - 7 > 9 - 9 > > As I understand, carrier detect line connected properly. > Correct me, if I mistaken. > What is proper freebsd serial cable pinout? The handbook goes over this. Your cable is indeed wrong. http://www.freebsd.org/doc/en/books/handbook/serial.html#SERIAL-CABLES-PORTS And these are from our internal notes, specifically for use with our serial console device (MRV LX-4016S) which uses RJ45 for serial. The pin names I've labelled appropriately, so you should be able to figure out what your cable should be. And yes, these work with hardware flow control, and are *reliable* on FreeBSD. We use the gettytab entry "std.115200" for them, with no character loss. ---------------------------------------------------------------------- The LX-4016S-001 sports sixteen (16) RJ45 connectors. The cabling for the console port (Diag/Mgmt Port, also known as Port 0) comes with the unit. The cable to use for this port appears to be some sort of rollover cable (Cisco?); it's silver and flat, not round like CAT5. It's 8-pin though. A DB9 adapter also comes with this cable, which allows you to hook it up to a standard PC and access it. Ports labelled 1-16 require RJ45-to-DB9 adapters for hooking the MRV up to actual servers in the rack. The adapters that work best are the Xyplex XFDCE91 adapters, which support hardware flow control (RTS/CTS) and come pre-assembled. You can find the product here: Xyplex adapter XFDCE91 RJ45-to-DB9 APACN p/n 24490-15 -- http://www.apacn.com/ Pinout/wiring diagram: RJ45 DB9 Female Female =========== ======= (CTS) 1 <----> 7 (RTS) (DTR) 2 <----> 6 (DSR) (TxD) 3 <----> 2 (RxD) (TxD GND) 4 <----> 5 (GND) (RxD GND) 5 <----> 5 (GND) (RxD) 6 <----> 3 (TxD) (DSR/DCD) 7 <----> 4 (DTR) (RTS) 8 <----> 8 (CTS) Pins 1 (DCD) and 9 (RI) on the DB9 are unconnected/unused. With these adapters, use standard (not crossover!) CAT5/6 cables. ---------------------------------------------------------------------- -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |