From owner-cvs-src@FreeBSD.ORG Wed Nov 23 03:22:38 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 133B316A420; Wed, 23 Nov 2005 03:22:38 +0000 (GMT) (envelope-from marcel@xcllnt.net) Received: from ns1.xcllnt.net (209-128-86-226.bayarea.net [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C46143D45; Wed, 23 Nov 2005 03:22:37 +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.4/8.13.4) with ESMTP id jAN3MVhk046561; Tue, 22 Nov 2005 19:22:31 -0800 (PST) (envelope-from marcel@xcllnt.net) In-Reply-To: <20051122200109.GA79511@freebie.xs4all.nl> References: <200511221712.jAMHCnf0066273@repoman.freebsd.org> <200511221307.14098.jhb@freebsd.org> <20051122191058.GA79194@freebie.xs4all.nl> <43836E71.2040900@samsco.org> <20051122200109.GA79511@freebie.xs4all.nl> Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Marcel Moolenaar Date: Tue, 22 Nov 2005 19:22:29 -0800 To: Wilko Bulte X-Mailer: Apple Mail (2.746.2) Cc: Scott Long , src-committers@FreeBSD.org, John Baldwin , cvs-src@FreeBSD.org, Marius Strobl , cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/conf files files.powerpc X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Nov 2005 03:22:38 -0000 On Nov 22, 2005, at 12:01 PM, Wilko Bulte wrote: > On Tue, Nov 22, 2005 at 12:16:01PM -0700, Scott Long wrote.. >> Wilko Bulte wrote: >> >>> On Tue, Nov 22, 2005 at 01:07:12PM -0500, John Baldwin wrote.. >>> >>>> On Tuesday 22 November 2005 12:12 pm, Marius Strobl wrote: >>>> >>>>> marius 2005-11-22 17:12:49 UTC >>>>> >>>>> FreeBSD src repository >>>>> >>>>> Modified files: >>>>> sys/conf files files.powerpc >>>>> Log: >>>>> Move zs.c from files to files.powerpc as zs(4) by now is only >>>>> supported >>>>> on powerpc (more or less...). That way people updating from >>>>> FreeBSD 5 >>>>> to >>>>> FreeBSD 6 and beyond on sparc64 will get an error from config >>>>> (8) rather >>>>> than a mysterious compile error when they have a stale 'device >>>>> zs' in >>>>> their kernel config file. >>>>> >>>>> MFC after: 2 weeks >>>> >>>> I think some Alpha machines (4100?) also use zs(4) for serial >>>> console. >>> >>> >>> zs(4)? Hmm, the only oddball Alpha in this sense that comes to mind >>> is Turbolaser (AlphaServer 8[24]00) >>> >> >> Technically there is an esp driver now that could be used to >> revive TL >> support, but unless there is someone actively interested in it >> _right_now_ I don't think we should make anything contingent on it. > > Yes. Last time I tried a CD boot on our Tlaser at work it just bombed > out very early during boot. I did not feel like digging into it, > especially > given that I do not expect anyone to have a huge machine like that > at home > to hack on (let alone pay for the electricity bill..) Some trivial changes may be all that's needed. To illustrate: Index: uart_cpu_alpha.c =================================================================== RCS file: /nfs/home/ncvs/src/sys/dev/uart/uart_cpu_alpha.c,v retrieving revision 1.11 diff -u -r1.11 uart_cpu_alpha.c --- uart_cpu_alpha.c 2005/06/16 18:06:38 1.11 +++ uart_cpu_alpha.c 2005/11/23 03:18:03 @@ -80,7 +80,8 @@ if (ctb->ctb_term_type != CTB_PRINTERPORT) return (ENXIO); boothowto |= RB_SERIAL; - di->ops = uart_ns8250_ops; + di->ops = (hwrpb->rpb_type == ST_DEC_21000) + ? uart_z8530_ops : uart_ns8250_ops; di->bas.chan = 0; di->bas.bst = uart_bus_space_io; if (bus_space_map(di->bas.bst, 0x3f8, 8, 0, &di- >bas.bsh) != 0) The I/O port base and channel also need to be set correctly of course but it looks like that can be hardcoded. This should be all. With access to hardware I could give it a try if people think it would be fun... -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net