Subject: MAKEDEV
To: None <hls@oce.nl>
From: Gordon W. Ross <gwr@jericho.mc.com>
List: port-sun3
Date: 05/20/1994 15:01:43
> From: "Harry Schreurs" <HLS@oce.nl>
> Date: Thu, 19 May 1994 16:14:05 GMT +0100
> Question 2: In absence of a MAKEDEV script I don't know what to put
> into /dev.
I have attached a simple MAKEDEV script below.
> I am interested in what device is opened by init, to get
> input from the keyboard.
Init opens /dev/console (major=0, minor=0)
> Is init still trying to use the prom driver instead of the zs driver?
It should be using the "kd" (keyboard/display) driver.
Gordon W. Ross Internet: <gwr@mc.com>
Mercury Computer Systems Voice mail: 508-256-0052x295
199 Riverneck Road Front desk: 508-256-1300
Chelmsford, MA 01824-2820 Facsimile: 508-256-3599
[ MAKEDEV follows: ]
#! /bin/sh
PATH=/usr/bin:/usr/ucb:/usr/etc:/etc:/bin:.
umask 77
# mk name b/c major minor [mode] [group]
mk() {
mknod $1 $2 $3 $4 &&
chmod ${5-666} $1 &&
test -n "$6" && chgrp $6 $1
return 0
}
args="$@"
for i in $args
do
unit=`expr $i : '[a-z][a-z]*\([0-9][0-9]*\)'`
case $unit in
"") unit=0 ;;
esac
case $i in
std)
mk console c 0 0 622
mk tty c 1 0 # XXX
mk mem c 2 0 640 kmem # XXX
mk kmem c 2 1 640 kmem # XXX
mk null c 2 2 # XXX
mk eeprom c 2 11 640 kmem # XXX
mk zero c 2 12 # XXX
mk drum c 7 0 640 kmem
mk klog c 16 0
mk ttya c 12 0
mk ttyb c 12 1
mk mouse c 13 0
mk kbd c 29 0
;;
esac
done
------------------------------------------------------------------------------