well as the few userland tools which were only used on these platforms.OPENBSD_3_3
@ -1,492 +0,0 @@ | |||
#!/bin/sh - | |||
# | |||
# THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT. | |||
# generated from: | |||
# | |||
# OpenBSD: etc.amiga/MAKEDEV.md,v 1.11 2002/12/05 04:30:21 kjc Exp | |||
# OpenBSD: MAKEDEV.mi,v 1.53 2002/12/05 04:30:21 kjc Exp | |||
# OpenBSD: MAKEDEV.sub,v 1.7 2002/02/16 01:19:52 deraadt Exp | |||
# | |||
# | |||
# Copyright (c) 2001,2002 Todd T. Fries <todd@OpenBSD.org> | |||
# All rights reserved. | |||
# | |||
# Redistribution and use in source and binary forms, with or without | |||
# modification, are permitted provided that the following conditions | |||
# are met: | |||
# 1. Redistributions of source code must retain the above copyright | |||
# notice, this list of conditions and the following disclaimer. | |||
# 2. The name of the author may not be used to endorse or promote products | |||
# derived from this software without specific prior written permission. | |||
# | |||
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, | |||
# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY | |||
# AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL | |||
# THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | |||
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | |||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; | |||
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | |||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | |||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | |||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||
# | |||
# Device "make" file. Valid arguments: | |||
# all makes all known devices, including local devices. | |||
# Tries to make the ``standard'' number of each type. | |||
# std standard devices | |||
# local configuration specific devices | |||
# Tapes: | |||
# st* SCSI tapes | |||
# Disks: | |||
# ramdisk devices needed for install floppies | |||
# sd* SCSI disks | |||
# rd* "rd" pseudo-disks | |||
# ccd* concatenated disk devices | |||
# wd* "winchester" disk drives (ST506, IDE, ESDI, RLL, ...) | |||
# cd* SCSI cdrom drives | |||
# vnd* "file" pseudo-disks | |||
# Console ports: | |||
# ttye* ite bitmapped consoles | |||
# Pointing devices: | |||
# mouse* Amiga mice | |||
# Terminal ports: | |||
# tty0* NS16x50 serial ports | |||
# ttyA* mfc serial ports | |||
# ttyB* ISA COM ports | |||
# Pseudo terminals: | |||
# tty* set of 16 slave psuedo terminals | |||
# pty* set of 16 master pseudo terminals | |||
# Printers: | |||
# par* motherboard parallel port | |||
# lpt* IEEE 1284 centronics printer | |||
# lpa* interruptless lp | |||
# Special purpose devices: | |||
# grf* Motherboard bitmapped video. | |||
# kbd keyboard (provides events, for X11) | |||
# joy* joystick driver | |||
# kbd Amiga keyboard | |||
# view* generic interface to graphic displays | |||
# aconf autoconfig information (not yet) | |||
# lkm loadable kernel modules interface | |||
# bpf* Berkeley Packet Filter | |||
# tun* network tunnel driver | |||
# pf* Packet Filter | |||
# ss* SCSI scanners | |||
# uk* SCSI Unknown device | |||
# *random inkernel random data source | |||
# audio* audio device | |||
# xfs* XFS filesystem devices | |||
# ch* SCSI media changer | |||
# fd makes fd/* for the fdescfs | |||
# systrace* system call tracing device | |||
PATH=/sbin:/usr/sbin:/bin:/usr/bin | |||
T=$0 | |||
# set this to echo for Echo-Only debugging | |||
[ "$eo" ] || eo= | |||
hex() | |||
{ | |||
case $1 in | |||
[0-9]) echo -n $1;; | |||
10) echo -n a;; | |||
11) echo -n b;; | |||
12) echo -n c;; | |||
13) echo -n d;; | |||
14) echo -n e;; | |||
15) echo -n f;; | |||
esac | |||
} | |||
trunc() | |||
{ | |||
# XXX pdksh can't seem to deal with locally scoped variables | |||
# in ${foo#$bar} expansions | |||
arg1="$1" | |||
arg2="$2" | |||
case $3 in | |||
l) echo ${arg2#$arg1} ;; | |||
r|*) echo ${arg1#$arg2} ;; | |||
esac | |||
} | |||
unt() | |||
{ | |||
# XXX pdksh can't seem to deal with locally scoped variables | |||
# in ${foo#$bar} expansions | |||
arg="$1" | |||
tmp="${arg#[a-zA-Z]*}" | |||
tmp="${tmp%*[a-zA-Z]}" | |||
while [ "$tmp" != "$arg" ] | |||
do | |||
arg=$tmp | |||
tmp="${arg#[a-zA-Z]*}" | |||
tmp="${tmp%*[a-zA-Z]}" | |||
done | |||
echo $arg | |||
} | |||
dodisk() | |||
{ | |||
[ "$DEBUG" ] && set -x | |||
n=$(($((${5}*${7:-16}))+${6})) count=0 | |||
RMlist="$RMlist $1$2? r$1$2?" | |||
[ 0$7 -ne 8 ] && l="i j k l m n o p" | |||
for d in a b c d e f g h $l | |||
do | |||
M $1$2$d b $3 $(($n+$count)) 640 | |||
M r$1$2$d c $4 $(($n+$count)) 640 | |||
let count=count+1 | |||
done | |||
MKlist="$MKlist;chown root.operator $1$2? r$1$2?" | |||
} | |||
dodisk2() | |||
{ | |||
n=$(($(($5*${7:-16}))+$6)) | |||
M $1$2a b $3 $n 640 operator | |||
M r$1$2a c $4 $n 640 operator | |||
n=$(($n+2)) | |||
M $1$2c b $3 $n 640 operator | |||
M r$1$2c c $4 $n 640 operator | |||
} | |||
# M name b/c major minor [mode] [group] | |||
RMlist="rm -f" | |||
MKlist=":" | |||
mkl() { | |||
[ "${mklist[$1]}" ] && { | |||
mklist[$1]="${mklist[$1]};mknod -m $1 $2 $3 $4 $5" | |||
} || { | |||
mklist[$1]="mknod -m $1 $2 $3 $4 $5" | |||
modes="$modes $1" | |||
} | |||
} | |||
M() { | |||
RMlist="$RMlist $1" | |||
mkl ${5-666} $1 $2 $3 $4 | |||
mklist="$mklist $1" | |||
G=${6:-wheel} | |||
[ "$7" ] && { | |||
MKlist="$MKlist;chown $7.$G $1" | |||
} || { | |||
case $G in | |||
wheel)g=0;;kmem)g=2;;operator)g=5;;tty)g=4;;dialer)g=117;; | |||
esac | |||
[ "${grplist[$g]}" ] && { | |||
grplist[$g]="${grplist[$g]} $1" | |||
} || { | |||
groups="$groups $g" | |||
grplist[$g]="chgrp $G $1" | |||
} | |||
} | |||
return 0 | |||
} | |||
R() { | |||
[ "$DEBUG" ] && set -x | |||
for i in "$@" | |||
do | |||
U=`unt $i` | |||
[ "$U" ] || U=0 | |||
case $i in | |||
ramdisk) | |||
R std kbd pty0 tty00 ttyA0 ttyA1 ttyB0 ttyB1 | |||
R ttye0 ttye1 ttye2 ttye3 ttye4 ttye5 ttye6 | |||
R cd0 cd1 sd0 sd1 sd2 sd3 st0 st1 | |||
R fd0 fd1 wd0 wd1 rd0 random | |||
;; | |||
std) | |||
M console c 0 0 600 | |||
M tty c 1 0 | |||
M mem c 2 0 640 kmem | |||
M kmem c 2 1 640 kmem | |||
M null c 2 2 | |||
M zero c 2 12 | |||
M stdin c 21 0 | |||
M stdout c 21 1 | |||
M stderr c 21 2 | |||
M ksyms c 42 0 640 kmem | |||
M drum c 3 0 640 kmem | |||
M klog c 6 0 600 | |||
M reload c 2 20 600 | |||
;; | |||
ttyA[01]) | |||
M ttyA$U c 17 $U 660 dialer uucp | |||
M ttyM$U c 17 $(($U+128)) 660 dialer uucp | |||
;; | |||
par*) | |||
case $U in | |||
0) | |||
M par$U c 11 $U 600 | |||
;; | |||
*) | |||
echo bad unit for par in: $i | |||
;; | |||
esac | |||
;; | |||
ttye*) | |||
case $U in | |||
0|1|2|3|4|5|6) | |||
M ttye$U c 13 $U 600 | |||
;; | |||
*) | |||
echo bad unit for ttye in: $i | |||
;; | |||
esac | |||
;; | |||
grf*) | |||
case $U in | |||
0|1|2|3|4|5|6) | |||
M grf$U c 10 $U | |||
;; | |||
*) | |||
echo bad unit for grf in: $i | |||
;; | |||
esac | |||
# for those that need it, also make overlay and image devices: | |||
case $U in | |||
4) | |||
M grfov$U c 10 $(($U+16)) 600 | |||
M grfim$U c 10 $(($U+32)) 600 | |||
;; | |||
esac | |||
;; | |||
mouse*) | |||
case $U in | |||
0|1) | |||
M mouse$U c 15 $U | |||
if [ $U = 0 ] | |||
then | |||
MKlist="$MKlist;rm -f mouse; ln -s mouse$U mouse" | |||
fi | |||
;; | |||
*) | |||
echo bad unit for mouse in: $i | |||
;; | |||
esac | |||
;; | |||
view*) | |||
case $U in | |||
00|01|02|03|04|05|06|07|08|09) | |||
M view$U c 16 $U | |||
;; | |||
*) | |||
echo bad unit for view in: $i | |||
;; | |||
esac | |||
;; | |||
ttyB*) | |||
M ttyB$U c 32 $U 660 dialer uucp | |||
M cuaB$U c 32 $(($U+128)) 660 dialer uucp | |||
;; | |||
systrace) | |||
M systrace c 50 0 644 | |||
;; | |||
fd) | |||
RMlist="mkdir -p fd;$RMlist" n=0 | |||
while [ $n -lt 64 ];do M fd/$n c 21 $n;n=$(($n+1));done | |||
MKlist="$MKlist;chmod 555 fd" | |||
;; | |||
ch*) | |||
M ch$U c 40 $U 660 operator | |||
;; | |||
xfs*) | |||
M xfs$U c 51 $U 600 | |||
;; | |||
audio*) | |||
M sound$U c 39 $U | |||
M mixer$U c 39 $(($U+16)) | |||
M audio$U c 39 $(($U+128)) | |||
M audioctl$U c 39 $(($U+192)) | |||
MKlist="$MKlist;[ -e audio ] || ln -s audio$U audio" | |||
MKlist="$MKlist;[ -e mixer ] || ln -s mixer$U mixer" | |||
MKlist="$MKlist;[ -e sound ] || ln -s sound$U sound" | |||
MKlist="$MKlist;[ -e audioctl ] || ln -s audioctl$U audioctl" | |||
;; | |||
*random) | |||
n=0 | |||
for pre in " " s u p a | |||
do | |||
M ${pre}random c 35 $n 644 | |||
n=$(($n+1)) | |||
done | |||
;; | |||
uk*) | |||
M uk$U c 36 $U 640 operator | |||
;; | |||
ss*) | |||
M ss$U c 25 $(($U*16)) 640 operator | |||
M nss$U c 25 $(($(($U*16))+1)) 640 operator | |||
M enss$U c 25 $(($(($U*16))+3)) 640 operator | |||
RMlist="$RMlist scan$U" | |||
MKlist="$MKlist;umask 77;ln -s ss$U scan$U" | |||
;; | |||
pf*) | |||
M pf c 34 0 600 | |||
;; | |||
tun*) | |||
M tun$U c 23 $U 600 | |||
;; | |||
bpf*) | |||
M bpf$U c 22 $U 600 | |||
;; | |||
lkm) | |||
M lkm c 24 0 640 kmem | |||
;; | |||
joy*) | |||
M joy$U c 43 $U 666 | |||
;; | |||
kbd) | |||
M kbd c 14 0 600 | |||
;; | |||
lpt*|lpa*) | |||
case $i in | |||
lpt*) n=lpt f=0;; | |||
lpa*) n=lpa f=128;; | |||
esac | |||
M $n$U c 33 $(($U+$f)) 600 | |||
;; | |||
pty*) | |||
if [ $U -gt 15 ]; then | |||
echo bad unit for pty in: $i | |||
continue | |||
fi | |||
set -A tbl p q r s t u v w x y z P Q R S T | |||
name=${tbl[$U]} | |||
n=0 | |||
while [ $n -lt 16 ] | |||
do | |||
nam=$name$(hex $n) | |||
off=$(($U*16)) | |||
M tty$nam c 4 $(($off+$n)) | |||
M pty$nam c 5 $(($off+$n)) | |||
n=$(($n+1)) | |||
done | |||
;; | |||
tty0*) | |||
M tty$U c 12 $U 660 dialer uucp | |||
M cua$U c 12 $(($U+128)) 660 dialer uucp | |||
;; | |||
vnd*) | |||
dodisk vnd $U 6 19 $U 0 | |||
dodisk svnd $U 6 19 $U 128 | |||
;; | |||
cd*) | |||
dodisk2 cd $U 7 9 $U 0 8 | |||
;; | |||
rd*) | |||
dodisk2 rd $U 16 41 $U 0 | |||
;; | |||
fd*) | |||
case $U in 0|1|2|3) | |||
M fd${U}a b 2 $(($U*16)) 640 operator | |||
M fd${U}b b 2 $(($(($U*16))+1)) 640 operator | |||
M rfd${U}a c 18 $(($U*16)) 640 operator | |||
M rfd${U}b c 18 $(($(($U*16))+1)) 640 operator;; | |||
*) echo bad unit for floppy disk in: $i;; | |||
esac | |||
;; | |||
st*) | |||
n=$(($U*16)) | |||
for pre in " " n e en | |||
do | |||
M ${pre}st$U b 5 $n 660 operator | |||
M ${pre}rst$U c 20 $n 660 operator | |||
n=$(($n+1)) | |||
done | |||
;; | |||
local) | |||
test -s $T.local && sh $T.local | |||
;; | |||
all) | |||
R ccd0 ccd1 ccd2 ccd3 vnd0 vnd1 vnd2 vnd3 sd0 sd1 sd2 sd3 sd4 | |||
R sd5 sd6 sd7 sd8 sd9 cd0 cd1 rd0 tun0 tun1 tun2 tun3 bpf0 | |||
R bpf1 bpf2 bpf3 bpf4 bpf5 bpf6 bpf7 bpf8 bpf9 pty0 pty1 pty2 | |||
R xfs0 ss0 ss1 ch0 local kbd mouse0 mouse1 par0 grf0 grf1 grf2 | |||
R grf3 grf4 grf5 grf6 audio0 uk0 random joy0 joy1 lpa0 lpa1 | |||
R lpa2 lpt0 lpt1 lpt2 lkm ttye0 ttye1 ttye2 ttye3 ttye4 ttye5 | |||
R ttye6 tty00 tty01 tty02 tty03 ttyB0 ttyB1 ttyB2 ttyB3 ttyB4 | |||
R ttyA0 ttyA1 pf systrace fd0 fd1 fd2 fd3 wd0 wd1 wd2 wd3 std | |||
R st0 st1 fd | |||
;; | |||
wd*|sd*|ccd*) | |||
case $i in | |||
wd*) dodisk wd $U 0 37 $U 0;; | |||
sd*) dodisk sd $U 4 8 $U 0;; | |||
ccd*) dodisk ccd $U 8 7 $U 0;; | |||
esac | |||
;; | |||
*) | |||
echo $i: unknown device | |||
;; | |||
esac | |||
done | |||
} | |||
R "$@" | |||
if [ "$os" = "SunOS" ]; then | |||
eo=transform | |||
transform() { | |||
case $mode in | |||
600) mask=077;; | |||
640) mask=027;; | |||
660) mask=007;; | |||
644) mask=022;; | |||
666) mask=0;; | |||
440) mask=227;; | |||
esac | |||
echo `echo "$@"|sed \ | |||
's/mknod -m \([0-9]*\) /umask '$mask';mknod /;s/-m [0-9]* //g;\ | |||
s/operator/5/g;s/root.kmem/root.2/g;s/root\./root:/g'` | |||
} | |||
fi | |||
list="$RMlist" | |||
for mode in $modes; do | |||
list="$list;${mklist[$mode]}" | |||
done | |||
for group in $groups; do | |||
list="$list;${grplist[$group]}" | |||
done | |||
list="$list;$MKlist" | |||
if [ "$eo" = "echo" -o "$eo" = "transform" ]; then | |||
$eo "$list" | |||
else | |||
echo "$list" | sh | |||
fi |
@ -1,194 +0,0 @@ | |||
vers(__file__, | |||
{-$OpenBSD: MAKEDEV.md,v 1.11 2002/12/05 04:30:21 kjc Exp $-}, | |||
etc.MACHINE)dnl | |||
dnl | |||
dnl Copyright (c) 2001 Todd T. Fries <todd@OpenBSD.org> | |||
dnl All rights reserved. | |||
dnl | |||
dnl Redistribution and use in source and binary forms, with or without | |||
dnl modification, are permitted provided that the following conditions | |||
dnl are met: | |||
dnl 1. Redistributions of source code must retain the above copyright | |||
dnl notice, this list of conditions and the following disclaimer. | |||
dnl 2. The name of the author may not be used to endorse or promote products | |||
dnl derived from this software without specific prior written permission. | |||
dnl | |||
dnl THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, | |||
dnl INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY | |||
dnl AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL | |||
dnl THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | |||
dnl EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | |||
dnl PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; | |||
dnl OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | |||
dnl WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | |||
dnl OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | |||
dnl ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||
dnl | |||
dnl | |||
_TITLE(make) | |||
_DEV(all) | |||
_DEV(std) | |||
_DEV(local) | |||
_TITLE(tap) | |||
_DEV(st, 20, 5) | |||
_TITLE(dis) | |||
_DEV(aflo, 18, 2) | |||
_DEV(sd, 8, 4) | |||
_DEV(rd, 41, 16) | |||
_DEV(ccd, 7, 8) | |||
_DEV(wd, 37, 0) | |||
_DEV(cd, 9, 7, 8) | |||
_DEV(vnd, 19, 6) | |||
_TITLE(cons) | |||
_DEV(ttye) | |||
_TITLE(point) | |||
_DEV(amouse) | |||
_TITLE(term) | |||
_DEV(com, 12) | |||
_DEV(ttyA) | |||
_DEV(attyB) | |||
_TITLE(pty) | |||
_DEV(tty, 4) | |||
_DEV(pty, 5) | |||
_TITLE(prn) | |||
_DEV(par) | |||
_DEV(lpt, 33) | |||
_DEV(lpa) | |||
_TITLE(spec) | |||
_DEV(grf_amiga, 10) | |||
_DEV(kbd, 14) | |||
_DEV(joy, 43) | |||
_DEV(akbd, 14) | |||
_DEV(view) | |||
_DEV(aconf) | |||
_DEV(lkm, 24) | |||
_DEV(bpf, 22) | |||
_DEV(tun, 23) | |||
_DEV(pf, 34) | |||
_DEV(ss, 25) | |||
_DEV(uk, 36) | |||
_DEV(rnd, 35) | |||
_DEV(au, 39) | |||
_DEV(xfs, 51) | |||
_DEV(ch, 40) | |||
_DEV(fdesc, 21) | |||
_DEV(systrace, 50) | |||
dnl | |||
divert(7)dnl | |||
dnl | |||
ramdisk) | |||
_recurse std kbd pty0 tty00 ttyA0 ttyA1 ttyB0 ttyB1 | |||
_recurse ttye0 ttye1 ttye2 ttye3 ttye4 ttye5 ttye6 | |||
_recurse cd0 cd1 sd0 sd1 sd2 sd3 st0 st1 | |||
_recurse fd0 fd1 wd0 wd1 rd0 random | |||
;; | |||
_std(1, 2, 42, 3, 6) | |||
M reload c 2 20 600 | |||
;; | |||
ttyA[01]) | |||
M ttyA$U c 17 $U 660 dialer uucp | |||
M ttyM$U c 17 Add($U, 128) 660 dialer uucp | |||
;; | |||
par*) | |||
case $U in | |||
0) | |||
M par$U c 11 $U 600 | |||
;; | |||
*) | |||
echo bad unit for par in: $i | |||
;; | |||
esac | |||
;; | |||
ttye*) | |||
case $U in | |||
0|1|2|3|4|5|6) | |||
M ttye$U c 13 $U 600 | |||
;; | |||
*) | |||
echo bad unit for ttye in: $i | |||
;; | |||
esac | |||
;; | |||
grf*) | |||
case $U in | |||
0|1|2|3|4|5|6) | |||
M grf$U c 10 $U | |||
;; | |||
*) | |||
echo bad unit for grf in: $i | |||
;; | |||
esac | |||
# for those that need it, also make overlay and image devices: | |||
case $U in | |||
4) | |||
M grfov$U c 10 Add($U, 16) 600 | |||
M grfim$U c 10 Add($U, 32) 600 | |||
;; | |||
esac | |||
;; | |||
mouse*) | |||
case $U in | |||
0|1) | |||
M mouse$U c 15 $U | |||
if [ $U = 0 ] | |||
then | |||
MKlist="$MKlist;rm -f mouse; ln -s mouse$U mouse" | |||
fi | |||
;; | |||
*) | |||
echo bad unit for mouse in: $i | |||
;; | |||
esac | |||
;; | |||
view*) | |||
case $U in | |||
00|01|02|03|04|05|06|07|08|09) | |||
M view$U c 16 $U | |||
;; | |||
*) | |||
echo bad unit for view in: $i | |||
;; | |||
esac | |||
;; | |||
ttyB*) | |||
M ttyB$U c 32 $U 660 dialer uucp | |||
M cuaB$U c 32 Add($U, 128) 660 dialer uucp | |||
;; | |||
dnl | |||
dnl *** amiga specific device targets | |||
dnl | |||
target(all, ses, 0)dnl | |||
target(all, ch, 0)dnl | |||
target(all, ss, 0, 1)dnl | |||
target(all, xfs, 0)dnl | |||
twrget(all, flo, fd, 0, 0B, 0C, 0D, 0E, 0F, 0G, 0H)dnl | |||
twrget(all, flo, fd, 1, 1B, 1C, 1D, 1E, 1F, 1G, 1H)dnl | |||
target(all, pty, 0, 1, 2)dnl | |||
target(all, bpf, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9)dnl | |||
target(all, tun, 0, 1, 2, 3)dnl | |||
target(all, xy, 0, 1, 2, 3)dnl | |||
target(all, rd, 0)dnl | |||
target(all, cd, 0, 1)dnl | |||
target(all, sd, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9)dnl | |||
target(all, vnd, 0, 1, 2, 3)dnl | |||
target(all, ccd, 0, 1, 2, 3)dnl | |||
target(ramd, kbd)dnl | |||
target(ramd, pty, 0)dnl | |||
target(ramd, tty0, 0)dnl | |||
target(ramd, ttyA, 0, 1)dnl | |||
target(ramd, ttyB, 0, 1)dnl | |||
target(ramd, ttye, 0, 1, 2, 3, 4, 5, 6)dnl | |||
target(ramd, cd, 0, 1)dnl | |||
target(ramd, sd, 0, 1, 2, 3)dnl | |||
target(ramd, st, 0, 1)dnl | |||
target(ramd, fd, 0, 1)dnl | |||
target(ramd, wd, 0, 1)dnl | |||
target(ramd, rd, 0)dnl |
@ -1,23 +0,0 @@ | |||
# $OpenBSD: Makefile.inc,v 1.16 2002/05/13 07:22:42 espie Exp $ | |||
# etc.amiga/Makefile.inc -- amiga-specific etc Makefile targets | |||
MACHINE_HAS_TOOLS=Yes | |||
.ifdef DESTDIR | |||
snap_md: distrib bsd tools | |||
cp ${.CURDIR}/../sys/arch/amiga/compile/GENERIC/bsd \ | |||
${DESTDIR}/snapshot/bsd | |||
bsd: | |||
# The GENERIC kernel is built as a side-effect of the miniroot | |||
tools: | |||
mkdir -p ${DESTDIR}/snapshot/tools | |||
cp ${.CURDIR}/../sys/arch/amiga/stand/loadbsd/obj/loadbsd ${DESTDIR}/snapshot/tools | |||
.for I in devtostream rdbinfo streamtodev xdevtostream xstreamtodev \ | |||
device-streams.tgz | |||
cp ${.CURDIR}/../sys/arch/amiga/stand/device-streams/obj/${I} ${DESTDIR}/snapshot/tools | |||
.endfor | |||
.PHONY: bsd tools | |||
.endif # DESTDIR check |
@ -1,58 +0,0 @@ | |||
# | |||
# $OpenBSD: disktab,v 1.13 2002/06/09 06:15:14 todd Exp $ | |||
# $NetBSD: disktab,v 1.4 1995/11/28 05:40:23 jtc Exp $ | |||
# | |||
# Disk geometry and partition layout tables. | |||
# Key: | |||
# dt controller type | |||
# ty type of disk (fixed, removeable, simulated) | |||
# d[0-4] drive-type-dependent parameters | |||
# ns #sectors/track | |||
# nt #tracks/cylinder | |||
# nc #cylinders/disk | |||
# sc #sectors/cylinder, ns*nt default | |||
# su #sectors/unit, sc*nc default | |||
# se sector size, DEV_BSIZE default | |||
# rm rpm, 3600 default | |||
# sf supports bad144-style bad sector forwarding | |||
# sk sector skew per track, default 0 | |||
# cs sector skew per cylinder, default 0 | |||
# hs headswitch time, default 0 | |||
# ts one-cylinder seek time, default 0 | |||
# il sector interleave (n:1), 1 default | |||
# bs boot block size, default BBSIZE | |||
# sb superblock size, default SBSIZE | |||
# o[a-h] partition offsets in sectors | |||
# p[a-h] partition sizes in sectors | |||
# b[a-h] partition block sizes in bytes | |||
# f[a-h] partition fragment sizes in bytes | |||
# t[a-h] partition types (filesystem, swap, etc) | |||
# | |||
# All partition sizes reserve space for bad sector tables. | |||
# (5 cylinders needed for maintenance + replacement sectors) | |||
# | |||
floppy|floppy3|3in|Amiga 3.5in Double Density Floppy:\ | |||
:ty=floppy:se#512:nt#2:rm#300:ns#11:nc#80:\ | |||
:ts#3500:\ | |||
:ta=4.2BSD:pa#1760:oa#0:ba#4096:fa#512:\ | |||
:pb#0:ob#0:\ | |||
:pc#1760:oc#0: | |||
floppyhd|floppy3hd|3inhd|Amiga 3.5in High Density Floppy:\ | |||
:ty=floppy:se#512:nt#2:rm#300:ns#22:nc#80:\ | |||
:ts=3500:\ | |||
:pa#3520:oa#0:ba#4096:fa#512:\ | |||
:pb#0:ob#0:\ | |||
:pc#3520:oc#0: | |||
miniroot:\ | |||
:ty=winchester:se#512:nt#2:rm#300:ns#64:nc#80:\ | |||
:ts=3500:\ | |||
:pa#10240:oa#0:ba#8192:fa#1024:ta=4.2BSD:\ | |||
:pb#0:ob#0:\ | |||
:pc#10240:oc#0: | |||
rdroot|ramdiskroot|RAM-disk root FS image:\ | |||
:ty=simulated:se#512:nc#16:nt#2:ns#128:\ | |||
:ta=4.2BSD:oa#0:pa#3584:fa#1024:ba#8192:\ | |||
:ob#0:pb#0:oc#0:pc#3584: |
@ -1,26 +0,0 @@ | |||
# | |||
# $OpenBSD: ttys,v 1.9 2002/06/09 06:15:14 todd Exp $ | |||
# | |||
# name getty type status comments | |||
# | |||
# If the console is marked insecure, single-user requires | |||
# the root password. | |||
console "/usr/libexec/getty Pc" vt220 off secure | |||
ttye0 "/usr/libexec/getty Pc" vt220 on secure # custom chips | |||
ttye1 "/usr/libexec/getty Pc" vt220 on secure # retina | |||
ttye2 "/usr/libexec/getty Pc" vt220 on secure # retina | |||
ttye3 "/usr/libexec/getty Pc" vt220 on secure # cirrus logic | |||
ttye4 "/usr/libexec/getty Pc" vt220 on secure # a2410 | |||
ttye5 "/usr/libexec/getty Pc" vt220 on secure # CyberVision64 | |||
ttye6 "/usr/libexec/getty Pc" vt220 on secure # Domino, Merlin, oMniBus | |||
tty00 "/usr/libexec/getty std.9600" unknown off secure # int. serial | |||
ttyB0 "/usr/libexec/getty std.9600" unknown off secure # ISA serial | |||
ttyB1 "/usr/libexec/getty std.9600" unknown off secure # ISA serial | |||
ttyB2 "/usr/libexec/getty std.9600" unknown off secure # ISA serial | |||
ttyB3 "/usr/libexec/getty std.9600" unknown off secure # ISA serial | |||
ttyB4 "/usr/libexec/getty std.9600" unknown off secure # ISA serial | |||
ttyB5 "/usr/libexec/getty std.9600" unknown off secure # ISA serial | |||
ttyB6 "/usr/libexec/getty std.9600" unknown off secure # ISA serial | |||
ttyB7 "/usr/libexec/getty std.9600" unknown off secure # ISA serial | |||
ttyB8 "/usr/libexec/getty std.9600" unknown off secure # ISA serial | |||
ttyB9 "/usr/libexec/getty std.9600" unknown off secure # ISA serial |
@ -1,385 +0,0 @@ | |||
#!/bin/sh - | |||
# | |||
# THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT. | |||
# generated from: | |||
# | |||
# OpenBSD: etc.sun3/MAKEDEV.md,v 1.10 2002/12/05 04:30:21 kjc Exp | |||
# OpenBSD: MAKEDEV.mi,v 1.53 2002/12/05 04:30:21 kjc Exp | |||
# OpenBSD: MAKEDEV.sub,v 1.7 2002/02/16 01:19:52 deraadt Exp | |||
# | |||
# | |||
# Copyright (c) 2001,2002 Todd T. Fries <todd@OpenBSD.org> | |||
# All rights reserved. | |||
# | |||
# Redistribution and use in source and binary forms, with or without | |||
# modification, are permitted provided that the following conditions | |||
# are met: | |||
# 1. Redistributions of source code must retain the above copyright | |||
# notice, this list of conditions and the following disclaimer. | |||
# 2. The name of the author may not be used to endorse or promote products | |||
# derived from this software without specific prior written permission. | |||
# | |||
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, | |||
# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY | |||
# AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL | |||
# THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | |||
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | |||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; | |||
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | |||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | |||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | |||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||
# | |||
# Device "make" file. Valid arguments: | |||
# all makes all known devices, including local devices. | |||
# Tries to make the ``standard'' number of each type. | |||
# std standard devices | |||
# local configuration specific devices | |||
# Tapes: | |||
# st* SCSI tapes | |||
# Disks: | |||
# sd* SCSI disks | |||
# vnd* "file" pseudo-disks | |||
# ccd* concatenated disk devices | |||
# cd* SCSI cdrom drives | |||
# xy* Xylogic 450/451 disks | |||
# xd* Xylogic 753/7053 disks | |||
# Terminal ports: | |||
# tty[a-z]* Zilog 8530 Serial Port | |||
# Pseudo terminals: | |||
# tty* set of 16 slave psuedo terminals | |||
# pty* set of 16 master pseudo terminals | |||
# Printers: | |||
# Call units: | |||
# Special purpose devices: | |||
# bwtwo* | |||
# cgtwo* | |||
# cgfour* | |||
# bpf* Berkeley Packet Filter | |||
# pf* Packet Filter | |||
# tun* network tunnel driver | |||
# rd* "rd" pseudo-disks | |||
# *random inkernel random data source | |||
# uk* SCSI Unknown device | |||
# ss* SCSI scanners | |||
# fd makes fd/* for the fdescfs | |||
# xfs* XFS filesystem devices | |||
# systrace* system call tracing device | |||
# XXX - Keep /usr/etc so SunOS can find chown | |||
test -d /usr/etc && PATH=$PATH:/usr/etc | |||
PATH=/sbin:/usr/sbin:/bin:/usr/bin | |||
T=$0 | |||
# set this to echo for Echo-Only debugging | |||
[ "$eo" ] || eo= | |||
hex() | |||
{ | |||
case $1 in | |||
[0-9]) echo -n $1;; | |||
10) echo -n a;; | |||
11) echo -n b;; | |||
12) echo -n c;; | |||
13) echo -n d;; | |||
14) echo -n e;; | |||
15) echo -n f;; | |||
esac | |||
} | |||
trunc() | |||
{ | |||
# XXX pdksh can't seem to deal with locally scoped variables | |||
# in ${foo#$bar} expansions | |||
arg1="$1" | |||
arg2="$2" | |||
case $3 in | |||
l) echo ${arg2#$arg1} ;; | |||
r|*) echo ${arg1#$arg2} ;; | |||
esac | |||
} | |||
unt() | |||
{ | |||
# XXX pdksh can't seem to deal with locally scoped variables | |||
# in ${foo#$bar} expansions | |||
arg="$1" | |||
tmp="${arg#[a-zA-Z]*}" | |||
tmp="${tmp%*[a-zA-Z]}" | |||
while [ "$tmp" != "$arg" ] | |||
do | |||
arg=$tmp | |||
tmp="${arg#[a-zA-Z]*}" | |||
tmp="${tmp%*[a-zA-Z]}" | |||
done | |||
echo $arg | |||
} | |||
dodisk() | |||
{ | |||
[ "$DEBUG" ] && set -x | |||
n=$(($((${5}*${7:-16}))+${6})) count=0 | |||
RMlist="$RMlist $1$2? r$1$2?" | |||
[ 0$7 -ne 8 ] && l="i j k l m n o p" | |||
for d in a b c d e f g h $l | |||
do | |||
M $1$2$d b $3 $(($n+$count)) 640 | |||
M r$1$2$d c $4 $(($n+$count)) 640 | |||
let count=count+1 | |||
done | |||
MKlist="$MKlist;chown root.operator $1$2? r$1$2?" | |||
} | |||
dodisk2() | |||
{ | |||
n=$(($(($5*${7:-16}))+$6)) | |||
M $1$2a b $3 $n 640 operator | |||
M r$1$2a c $4 $n 640 operator | |||
n=$(($n+2)) | |||
M $1$2c b $3 $n 640 operator | |||
M r$1$2c c $4 $n 640 operator | |||
} | |||
# M name b/c major minor [mode] [group] | |||
RMlist="rm -f" | |||
MKlist=":" | |||
mkl() { | |||
[ "${mklist[$1]}" ] && { | |||
mklist[$1]="${mklist[$1]};mknod -m $1 $2 $3 $4 $5" | |||
} || { | |||
mklist[$1]="mknod -m $1 $2 $3 $4 $5" | |||
modes="$modes $1" | |||
} | |||
} | |||
M() { | |||
RMlist="$RMlist $1" | |||
mkl ${5-666} $1 $2 $3 $4 | |||
mklist="$mklist $1" | |||
G=${6:-wheel} | |||
[ "$7" ] && { | |||
MKlist="$MKlist;chown $7.$G $1" | |||
} || { | |||
case $G in | |||
wheel)g=0;;kmem)g=2;;operator)g=5;;tty)g=4;;dialer)g=117;; | |||
esac | |||
[ "${grplist[$g]}" ] && { | |||
grplist[$g]="${grplist[$g]} $1" | |||
} || { | |||
groups="$groups $g" | |||
grplist[$g]="chgrp $G $1" | |||
} | |||
} | |||
return 0 | |||
} | |||
R() { | |||
[ "$DEBUG" ] && set -x | |||
for i in "$@" | |||
do | |||
U=`unt $i` | |||
[ "$U" ] || U=0 | |||
case $i in | |||
ramdisk) | |||
R std random bpf0 sd0 sd1 rd0 cd0 | |||
;; | |||
std) | |||
M console c 0 0 600 | |||
M tty c 2 0 | |||
M mem c 3 0 640 kmem | |||
M kmem c 3 1 640 kmem | |||
M null c 3 2 | |||
M zero c 3 12 | |||
M stdin c 23 0 | |||
M stdout c 23 1 | |||
M stderr c 23 2 | |||
M ksyms c 37 0 640 kmem | |||
M drum c 7 0 640 kmem | |||
M klog c 16 0 600 | |||
M kd c 1 0 600 | |||
M eeprom c 3 11 640 kmem | |||
M mouse c 13 0 | |||
M fb c 22 0 | |||
M kbd c 29 0 | |||
M leds c 3 13 644 | |||
M vme16d16 c 3 5 600; MKlist="$MKlist;ln -s vme16d16 vme16" | |||
M vme24d16 c 3 6 600; MKlist="$MKlist;ln -s vme24d16 vme24" | |||
M vme32d16 c 3 7 600 | |||
M vme16d32 c 3 8 600 | |||
M vme24d32 c 3 9 600 | |||
M vme32d32 c 3 10 600; MKlist="$MKlist;ln -s vme32d32 vme32" | |||
RMlist="$RMlist vme16 vme24 vme32" | |||
;; | |||
systrace) | |||
M systrace c 86 0 644 | |||
;; | |||
xfs*) | |||
M xfs$U c 51 $U 600 | |||
;; | |||
fd) | |||
RMlist="mkdir -p fd;$RMlist" n=0 | |||
while [ $n -lt 64 ];do M fd/$n c 23 $n;n=$(($n+1));done | |||
MKlist="$MKlist;chmod 555 fd" | |||
;; | |||
ss*) | |||
M ss$U c 99 $(($U*16)) 640 operator | |||
M nss$U c 99 $(($(($U*16))+1)) 640 operator | |||
M enss$U c 99 $(($(($U*16))+3)) 640 operator | |||
RMlist="$RMlist scan$U" | |||
MKlist="$MKlist;umask 77;ln -s ss$U scan$U" | |||
;; | |||
uk*) | |||
M uk$U c 98 $U 640 operator | |||
;; | |||
*random) | |||
n=0 | |||
for pre in " " s u p a | |||
do | |||
M ${pre}random c 72 $n 644 | |||
n=$(($n+1)) | |||
done | |||
;; | |||
rd*) | |||
dodisk2 rd $U 13 52 $U 0 | |||
;; | |||
tun*) | |||
M tun$U c 24 $U 600 | |||
;; | |||
pf*) | |||
M pf c 75 0 600 | |||
;; | |||
bpf*) | |||
M bpf$U c 36 $U 600 | |||
;; | |||
cgfour*) | |||
M cgfour$U c 39 $U 666 | |||
;; | |||
cgtwo*) | |||
M cgtwo$U c 31 $U 666 | |||
;; | |||
bwtwo*) | |||
M bwtwo$U c 27 $U 666 | |||
;; | |||
pty*) | |||
if [ $U -gt 15 ]; then | |||
echo bad unit for pty in: $i | |||
continue | |||
fi | |||
set -A tbl p q r s t u v w x y z P Q R S T | |||
name=${tbl[$U]} | |||
n=0 | |||
while [ $n -lt 16 ] | |||
do | |||
nam=$name$(hex $n) | |||
off=$(($U*16)) | |||
M tty$nam c 20 $(($off+$n)) | |||
M pty$nam c 21 $(($off+$n)) | |||
n=$(($n+1)) | |||
done | |||
;; | |||
tty[a-z]) | |||
u=${i#tty*} | |||
case $u in | |||
a) n=0 ;; | |||
b) n=1 ;; | |||
c) n=4 ;; | |||
d) n=5 ;; | |||
*) echo unknown tty device $i ;; | |||
esac | |||
M tty$u c 12 $n 660 dialer uucp | |||
;; | |||
cd*) | |||
dodisk2 cd $U 18 58 $U 0 | |||
;; | |||
vnd*) | |||
dodisk vnd $U 5 19 $U 0 | |||
dodisk svnd $U 5 19 $U 128 | |||
;; | |||
st*) | |||
n=$(($U*16)) | |||
for pre in " " n e en | |||
do | |||
M ${pre}st$U b 11 $n 660 operator | |||
M ${pre}rst$U c 18 $n 660 operator | |||
n=$(($n+1)) | |||
done | |||
;; | |||
local) | |||
test -s $T.local && sh $T.local | |||
;; | |||
all) | |||
R ccd0 ccd1 ccd2 ccd3 vnd0 vnd1 vnd2 vnd3 sd0 sd1 sd2 sd3 sd4 | |||
R cd0 cd1 rd0 xy0 xy1 xy2 xy3 tun0 tun1 tun2 tun3 bpf0 bpf1 | |||
R bpf2 bpf3 bpf4 bpf5 bpf6 bpf7 bpf8 bpf9 pty0 pty1 pty2 xfs0 | |||
R ss0 ss1 local cgfour0 cgtwo0 bwtwo0 uk0 random ttya ttyb | |||
R ttyc ttyd pf systrace xd0 xd1 xd2 xd3 std st0 st1 fd | |||
;; | |||
xd*|xy*|sd*|ccd*) | |||
case $i in | |||
xd*) dodisk xd $U 10 42 $U 0;; | |||
xy*) dodisk xy $U 3 9 $U 0;; | |||
sd*) dodisk sd $U 7 17 $U 0;; | |||
ccd*) dodisk ccd $U 9 33 $U 0;; | |||
esac | |||
;; | |||
*) | |||
echo $i: unknown device | |||
;; | |||
esac | |||
done | |||
} | |||
R "$@" | |||
if [ "$os" = "SunOS" ]; then | |||
eo=transform | |||
transform() { | |||
case $mode in | |||
600) mask=077;; | |||
640) mask=027;; | |||
660) mask=007;; | |||
644) mask=022;; | |||
666) mask=0;; | |||
440) mask=227;; | |||
esac | |||
echo `echo "$@"|sed \ | |||
's/mknod -m \([0-9]*\) /umask '$mask';mknod /;s/-m [0-9]* //g;\ | |||
s/operator/5/g;s/root.kmem/root.2/g;s/root\./root:/g'` | |||
} | |||
fi | |||
list="$RMlist" | |||
for mode in $modes; do | |||
list="$list;${mklist[$mode]}" | |||
done | |||
for group in $groups; do | |||
list="$list;${grplist[$group]}" | |||
done | |||
list="$list;$MKlist" | |||
if [ "$eo" = "echo" -o "$eo" = "transform" ]; then | |||
$eo "$list" | |||
else | |||
echo "$list" | sh | |||
fi |
@ -1,109 +0,0 @@ | |||
vers(__file__, | |||
{-$OpenBSD: MAKEDEV.md,v 1.10 2002/12/05 04:30:21 kjc Exp $-}, | |||
etc.MACHINE)dnl | |||
dnl | |||
dnl Copyright (c) 2001 Todd T. Fries <todd@OpenBSD.org> | |||
dnl All rights reserved. | |||
dnl | |||
dnl Redistribution and use in source and binary forms, with or without | |||
dnl modification, are permitted provided that the following conditions | |||
dnl are met: | |||
dnl 1. Redistributions of source code must retain the above copyright | |||
dnl notice, this list of conditions and the following disclaimer. | |||
dnl 2. The name of the author may not be used to endorse or promote products | |||
dnl derived from this software without specific prior written permission. | |||
dnl | |||
dnl THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, | |||
dnl INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY | |||
dnl AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL | |||
dnl THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | |||
dnl EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | |||
dnl PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; | |||
dnl OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | |||
dnl WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | |||
dnl OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | |||
dnl ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||
dnl | |||
dnl | |||
_TITLE(make) | |||
_DEV(all) | |||
_DEV(std) | |||
_DEV(local) | |||
_TITLE(tap) | |||
_DEV(st, 18, 11) | |||
_TITLE(dis) | |||
_DEV(sd, 17, 7) | |||
_DEV(vnd, 19, 5) | |||
_DEV(ccd, 33, 9) | |||
_DEV(cd, 58, 18) | |||
_DEV(xy, 9, 3) | |||
_DEV(xd, 42, 10) | |||
_TITLE(term) | |||
_DEV(tzs, 12) | |||
dnl _DEV(czs, 12) | |||
_TITLE(pty) | |||
_DEV(tty, 20) | |||
_DEV(pty, 21) | |||
_TITLE(prn) | |||
_TITLE(call) | |||
_TITLE(spec) | |||
_DEV(btw, 27) | |||
_DEV(ctw, 31) | |||
_DEV(cfr, 39) | |||
_DEV(bpf, 36) | |||
_DEV(pf, 75) | |||
_DEV(tun, 24) | |||
_DEV(rd, 52, 13) | |||
_DEV(rnd, 72) | |||
_DEV(uk, 98) | |||
_DEV(ss, 99) | |||
_DEV(fdesc, 23) | |||
_DEV(xfs, 51) | |||
_DEV(systrace, 86) | |||
dnl | |||
divert(2)dnl | |||
dnl | |||
# XXX - Keep /usr/etc so SunOS can find chown | |||
test -d /usr/etc && PATH=$PATH:/usr/etc | |||
dnl | |||
divert(7)dnl | |||
dnl | |||
ramdisk) | |||
R std random bpf0 sd0 sd1 rd0 cd0 | |||
;; | |||
_std(2, 3, 37, 7, 16) | |||
M kd c 1 0 600 | |||
M eeprom c 3 11 640 kmem | |||
M mouse c 13 0 | |||
M fb c 22 0 | |||
M kbd c 29 0 | |||
M leds c 3 13 644 | |||
M vme16d16 c 3 5 600; MKlist="$MKlist;ln -s vme16d16 vme16" | |||
M vme24d16 c 3 6 600; MKlist="$MKlist;ln -s vme24d16 vme24" | |||
M vme32d16 c 3 7 600 | |||
M vme16d32 c 3 8 600 | |||
M vme24d32 c 3 9 600 | |||
M vme32d32 c 3 10 600; MKlist="$MKlist;ln -s vme32d32 vme32" | |||
RMlist="$RMlist vme16 vme24 vme32" | |||
;; | |||
dnl | |||
dnl *** sun3 specific targets | |||
dnl | |||
target(all, ses, 0)dnl | |||
target(all, ch, 0)dnl | |||
target(all, ss, 0, 1)dnl | |||
target(all, xfs, 0)dnl | |||
twrget(all, flo, fd, 0, 0B, 0C, 0D, 0E, 0F, 0G, 0H)dnl | |||
twrget(all, flo, fd, 1, 1B, 1C, 1D, 1E, 1F, 1G, 1H)dnl | |||
target(all, pty, 0, 1, 2)dnl | |||
target(all, bpf, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9)dnl | |||
target(all, tun, 0, 1, 2, 3)dnl | |||
target(all, xy, 0, 1, 2, 3)dnl | |||
target(all, hk, 0, 1, 2, 3)dnl | |||
target(all, rd, 0)dnl | |||
target(all, cd, 0, 1)dnl | |||
target(all, sd, 0, 1, 2, 3, 4)dnl | |||
target(all, vnd, 0, 1, 2, 3)dnl | |||
target(all, ccd, 0, 1, 2, 3)dnl |
@ -1,19 +0,0 @@ | |||
# $OpenBSD: Makefile.inc,v 1.5 2002/05/13 07:22:43 espie Exp $ | |||
# etc.sun3/Makefile.inc -- sun3-specific etc Makefile targets | |||
.ifdef DESTDIR | |||
snap_md: bsd bootblocks distrib | |||
cp ${.CURDIR}/../sys/arch/sun3/compile/GENERIC/bsd \ | |||
${DESTDIR}/snapshot/bsd | |||
bsd: | |||
cd ${.CURDIR}/../sys/arch/sun3/conf && config GENERIC | |||
cd ${.CURDIR}/../sys/arch/sun3/compile/GENERIC && \ | |||
${MAKE} clean && ${MAKE} depend && exec ${MAKE} | |||
bootblocks: | |||
cp ${DESTDIR}/usr/mdec/*boot* ${DESTDIR}/snapshot | |||
.PHONY: bsd bootblocks | |||
.endif # DESTDIR check |
@ -1,50 +0,0 @@ | |||
# $OpenBSD: README,v 1.4 2002/06/09 06:15:15 todd Exp $ -*- text -*- | |||
OpenBSD/Sun3 Binary Snapshot | |||
This FTP directory contains a binary snapshot of OpenBSD/Sun3. This | |||
can't be considered a working, stable release yet. | |||
The OpenBSD/sun3 port should run on the following Sun3 machines (* means | |||
having being tested): | |||
Sun3/50 | |||
Sun3/60 | |||
Sun3/110 | |||
Sun3/160* | |||
Sun3/260* | |||
Devices currently supported include(* means having being tested): | |||
Intel Ether (ie), on-board* or VME | |||
Lance Ether (le), on-board | |||
SCSI (sd,st,...), on-board or VME*. Sun-2 SCSI not supported yet. | |||
keyboard/display console* | |||
serial port (ttya/ttyb) console* | |||
Other Features: | |||
Generic kernel supports root on: sd[0123], ie0, le0 | |||
Kernel debugger included (ddb) | |||
Runs SunOS binaries (see sparc sun shared lib notes) | |||
There's still a lot left to do. Most of the code is borrowed from | |||
NetBSD, and new code is being tested right now, but didn't make into | |||
this snapshot. | |||
To use this, all you need to do it unpack everything onto the disk that | |||
will be used for root and usr, which can be either a real disk or some | |||
part of your NFS server. | |||
Don't forget to setup correct devices nodes after installing the | |||
tarballs. Run something like: | |||
(cd dev ; MAKEDEV std) | |||
If you have any questions or comments about this port,or want to help, | |||
please contact the Sun3 portmaster: <miod@openbsd.org> | |||
I'm sorry this port isn't in good shape to be really usable now, but it | |||
will mature over the next few months. | |||
Enjoy anyway! | |||
-- | |||
Miod Vallat |
@ -1,61 +0,0 @@ | |||
# | |||
# $OpenBSD: disktab,v 1.7 2002/06/09 06:15:15 todd Exp $ | |||
# $NetBSD: disktab,v 1.3 1995/11/21 20:58:33 gwr Exp $ | |||
# | |||
# Disk geometry and partition layout tables. | |||
# Key: | |||
# dt controller type | |||
# ty type of disk (fixed, removeable, simulated) | |||
# d[0-4] drive-type-dependent parameters | |||
# ns #sectors/track | |||
# nt #tracks/cylinder | |||
# nc #cylinders/disk | |||
# sc #sectors/cylinder, ns*nt default | |||
# su #sectors/unit, sc*nc default | |||
# se sector size, DEV_BSIZE default | |||
# rm rpm, 3600 default | |||
# sf supports bad144-style bad sector forwarding | |||
# sk sector skew per track, default 0 | |||
# cs sector skew per cylinder, default 0 | |||
# hs headswitch time, default 0 | |||
# ts one-cylinder seek time, default 0 | |||
# il sector interleave (n:1), 1 default | |||
# bs boot block size, default BBSIZE | |||
# sb superblock size, default SBSIZE | |||
# o[a-h] partition offsets in sectors | |||
# p[a-h] partition sizes in sectors | |||
# b[a-h] partition block sizes in bytes | |||
# f[a-h] partition fragment sizes in bytes | |||
# t[a-h] partition types (filesystem, swap, etc) | |||
# | |||
# All partition sizes reserve space for bad sector tables. | |||
# (5 cylinders needed for maintenance + replacement sectors) | |||
# | |||
wren7|Seagate Wren 7:\ | |||
:dt=SCSI:ty=winchester:\ | |||
:nc#1632:ns#52:nt#15:\ | |||
:se#512:\ | |||
:rm#3600:\ | |||
:pa#65520:oa#0:ta=4.2BSD:\ | |||
:pb#65520:ob#65520:tb=swap:\ | |||
:pc#1272960:oc#0:\ | |||
:pd#65520:od#131040:td=4.2BSD:\ | |||
:pg#1076400:og#196560:tg=4.2BSD: | |||
rdroot|ramdiskroot|RAM-disk root FS image:\ | |||
:ty=ramdisk:se#512:nt#2:ns#128:nc#16:\ | |||
:pa#4046:oa#0:ta=4.2BSD:ba#4096:fa#512:\ | |||
:pb#0:ob#0:tb=swap:\ | |||
:pc#4046:oc#0: | |||
miniroot:\ | |||
:ty=winchester:se#512:nt#2:rm#300:ns#64:nc#80:\ | |||
:ts=3500:\ | |||
:pa#10240:oa#0:ba#8192:fa#1024:ta=4.2BSD:\ | |||
:pb#0:ob#0:\ | |||
:pc#10240:oc#0: | |||
rdroot-sparc:\ | |||
:ty=ramdisk:se#512:nt#2:rm#300:ns#8:nc#1024:\ | |||
:pa#8192:oa#0:ta=4.2BSD:ba#8192:fa#1024: \ | |||
:pc#8192:oc#0: |
@ -1,23 +0,0 @@ | |||
#!/bin/sh | |||
# $OpenBSD: install.sh,v 1.3 2002/06/09 06:15:15 todd Exp $ | |||
umask 0 | |||
[ "$TARDIR" ] || { echo "$0: set TARDIR first" ; exit 1; } | |||
while read f | |||
do | |||
gzip -d < $TARDIR/$f | tar xvpf - | |||
done << \END_LIST | |||
etc.tar.gz | |||
dev.tar.gz | |||
var.tar.gz | |||
bin.tar.gz | |||
sbin.tar.gz | |||
usr.bin.tar.gz | |||
usr.games.tar.gz | |||
usr.include.tar.gz | |||
usr.lib.tar.gz | |||
usr.libexec.tar.gz | |||
usr.misc.tar.gz | |||
usr.sbin.tar.gz | |||
usr.share.tar.gz | |||
END_LIST |
@ -1,2 +0,0 @@ | |||
#kern.maxproc=250 # if you intend to rebuild OpenBSD, or other | |||
# make-intensive process, increase this value |
@ -1,13 +0,0 @@ | |||
# | |||
# $OpenBSD: ttys,v 1.4 2002/06/09 06:15:15 todd Exp $ | |||
# | |||
# name getty type status comments | |||
# | |||
# Note: you may want to change the "default" entry in /etc/gettytab | |||
# to make "no parity" the default (add the :np: flag). | |||
# | |||
# Also: the console is one of: kd, ttya, ttyb | |||
console "/usr/libexec/getty std.9600" sun off secure | |||
kd "/usr/libexec/getty std.9600" sun on secure | |||
ttya "/usr/libexec/getty std.9600" unknown on secure | |||
ttyb "/usr/libexec/getty std.9600" unknown off secure |