From owner-freebsd-questions Sat Jan 8 3:23:29 2000 Delivered-To: freebsd-questions@freebsd.org Received: from rhubarb.fwi.com (rhubarb.fwi.com [209.84.175.126]) by hub.freebsd.org (Postfix) with ESMTP id D09D61505B for ; Sat, 8 Jan 2000 03:23:26 -0800 (PST) (envelope-from peeter@rhubarb.fwi.com) Received: (from peeter@localhost) by rhubarb.fwi.com (8.9.3/8.9.3) id GAA00827 for freebsd-questions@FreeBSD.ORG; Sat, 8 Jan 2000 06:28:33 -0500 (EST) (envelope-from peeter) Date: Sat, 8 Jan 2000 06:28:33 -0500 From: Peeter Pirn To: freebsd-questions@FreeBSD.ORG Subject: Re: getty: tcgetattr /dev/ttyc0: Inappropriate ioctl for device Message-ID: <20000108062833.A634@rhubarb.fwi.com> References: <20000107223832.B1319@rhubarb.fwi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <20000107223832.B1319@rhubarb.fwi.com>; from Peeter Pirn on Fri, Jan 07, 2000 at 10:38:32PM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Here's the solution. In /etc/ttys, I changed ttyc0 "/usr/libexec/getty std.9600" wy60 on insecure to ttyc00 "/usr/libexec/getty std.9600" wy60 on insecure and then ran `kill -HUP 1'. I still have a question, though. Here's some of what I see when I list tty-s in /dev: crw-rw-rw- 1 root wheel 1, 0 Jan 8 06:19 /dev/tty -rw------- 1 root wheel 29 Jan 7 19:52 /dev/ttyc0 crw------- 1 peeter tty 48, 0 Jan 8 06:21 /dev/ttyc00 crw------- 1 root wheel 48, 1 Jan 7 19:55 /dev/ttyc01 crw------- 1 root wheel 48, 2 Jan 7 19:55 /dev/ttyc02 crw------- 1 root wheel 48, 3 Jan 7 19:55 /dev/ttyc03 crw------- 1 root wheel 48, 4 Jan 7 19:56 /dev/ttyc04 The /dev/ttyc0 is not a character device. Do I need to clean it up? If so, how do I go about this? > > I see the following message on the console after rebooting or > after `kill -HUP 1': > > getty: tcgetattr /dev/ttyc0: Inappropriate ioctl for device > > This is followed by: > > init: getty repeating too quickly on port /dev/ttyc0, sleeping > 30 secs > > This happens whether or not the terminal is connected. > > CONFIGURATION: > > On bootup, cy0 is detected properly: > > cy0 irq 10 maddr 0xd4000 msize 8192 on isa > > As root in /dev, I have already run: > > ./MAKEDEV ttyc0 > > My /etc/ttys entry is: > > ttyc0 "/usr/libexec/getty std.9600" wy60 on insecure > -- Peeter Pirn - peeter@rhubarb.fwi.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message