NetBSD Problem Report #1273

From gnats  Tue Jul 25 08:16:56 1995
Received: from arresum.inka.de (root@arresum.inka.de [193.197.84.35]) by sun-lamp.pc.cs.cmu.edu (8.6.11/8.6.10) with ESMTP id IAA23649 for <gnats-bugs@gnats.netbsd.org>; Tue, 25 Jul 1995 08:16:45 -0400
Message-Id: <199507250637.IAA00468@arresum.inka.de>
Date: Tue, 25 Jul 1995 08:37:40 +0200
From: Bernd Ernesti <bernd@arresum.inka.de>
Reply-To: bernd@arresum.inka.de
To: gnats-bugs@gnats.netbsd.org
Subject: Fixes for /dev/MAKEDEV
X-Send-Pr-Version: 3.2

>Number:         1273
>Category:       port-amiga
>Synopsis:       /dev/MAKEDEV is incomplete
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnats-admin
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 25 08:20:01 +0000 1995
>Closed-Date:    Sat Sep 30 09:02:01 +0000 1995
>Last-Modified:  Sat Sep 30 09:03:21 +0000 1995
>Originator:     Bernd Ernesti
>Release:        NetBSD-current 17-06-95
>Organization:

>Environment:

System: NetBSD arresum 1.0A NetBSD 1.0A (VEEGO) #154: Sun Jul 9 13:46:31 MET DST 1995 bernd@arresum:/src/sys/arch/amiga/compile/VEEGO amiga


>Description:
	There are missing devices (grf3 and for the mfc card) for /dev/MAKEDEV
	and a wrong major number for the tun devices.
>How-To-Repeat:

>Fix:
	Apply this fix which makes tty01 for the first mfc port (mfcs0) and tty02
	for the second mfc port:

*** etc/etc.amiga/MAKEDEV-orig	Thu Mar  2 12:21:28 1995
--- etc/etc.amiga/MAKEDEV	Sat May 13 14:45:11 1995
***************
*** 62,67 ****
--- 62,68 ----
  #
  # Terminal ports:
  #	tty*	standard serial port.
+ #	mfcs*	serial ports for the MultiFaceCard.
  #
  # Pseudo terminals:
  #	pty*	set of 16 master and slave pseudo terminals
***************
*** 70,76 ****
  #	par*	motherboard parallel port
  #
  # Special purpose devices:
! #	grf*	custom chip (grf0) or Retina (grf1) video
  #	kbd	Amiga keyboard
  #	view*	generic interface to graphic displays.
  #	aconf	autoconfig information (not yet)
--- 71,78 ----
  #	par*	motherboard parallel port
  #
  # Special purpose devices:
! #	grf*	custom chip (grf0) or Retina Z2/Z3 (grf1/grf2) video
! #               or Cirrus boards (grf3)
  #	kbd	Amiga keyboard
  #	view*	generic interface to graphic displays.
  #	aconf	autoconfig information (not yet)
***************
*** 84,99 ****
  do
  case $i in
  all)
! 	sh MAKEDEV std fd st0 ttye0 ttye1 ttye2 mouse0 mouse1 tty00 grf0 grf1 grf2
! 	sh MAKEDEV kbd sd0 sd1 sd2 sd3 sd4 sd5 sd6 sd7 sd8 sd9 vnd0 vnd1 vnd2
! 	sh MAKEDEV vnd3 vnd4 view00 view01 view02 view03 view04 view05 pty0 
! 	sh MAKEDEV vnd5 vnd6 cd0 fd0 fd1 fd2 fd3 bpf0 bpf1 bpf2 bpf3
! 	sh MAKEDEV tun0 tun1 par0 lkm local
  	;;

  floppy)
! 	sh MAKEDEV std st0 ttye0 ttye1 ttye2 tty00 grf0 grf1 grf2 kbd
! 	sh MAKEDEV sd0 sd1 sd2 sd3 sd4 sd5 sd6 cd0 fd0 fd1
  	;;

  std)
