From owner-freebsd-sparc64@FreeBSD.ORG Fri Jul 9 02:38:53 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 EB24F16A4CE; Fri, 9 Jul 2004 02:38:53 +0000 (GMT) Received: from ns.kt-is.co.kr (ns.kt-is.co.kr [211.218.149.125]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6ED9E43D39; Fri, 9 Jul 2004 02:38:53 +0000 (GMT) (envelope-from yongari@kt-is.co.kr) Received: from michelle.kt-is.co.kr (ns2.kt-is.co.kr [220.76.118.193]) (authenticated bits=128) by ns.kt-is.co.kr (8.12.10/8.12.10) with ESMTP id i692YKAh005872 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Fri, 9 Jul 2004 11:34:20 +0900 (KST) Received: from michelle.kt-is.co.kr (localhost.kt-is.co.kr [127.0.0.1]) by michelle.kt-is.co.kr (8.12.10/8.12.10) with ESMTP id i692cFhq015409 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 9 Jul 2004 11:38:15 +0900 (KST) (envelope-from yongari@kt-is.co.kr) Received: (from yongari@localhost) by michelle.kt-is.co.kr (8.12.10/8.12.10/Submit) id i692cEql015408; Fri, 9 Jul 2004 11:38:14 +0900 (KST) (envelope-from yongari@kt-is.co.kr) Date: Fri, 9 Jul 2004 11:38:14 +0900 From: Pyun YongHyeon To: Peter Grehan Message-ID: <20040709023814.GA15095@kt-is.co.kr> References: <40ED61D8.8000600@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40ED61D8.8000600@freebsd.org> User-Agent: Mutt/1.4.1i X-Filter-Version: 1.11a (ns.kt-is.co.kr) cc: freebsd-sparc64@freebsd.org Subject: Re: ofw console change breaks powerpc X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: yongari@kt-is.co.kr List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jul 2004 02:38:54 -0000 On Fri, Jul 09, 2004 at 01:01:44AM +1000, Peter Grehan wrote: > Hi, > > I've just tried the OpenFirmware console on FreeBSD/PPC after > a long stint of using syscons. > > The recent change seemed to break things, specifically the line: > > ttychars(tp); > tp->t_iflag = TTYDEF_IFLAG; > tp->t_oflag = TTYDEF_OFLAG; > - tp->t_cflag = TTYDEF_CFLAG|CLOCAL; > + tp->t_cflag = TTYDEF_CFLAG; > tp->t_lflag = TTYDEF_LFLAG; > tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED; > ttsetwater(tp); > > By not having CLOCAL set, TS_CONNECTED doesn't get set on open, > and the first write() syscall by sh blocks because the tty subsystem > wants to wait for modem signals to bring the line up. > > Now, I have no idea why this works on sparc64, but I don't think > it would be an issue if it were re-introduced. Anyone want to try > it out ? I don't have any sparc h/w to test it on. > Yes, it works here with CLOCAL(Ultra2, type-5 keyboard). With OFWCONS_POLL_HZ=20 and TERM=sun I get almost working console. However, ofw console is still too slow to work on.(IMO) I tried syscons + creator to get more speed by hardware acceleration. To build that kernel, I had to add to source files. (I guess it was both sys/dev/fb/creator.c and sys/sparc64/creator/creator_upa.c) After really fast booting message scrolls and login prompt, the machine locked up. :( > later, > > Peter. > Regards, Pyun YongHyeon -- Pyun YongHyeon