From owner-freebsd-sparc64@FreeBSD.ORG Thu Nov 25 07:31:21 2004 Return-Path: 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 0A52416A4CE for ; Thu, 25 Nov 2004 07:31:21 +0000 (GMT) Received: from ns1.xcllnt.net (209-128-86-226.BAYAREA.NET [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA5F043D5A for ; Thu, 25 Nov 2004 07:31:20 +0000 (GMT) (envelope-from marcel@xcllnt.net) Received: from [192.168.4.250] (dhcp50.pn.xcllnt.net [192.168.4.250]) by ns1.xcllnt.net (8.13.1/8.13.1) with ESMTP id iAP7VKkp044572; Wed, 24 Nov 2004 23:31:20 -0800 (PST) (envelope-from marcel@xcllnt.net) In-Reply-To: References: <41A3A08B.1000803@freebsd.org> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Marcel Moolenaar Date: Wed, 24 Nov 2004 23:31:19 -0800 To: Garance A Drosihn X-Mailer: Apple Mail (2.619) cc: freebsd-sparc64@freebsd.org Subject: Re: Serial configs on sparc64 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Nov 2004 07:31:21 -0000 On Nov 24, 2004, at 11:22 PM, Garance A Drosihn wrote: > At 10:40 PM -0800 11/24/04, Marcel Moolenaar wrote: >> On Nov 24, 2004, at 9:21 PM, Garance A Drosihn wrote: >> >>>> Are you using the zs or the uart driver? Now that Marcel fixed >>>> uart to handle the zs hardware in the U2 correctly, we might be >>>> able to think about retiring the zs driver entirely. >>> >>> I un-commented the uart line in my kernel config, and changed the >>> lines in /etc/tty back to what they had been. I booted into >>> single-user with the new kernel (planning to 'make installworld'), >>> and I had no serial console. >> >> Did you remove zs(4)? >> Did you remove ofw_console(4)? >> Did you add puc(4)? > > I just took a shot in the dark. I did nothing but add uart and > remove my change /etc/ttys (because I got the impression that the > current /etc/ttys would work if I added uart). The problem here > is that I have no real idea how these pieces fit together. Well, they don't fit together. zs(4), ofw_console(4) and uart(4)/puc(4) all want to control the same hardware and since we're dealing with the console, it's not as simple as one winning the bus attach contest and be done with it. > I can certainly try it again by doing all three of the changes you > have listed (along with removing my /etc/ttys change). I can start > on that right now. Thanks. As long as you're booting in single-user mode, /etc/ttys can be ignored. The moment you go multi-user, make sure you have a getty(8) on the right device. uart(4) creates /dev/ttyuX and /dev/cuauX, so you need to enable a getty on ttyu0 or ttyu1 if you want to be able to login on the serial console. FYI, -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net