Subject: port-pmax/4007: MAKEDEV sets incorrect minor devices for scc lines
To: None <gnats-bugs@gnats.netbsd.org>
From: maximum entropy <entropy@tardis.bernstein.com>
List: netbsd-bugs
Date: 08/18/1997 12:45:07
>Number:         4007
>Category:       port-pmax
>Synopsis:       MAKEDEV sets incorrect minor devices for scc lines
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 18 09:50:00 1997
>Last-Modified:
>Originator:     maximum entropy
>Organization:
	
>Release:        <NetBSD-current source date> 970818
>Environment:
	
DECstation 5000
System: NetBSD tardis.bernstein.com 1.2G NetBSD 1.2G (C466DE) #0: Mon Aug 11 13:29:35 EDT 1997 entropy@tardis.bernstein.com:/usr/src/sys/arch/i386/compile/C466DE i386


>Description:
	
The pmax MAKEDEV script creates /dev/tty00 with minor device number 2,
and /dev/tty01 with minor device number 3.  They should actuually be created
as 0 and 2, which seem to be the correct minor device numbers for these ports.

Additionally, I'd rather see tty01 have minor number 2 instead of tty00.
This way, /dev/tty00 and /dev/tty01 refer to the same port under both
NetBSD and Ultrix.  Having them swapped is just a good way to confuse morons
like me :-)

I originally reported/requested this change on April 3, on the port-pmax
mailing list.  At that time I had just recently begun using NetBSD and I
wasn't aware of the send-pr mechanism.  Recently I noticed that this problem
had never been addressed, so I figured it was time to file a proper report
about it.
>How-To-Repeat:
	
>Fix:
	

--- /usr/src/etc/etc.pmax/MAKEDEV-orig	Mon Oct 14 11:25:30 1996
+++ /usr/src/etc/etc.pmax/MAKEDEV	Thu Apr  3 11:40:49 1997
@@ -172,8 +172,8 @@
 	unit=`expr $i : 'scc\(.*\)'`
 	case $unit in
 	0)
-		mknod tty00 c 17 2
-		mknod tty01 c 17 3
+		mknod tty00 c 17 0
+		mknod tty01 c 17 2
 		;;
 	*)
 		echo bad unit for scc in: $i

>Audit-Trail:
>Unformatted: