From owner-freebsd-current@FreeBSD.ORG Wed Oct 29 13:59:55 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E3FCE1065675 for ; Wed, 29 Oct 2008 13:59:55 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from bunrab.catwhisker.org (adsl-63-193-123-122.dsl.snfc21.pacbell.net [63.193.123.122]) by mx1.freebsd.org (Postfix) with ESMTP id 7DC108FC21 for ; Wed, 29 Oct 2008 13:59:55 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from bunrab.catwhisker.org (localhost [127.0.0.1]) by bunrab.catwhisker.org (8.13.3/8.13.3) with ESMTP id m9TDxb8c087078; Wed, 29 Oct 2008 06:59:37 -0700 (PDT) (envelope-from david@bunrab.catwhisker.org) Received: (from david@localhost) by bunrab.catwhisker.org (8.13.3/8.13.1/Submit) id m9TDxbP0087077; Wed, 29 Oct 2008 06:59:37 -0700 (PDT) (envelope-from david) Date: Wed, 29 Oct 2008 06:59:37 -0700 From: David Wolfskill To: Ed Schouten Message-ID: <20081029135937.GV69155@bunrab.catwhisker.org> Mail-Followup-To: David Wolfskill , Ed Schouten , current@freebsd.org References: <20081029050917.GQ69155@bunrab.catwhisker.org> <20081029055913.GE1165@hoeg.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="aZ/0/p6gSDXwzas7" Content-Disposition: inline In-Reply-To: <20081029055913.GE1165@hoeg.nl> User-Agent: Mutt/1.4.2.1i Cc: current@freebsd.org Subject: Re: Apparent "permissions" issue with /dev/cuau0? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Oct 2008 13:59:56 -0000 --aZ/0/p6gSDXwzas7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 29, 2008 at 06:59:13AM +0100, Ed Schouten wrote: > ... > > .if ${OSVERSION} < 600000 > > GPSMAN_DEFAULT_PORT?=3D /dev/cuaa0 > > .elif ${OSVERSION} < 800045 > > GPSMAN_DEFAULT_PORT?=3D /dev/cuad0 > > .else > > GPSMAN_DEFAULT_PORT?=3D /dev/cuau0 > > .endif >=20 > Yes. That seems to be okay. I think you could already remove the cuaa0 > entry, because I'm not sure if we support RELENG_5 anyway? Not sure; it doesn't hurt to leave it in for now, so I'm not fussed about it. :-} > ... > > I suppose I could try using ktrace(1) to get a better idea what's going > > on. Any other (better?) ideas? >=20 > I think the best thing to try is to see what the error code is the > open() call on the TTY returned. EPERM is possible, but it's more likely > you got an ENXIO or EBUSY. You could add printf's to sys/kern/tty.c's > ttydev_open() to see where it falls through. It was EBUSY. And seeing that reminded me that when I run CURRENT on my laptop, I have it configured to use the serial port (singular) as a console. And I have getty(8) listening on it so I can login to the laptop even for those times when the keyboard becomes unresponsive.... Running "conscontrol delete cuau0" addressed the first issue; whacking /etc/ttys & sending init(8) a SIGHUP addressed the second. Those done, GPSMan was able to use the serial port as intended. Sorry for the noise/false alarm/foot-shooting. :-} > Another life saving tool is pstat(8). It gives you a list of TTY's on > the system. The `STATE' column should reveal some of the flags that are > currently set in the TTY, which is useful when looking through > ttydev_open(). You could also run `show all ttys' in DDB and use `show > tty ' to dump all state of the TTY in question. Ah; thanks. > Please let me know if you discover any new issues/run into any problems. > Thanks! All clear! :-) (And it appears that Tcl isn't at fault, either. :-}) Peace, david --=20 David H. Wolfskill david@catwhisker.org Depriving a girl or boy of an opportunity for education is evil. See http://www.catwhisker.org/~david/publickey.gpg for my public key. --aZ/0/p6gSDXwzas7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iEYEARECAAYFAkkIbEgACgkQmprOCmdXAD2l0ACaAmB14oCe+Jtasx+QXjmm4HZy 5igAnRicBWXvXjXqX0rKSO8Mf/jaErXE =WoWz -----END PGP SIGNATURE----- --aZ/0/p6gSDXwzas7--