Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/i386/floppies/ramdisk Change how ramdisk is sized so...
details: https://anonhg.NetBSD.org/src/rev/06cb7b38d6e2
branches: trunk
changeset: 485258:06cb7b38d6e2
user: sommerfeld <sommerfeld%NetBSD.org@localhost>
date: Sun Apr 23 15:04:25 2000 +0000
description:
Change how ramdisk is sized so we can actually use more than 1.44mb of
space.
Adjust RAMDISKCYLS and/or RAMDISKSPC to change the ramdisk geometry.
the total blocks on the ramdisk is computed automagically from this.
diffstat:
distrib/i386/floppies/ramdisk/Makefile | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
diffs (36 lines):
diff -r 9f9ff3c43264 -r 06cb7b38d6e2 distrib/i386/floppies/ramdisk/Makefile
--- a/distrib/i386/floppies/ramdisk/Makefile Sun Apr 23 14:17:32 2000 +0000
+++ b/distrib/i386/floppies/ramdisk/Makefile Sun Apr 23 15:04:25 2000 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.23 2000/03/16 14:56:19 ad Exp $
+# $NetBSD: Makefile,v 1.24 2000/04/23 15:04:25 sommerfeld Exp $
TOP= ${.CURDIR}/..
WARNS=1
@@ -27,7 +27,9 @@
CRUNCHCONF= ${CBIN}.conf
MTREE= mtree.conf
-DISKTYPE= floppy3
+RAMDISKSPC= 128
+RAMDISKCYLS= 23
+RAMDISKSIZE!= expr ${RAMDISKSPC} \* ${RAMDISKCYLS}
install.sh: install.tmpl
sed "s/@@VERSION@@/${VER}/" < ${.ALLSRC} > ${.TARGET}
@@ -39,10 +41,11 @@
sed "s/@@VERSION@@/${VER}/" < ${.ALLSRC} > ${.TARGET}
realall: ${AUXTARGETS} ${CBIN} ${AUXDEPENDS} ${MTREE} ${LISTS}
- dd if=/dev/zero of=${IMAGE} count=3072
- vnconfig -t ${DISKTYPE} -v -c ${VND_CDEV} ${IMAGE}
- disklabel -rw ${VND_CDEV} ${DISKTYPE}
- newfs -B le -m 0 -o space -i 3950 -c 80 ${VND_RDEV} ${DISKTYPE}
+ dd if=/dev/zero of=${IMAGE} count=${RAMDISKSIZE}
+ vnconfig -v -c ${VND_CDEV} ${IMAGE} 512/${RAMDISKSPC}/1/${RAMDISKCYLS}
+ -disklabel ${VND_CDEV} >tmplabel
+ disklabel -r -R ${VND_CDEV} tmplabel
+ newfs -B le -m 0 -o space -i 3950 -c 80 ${VND_RDEV}
mount ${VND_DEV} ${MOUNT_POINT}
mtree -def ${.CURDIR}/${MTREE} -p ${MOUNT_POINT}/ -U
TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \
Home |
Main Index |
Thread Index |
Old Index