From owner-freebsd-sparc64@FreeBSD.ORG Mon Dec 5 19:01:51 2005 Return-Path: X-Original-To: freebsd-sparc64@freebsd.org Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DF61416A426 for ; Mon, 5 Dec 2005 19:01:50 +0000 (GMT) (envelope-from marius@newtrinity.zeist.de) Received: from newtrinity.zeist.de (newtrinity.zeist.de [217.24.217.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 31F1543DD0 for ; Mon, 5 Dec 2005 19:00:56 +0000 (GMT) (envelope-from marius@newtrinity.zeist.de) Received: from newtrinity.zeist.de (localhost [127.0.0.1]) by newtrinity.zeist.de (8.12.11/8.12.11/ZEIST.DE) with ESMTP id jB5J0nVS089358; Mon, 5 Dec 2005 20:00:51 +0100 (CET) (envelope-from marius@newtrinity.zeist.de) Received: (from marius@localhost) by newtrinity.zeist.de (8.12.11/8.12.10/Submit) id jB5J0iSA089357; Mon, 5 Dec 2005 20:00:44 +0100 (CET) (envelope-from marius) Date: Mon, 5 Dec 2005 20:00:44 +0100 From: Marius Strobl To: Aaron Glenn Message-ID: <20051205200044.A88929@newtrinity.zeist.de> References: <18f601940512051025g71b9fc29y4ae37eb3ce2629df@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <18f601940512051025g71b9fc29y4ae37eb3ce2629df@mail.gmail.com>; from aaron.glenn@gmail.com on Mon, Dec 05, 2005 at 10:25:42AM -0800 X-AntiVirus-modified: yes X-AntiVirus: checked by AntiVir Milter (version: 1.1.1-9; AVE: 6.32.1.63; VDF: 6.32.1.6; host: newtrinity.zeist.de) Cc: freebsd-sparc64@freebsd.org Subject: Re: serial ports on the Ultra 5 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2005 19:01:51 -0000 On Mon, Dec 05, 2005 at 10:25:42AM -0800, Aaron Glenn wrote: > > For the life of me I cannot get either serial port on one of my Ultra > 5's to work in FreeBSD. I'll admit I don't quite grasp how the sio(4), > puc(4), and sab(4) drivers intertwine (if at all...) and while > /etc/ttys makes sense to me, I don't understand how to get or why I > don't have a /dev entry for either of the serial ports. I am unable to > console out or into the box; prior to FreeBSD 6.0 the machine had > OpenBSD and the ports worked flawlessly, ruling out a hardware issue. > > The release notes say it should work, the sab(4) man pages says > /dev/tty[a-b], /etc/ttys has an entry, dmesg says puc(4), and I can't > make heads or tails of anything. I'm missing something important - can > a kind soul point me to it? > The only driver for RS232 controllers you are using is uart(4). Its device nodes are /dev/ttyuN and /dev/cuauN. On an U5 (and most other sun4u machines) unit 0 is the serial port A, unit 1 is port B, unit 2 is the keyboard port (no device node is created for this one) and unit 3 is the mouse port. Puc(4) is only used to split or multiplex the resources of the SCCs (Serial Communication Controller, sort of a dual-UART) used in sun4u machines so uart(4) can attach to both of the two channels of a SCC separately. Sab(4) is deprecated and superseded by uart(4). It is disabled in GENERIC since FreeBSD 5.4 and will go away at some point. Sio(4) never really worked on sparc64. The devices supported by sio(4) are also supported by uart(4). Marius -- This mail was scanned by AntiVir Milter. This product is licensed for non-commercial use. See www.antivir.de for details.