Subject: port-amiga/1273: Fixes for /dev/MAKEDEV
To: None <gnats-bugs@gnats.netbsd.org>
From: Bernd Ernesti <bernd@arresum.inka.de>
List: netbsd-bugs
Date: 07/25/1995 08:37:40
>Number: 1273
>Category: port-amiga
>Synopsis: /dev/MAKEDEV is incomplete
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jul 25 08:20:01 1995
>Last-Modified:
>Originator: Bernd Ernesti
>Organization:
>Release: NetBSD-current 17-06-95
>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
;;
>Audit-Trail:
>Unformatted: