summaryrefslogtreecommitdiff
path: root/distrib/mvme68k/ramdisk
diff options
context:
space:
mode:
authorDale S. Rahn <rahnds@cvs.openbsd.org>1997-02-16 03:26:26 +0000
committerDale S. Rahn <rahnds@cvs.openbsd.org>1997-02-16 03:26:26 +0000
commit112d1cd0ee73679d167b1febc7d8cd2dab2baadc (patch)
treecb57377ab084c0ebc293a1cc9299a3c09e36f211 /distrib/mvme68k/ramdisk
parent48fce0ea04fe4dc12d70596e1cd0c83f3c4c568b (diff)
Add the final? pieces to support mvme68k ramdisk support.
uses rdsetroot to create a ramdisk in a kernel image.
Diffstat (limited to 'distrib/mvme68k/ramdisk')
-rw-r--r--distrib/mvme68k/ramdisk/Makefile39
-rw-r--r--distrib/mvme68k/ramdisk/list6
2 files changed, 33 insertions, 12 deletions
diff --git a/distrib/mvme68k/ramdisk/Makefile b/distrib/mvme68k/ramdisk/Makefile
index 1564c9c38aa..e074c968288 100644
--- a/distrib/mvme68k/ramdisk/Makefile
+++ b/distrib/mvme68k/ramdisk/Makefile
@@ -8,9 +8,11 @@ CRUNCHCONF?= ${.CURDIR}/${CBIN}.conf
BASE=miniroot
MOUNT_POINT= /mnt1
-BDEV= /dev/vnd0a
-CDEV= /dev/rvnd0a
-RDEV= /dev/vnd0c
+BDEV= /dev/rd0a
+CDEV= /dev/rrd0a
+RDEV= /dev/rd0c
+
+KERNEL= ${SRCSYSDIR}/arch/mvme68k/compile/MINIROOT/bsd
all: ${CBIN} ${IMAGE}
@echo "all done"
@@ -29,14 +31,29 @@ ${IMAGE}: do_prep do_mount do_files do_umount_copy do_unconfig
rm rd.pid;\
fi
+rdsetroot: ${TOP}/common/rdsetroot.c
+ ${HOSTCC} -o rdsetroot ${TOP}/common/rdsetroot.c
+
+setroot: bsd
+ rdsetroot bsd < miniroot-12.fs
+
+bsd: ${KERNEL}
+ cp ${KERNEL} bsd
+
+writetape:
+ echo rewinding tape < /dev/rst0
+ buffer -i /usr/mdec/stboot -o /dev/nrst0
+ buffer -i /usr/mdec/bootst -o /dev/nrst0
+ buffer -B -p75 -i bsd -o /dev/nrst0
+ echo rewinding tape < /dev/rst0
+
+
do_prep: ${CBIN} do_unconfig
- #sh ${.CURDIR}/start_rdconfig.sh ${CDEV} ${NBLKS}
- dd if=/dev/zero of=${IMAGE} bs=1k count=2048
- vnconfig -cv ${RDEV} ${IMAGE}
- disklabel -r -w ${RDEV} ${DISKTYPE}
+ sh ${.CURDIR}/start_rdconfig.sh ${RDEV} ${NBLKS}
+ disklabel -w ${RDEV} ${DISKTYPE}
do_mount:
- -newfs ${NEWFSARGS} -s ${NBLKS} ${BDEV} ${DISKTYPE}
+ -newfs ${NEWFSARGS} -s ${NBLKS} ${CDEV} ${DISKTYPE}
mount ${BDEV} ${MOUNT_POINT}
do_umount_copy:
@@ -48,7 +65,11 @@ do_umount_copy:
do_unconfig:
-umount ${MOUNT_POINT}
- -vnconfig -u ${RDEV}
+ if [ -e rd.pid ] ; then \
+ kill `< rd.pid`; \
+ rm rd.pid; \
+ fi
+
.PRECIOUS: ${IMAGE}
diff --git a/distrib/mvme68k/ramdisk/list b/distrib/mvme68k/ramdisk/list
index 6e74e0ed812..14ce3f05fe2 100644
--- a/distrib/mvme68k/ramdisk/list
+++ b/distrib/mvme68k/ramdisk/list
@@ -1,4 +1,4 @@
-# $OpenBSD: list,v 1.1 1997/02/15 04:27:17 rahnds Exp $
+# $OpenBSD: list,v 1.2 1997/02/16 03:26:25 rahnds Exp $
COPY ${OBJDIR}/raminst raminst
LINK raminst bin/cat
@@ -72,8 +72,8 @@ COPY ${DESTDIR}/etc/services etc
COPY ${DESTDIR}/etc/spwd.db etc
# and the common installation tools
-COPY ${TOPDIR}/inst-common/dot.commonutils .commonutils
-COPY ${TOPDIR}/inst-common/termcap.vt usr/share/misc/termcap
+COPY ${TOPDIR}/common/dot.commonutils .commonutils
+COPY ${TOPDIR}/common/termcap.vt usr/share/misc/termcap
# the disktab explanation file
COPY disktab.preinstall etc