Browse Source

ARC ramdisk install stuff

OPENBSD_2_1
pefo 27 years ago
parent
commit
5a12b1f66c
6 changed files with 32 additions and 9 deletions
  1. +6
    -2
      src/etc/Makefile
  2. +17
    -2
      src/etc/etc.arc/MAKEDEV
  3. +6
    -2
      src/etc/etc.arc/Makefile.inc
  4. +3
    -3
      src/etc/etc.arc/disktab
  5. BIN
      src/etc/etc.arc/mbr
  6. BIN
      src/etc/etc.arc/msdos5mb.gz

+ 6
- 2
src/etc/Makefile View File

@ -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 TZDIR= /usr/share/zoneinfo
LOCALTIME= US/Pacific LOCALTIME= US/Pacific
@ -45,7 +45,7 @@ GZIPEXT=
all clean cleandir depend etc install lint: all clean cleandir depend etc install lint:
.ifndef DESTDIR .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! @echo setenv DESTDIR before doing that!
@false @false
.else .else
@ -154,6 +154,10 @@ distribution-etc-root-var: distrib-dirs
.if (${MACHINE_ARCH} == "mips") .if (${MACHINE_ARCH} == "mips")
(cd etc.${MACHINE}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ (cd etc.${MACHINE}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
ld.so.conf ${DESTDIR}/etc) 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 .endif
(cd ${DESTDIR}/dev; ./MAKEDEV all) (cd ${DESTDIR}/dev; ./MAKEDEV all)
.if ${MACHINE} == "vax" .if ${MACHINE} == "vax"


+ 17
- 2
src/etc/etc.arc/MAKEDEV View File

@ -1,6 +1,6 @@
#!/bin/sh - #!/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 # @(#)MAKEDEV 8.1 (Berkeley) 6/9/93
# #
@ -73,6 +73,11 @@ all)
sh MAKEDEV ttyC0 lpt0 pms0 random bpf0 local 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) std)
mknod console c 0 0 mknod console c 0 0
mknod drum c 1 0 ; chmod 640 drum ; chown root.kmem drum mknod drum c 1 0 ; chmod 640 drum ; chown root.kmem drum
@ -160,7 +165,17 @@ bpf*|tun*)
chown root.wheel $name$unit 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) #lkm)
# rm -f lkm # rm -f lkm
# mknod lkm c 112 0 # mknod lkm c 112 0


+ 6
- 2
src/etc/etc.arc/Makefile.inc View File

@ -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 # etc.arc/Makefile.inc -- arc-specific etc Makefile targets
.ifdef DESTDIR .ifdef DESTDIR
snap_md: binutils bsd
snap_md: binutils bsd ramdisk
binutils: binutils:
cd ${DESTDIR} && tar cf - usr/*openbsd* \ cd ${DESTDIR} && tar cf - usr/*openbsd* \
@ -19,4 +19,8 @@ bsd:
cp ${.CURDIR}/../sys/arch/arc/compile/GENERIC/bsd.ecoff \ cp ${.CURDIR}/../sys/arch/arc/compile/GENERIC/bsd.ecoff \
${DESTDIR}/snapshot/bsd.ecoff ${DESTDIR}/snapshot/bsd.ecoff
ramdisk:
cd ${.CURDIR}/../distrib/arc/ramdisk && make cleandir && \
make && make install
.endif .endif

+ 3
- 3
src/etc/etc.arc/disktab View File

@ -29,9 +29,9 @@
# #
rdroot|ramdiskroot|RAM-disk root FS image:\ 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 # Seagate ST31200N
ST31200N-MBR:\ ST31200N-MBR:\


BIN
src/etc/etc.arc/mbr View File


BIN
src/etc/etc.arc/msdos5mb.gz View File


Loading…
Cancel
Save