From owner-freebsd-sparc64@FreeBSD.ORG Mon Dec 5 20:45:45 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 1287B16A420; Mon, 5 Dec 2005 20:45:45 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0859C43D5E; Mon, 5 Dec 2005 20:45:27 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.3/8.13.3) with ESMTP id jB5KjIVK060150; Mon, 5 Dec 2005 12:45:18 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.3/8.13.3/Submit) id jB5KjINP060149; Mon, 5 Dec 2005 12:45:18 -0800 (PST) (envelope-from jmg) Date: Mon, 5 Dec 2005 12:45:18 -0800 From: John-Mark Gurney To: Aaron Glenn Message-ID: <20051205204518.GB55657@funkthat.com> Mail-Followup-To: Aaron Glenn , John Baldwin , freebsd-sparc64@freebsd.org References: <18f601940512051025g71b9fc29y4ae37eb3ce2629df@mail.gmail.com> <200512051354.06372.jhb@freebsd.org> <18f601940512051128i142fd714g22004d8452cff29a@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <18f601940512051128i142fd714g22004d8452cff29a@mail.gmail.com> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html 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 Reply-To: John-Mark Gurney 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 20:45:45 -0000 Aaron Glenn wrote this message on Mon, Dec 05, 2005 at 11:28 -0800: > On 12/5/05, John Baldwin wrote: > > > > You don't use sab(4) anymore, but uart(4). > > I had a suspicion that was the case, but couldn't confirm it. > > > > > Here are your SAB ports. /dev/ttyu0 and /dev/ttyu1 > > Then something more sinister is at work here. A 'cu -l /dev/ttyu0' > will "connect" me, however I get no prompt, and not input or output > seems to be passed to the console port. All input gets dumped to the > shell I executed the cu command from, *after* I kill the first (lowest > pid) cu process. > > Example: > yang# ps -ax | grep ttyu > 687 ?? I 0:00.01 /usr/libexec/getty std.9600 ttyu1 > 688 u0 Is+ 0:00.01 /usr/libexec/getty std.9600 ttyu0 > 741 p0 R+ 0:00.01 grep ttyu > yang# cu -l /dev/ttyu1 -s 9600 > Connected > *hit enter a few times, type hello john, then kill the first cu > process from another shell* > yang# > yang# > yang# > yang# > yang# > yang# > yang# hello john > hello: Command not found. > yang# > > Reading the handbook section on serial communications again, I don't > see anything wrong. I'll be the first to admit this type of stuff is > uncharted territory for me. If I skipped some required reading on the > subject, please don't hesitate to point me to it. You won't get a login prompt from the getty running on the local machine... as soon as you open up ttyu1 the getty will "get" out of the way and stop doing work... The above usually happens when the otherside doesn't have CD raised and you haven't set the clocal flag on the port... if you use the cuau1 port, that usually ignores CD, and you can start typing... what do you have on the other side? are they back to back? or? Also, I usually disable getty's when I'm debugging as it can usually cause other issues, and then once I have the serial ports mostly working, then I enable getty and see what breaks... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."