diff options
author | Per Fogelstrom <pefo@cvs.openbsd.org> | 1997-05-18 13:42:40 +0000 |
---|---|---|
committer | Per Fogelstrom <pefo@cvs.openbsd.org> | 1997-05-18 13:42:40 +0000 |
commit | 682086e3b2a5dfa0f09c911f6e3651bcd5cb2aca (patch) | |
tree | 240e2647221fbc16a4b6561dfad9466c07b795a8 | |
parent | d2847b39ba5d0c9dedabbbe49582bb324da7ee75 (diff) |
ARC ramdisk install stuff
-rw-r--r-- | etc/Makefile | 8 | ||||
-rw-r--r-- | etc/etc.arc/MAKEDEV | 19 | ||||
-rw-r--r-- | etc/etc.arc/Makefile.inc | 8 | ||||
-rw-r--r-- | etc/etc.arc/disktab | 6 | ||||
-rw-r--r-- | etc/etc.arc/mbr | bin | 0 -> 512 bytes | |||
-rw-r--r-- | etc/etc.arc/msdos5mb.gz | bin | 0 -> 9191 bytes |
6 files changed, 32 insertions, 9 deletions
diff --git a/etc/Makefile b/etc/Makefile index f94859e4b45..c6af883b67d 100644 --- a/etc/Makefile +++ b/etc/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.57 1997/05/16 18:02:22 deraadt Exp $ +# $OpenBSD: Makefile,v 1.58 1997/05/18 13:42:36 pefo Exp $ TZDIR= /usr/share/zoneinfo LOCALTIME= US/Pacific @@ -45,7 +45,7 @@ GZIPEXT= all clean cleandir depend etc install lint: .ifndef DESTDIR -distribution-etc-root-var distribution distrib-dirs snapshot: +distribution-etc-root-var distribution distrib-dirs release snapshot: @echo setenv DESTDIR before doing that! @false .else @@ -155,6 +155,10 @@ distribution-etc-root-var: distrib-dirs (cd etc.${MACHINE}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ ld.so.conf ${DESTDIR}/etc) .endif +.if ${MACHINE} == "arc" + (cd etc.${MACHINE}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ + mbr msdos5mb.gz ${DESTDIR}/usr/mdec) +.endif (cd ${DESTDIR}/dev; ./MAKEDEV all) .if ${MACHINE} == "vax" (cd etc.vax; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${PCS} \ diff --git a/etc/etc.arc/MAKEDEV b/etc/etc.arc/MAKEDEV index addf9ce23e1..0b35eb3b20b 100644 --- a/etc/etc.arc/MAKEDEV +++ b/etc/etc.arc/MAKEDEV @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: MAKEDEV,v 1.17 1997/05/14 18:31:15 niklas Exp $ +# $OpenBSD: MAKEDEV,v 1.18 1997/05/18 13:42:37 pefo Exp $ # @(#)MAKEDEV 8.1 (Berkeley) 6/9/93 # @@ -73,6 +73,11 @@ all) sh MAKEDEV ttyC0 lpt0 pms0 random bpf0 local ;; +ramdisk) + sh MAKEDEV std fd0 wd0 wd1 wd2 wd3 sd0 sd1 sd2 st0 acd0 cd0 + sh MAKEDEV tty00 tty01 ttyC0 lpt0 random rd0 + ;; + std) mknod console c 0 0 mknod drum c 1 0 ; chmod 640 drum ; chown root.kmem drum @@ -160,7 +165,17 @@ bpf*|tun*) chown root.wheel $name$unit ;; -# ;; +rd*) + umask 2 ; unit=`expr $i : '.*d\(.*\)'` + mknod rd${unit}a b 8 `expr $unit '*' 16 + 0` + mknod rd${unit}c b 8 `expr $unit '*' 16 + 2` + mknod rrd${unit}a c 22 `expr $unit '*' 16 + 0` + mknod rrd${unit}c c 22 `expr $unit '*' 16 + 2` + chown root.operator rd${unit}[ac] rrd${unit}[ac] + chmod 640 rd${unit}[ac] rrd${unit}[ac] + umask 77 + ;; + #lkm) # rm -f lkm # mknod lkm c 112 0 diff --git a/etc/etc.arc/Makefile.inc b/etc/etc.arc/Makefile.inc index 19b45e91aef..39bd6700053 100644 --- a/etc/etc.arc/Makefile.inc +++ b/etc/etc.arc/Makefile.inc @@ -1,10 +1,10 @@ -# $OpenBSD: Makefile.inc,v 1.2 1997/02/09 08:50:15 deraadt Exp $ +# $OpenBSD: Makefile.inc,v 1.3 1997/05/18 13:42:37 pefo Exp $ # # etc.arc/Makefile.inc -- arc-specific etc Makefile targets .ifdef DESTDIR -snap_md: binutils bsd +snap_md: binutils bsd ramdisk binutils: cd ${DESTDIR} && tar cf - usr/*openbsd* \ @@ -19,4 +19,8 @@ bsd: cp ${.CURDIR}/../sys/arch/arc/compile/GENERIC/bsd.ecoff \ ${DESTDIR}/snapshot/bsd.ecoff +ramdisk: + cd ${.CURDIR}/../distrib/arc/ramdisk && make cleandir && \ + make && make install + .endif diff --git a/etc/etc.arc/disktab b/etc/etc.arc/disktab index dedb9a90150..1d6d5701e62 100644 --- a/etc/etc.arc/disktab +++ b/etc/etc.arc/disktab @@ -29,9 +29,9 @@ # rdroot|ramdiskroot|RAM-disk root FS image:\ - :ty=simulated:se#512:nc#16:nt#2:ns#128:\ - :ta=4.2BSD:oa#0:pa#4046:fa#512:ba#4096:\ - :ob#0:pb#0:oc#0:pc#4096: + :ty=simulated:se#512:nc#20:nt#5:ns#200:\ + :ta=4.2BSD:oa#0:pa#20000:fa#1024:ba#4096:\ + :ob#0:pb#0:oc#0:pc#20000: # Seagate ST31200N ST31200N-MBR:\ diff --git a/etc/etc.arc/mbr b/etc/etc.arc/mbr Binary files differnew file mode 100644 index 00000000000..5c3d71a2999 --- /dev/null +++ b/etc/etc.arc/mbr diff --git a/etc/etc.arc/msdos5mb.gz b/etc/etc.arc/msdos5mb.gz Binary files differnew file mode 100644 index 00000000000..6508b105bf3 --- /dev/null +++ b/etc/etc.arc/msdos5mb.gz |