--- 86,101 ----
  do
  case $i in
  all)
! 	sh MAKEDEV std fd st0 ttye0 ttye1 ttye2 ttye3 mouse0 mouse1 tty00
! 	sh MAKEDEV grf0 grf1 grf2 grf3 kbd sd0 sd1 sd2 sd3 sd4 sd5 sd6 sd7
! 	sh MAKEDEV sd8 sd9 vnd0 vnd1 vnd2 vnd3 vnd4 vnd5 vnd6 view00 view01 
! 	sh MAKEDEV view02 view03 view04 view05 pty0 cd0 fd0 fd1 fd2 fd3 lkm
! 	sh MAKEDEV bpf0 bpf1 bpf2 bpf3 tun0 tun1 tun2 tun3 par0 local mfcs0 mfcs1
  	;;

  floppy)
! 	sh MAKEDEV std st0 ttye0 ttye1 ttye2 ttye3 tty00 grf0 grf1 grf2 grf3
! 	sh MAKEDEV kbd sd0 sd1 sd2 sd3 sd4 sd5 sd6 cd0 fd0 fd1
  	;;

  std)
***************
*** 268,273 ****
--- 270,291 ----
  	;;


+ mfcs*)
+ 	unit=`expr $i : 'mfcs\(.*\)'`
+ 	rm -f mfcs`expr ${unit} + 1` tty0`expr ${unit} + 1` ttym`expr ${unit} + 1`
+ 	case $unit in
+ 	0|1)
+ 		mknod tty0`expr ${unit} + 1` c 17 `expr ${unit} + 0`
+ 		mknod ttym`expr ${unit} + 1` c 17 `expr ${unit} + 128`
+ 		chown uucp:wheel tty0`expr ${unit} + 1` ttym`expr ${unit} + 1`
+ 		;;
+ 	*)
+ 		echo bad unit for mfcs in: $i
+ 		;;
+ 	esac
+ 	;;
+ 
+ 
  par*)
  	unit=`expr $i : 'par\(.*\)'`
  	rm -f par${unit}
***************
*** 287,293 ****
  	rm -f ttye${unit}
  	rm -f ite*
  	case $unit in
! 	0|1|2)
  		mknod ttye${unit} c 13 ${unit}
  		;;
  	*)
--- 305,311 ----
  	rm -f ttye${unit}
  	rm -f ite*
  	case $unit in
! 	0|1|2|3)
  		mknod ttye${unit} c 13 ${unit}
  		;;
  	*)
***************
*** 300,306 ****
  	unit=`expr $i : 'grf\(.*\)'`
  	rm -f grf${unit}
  	case $unit in
! 	0|1|2)
  		mknod grf${unit} c 10 ${unit}; chmod 666 grf${unit}
  		;;
  	*)
--- 318,324 ----
  	unit=`expr $i : 'grf\(.*\)'`
  	rm -f grf${unit}
  	case $unit in
! 	0|1|2|3)
  		mknod grf${unit} c 10 ${unit}; chmod 666 grf${unit}
  		;;
  	*)
***************
*** 380,387 ****

  tun*)
  	unit=`expr $i : 'tun\(.*\)'`
! 	rm -f tun$unit
! 	mknod tun$unit c 40 $unit
  	chmod 600 tun$unit
  	chown root.wheel tun$unit
  	;;
--- 398,405 ----

  tun*)
  	unit=`expr $i : 'tun\(.*\)'`
! 	rm -f tun${unit}
! 	mknod tun$unit c 23 $unit
  	chmod 600 tun$unit
  	chown root.wheel tun$unit
  	;;
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: chopps 
State-Changed-When: Sat Sep 30 05:02:01 EDT 1995 
State-Changed-Why:  
tun and grf updated and mfc uses ttyA0 now 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.