Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib/vax/floppy Add a makefile to make boot.fs for vax.



details:   https://anonhg.NetBSD.org/src/rev/4287cdfe9fb0
branches:  trunk
changeset: 504545:4287cdfe9fb0
user:      matt <matt%NetBSD.org@localhost>
date:      Sun Mar 04 20:28:50 2001 +0000

description:
Add a makefile to make boot.fs for vax.

diffstat:

 distrib/vax/floppy/Makefile   |  50 +++++++++++++++++++++++++++++++++++++++++++
 distrib/vax/floppy/floppy.lbl |  23 +++++++++++++++++++
 2 files changed, 73 insertions(+), 0 deletions(-)

diffs (81 lines):

diff -r e11ff4cdf173 -r 4287cdfe9fb0 distrib/vax/floppy/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/vax/floppy/Makefile       Sun Mar 04 20:28:50 2001 +0000
@@ -0,0 +1,50 @@
+#      $NetBSD: Makefile,v 1.1 2001/03/04 20:28:50 matt Exp $
+
+TOP=           ${.CURDIR}/..
+
+.include "${TOP}/Makefile.inc"
+.include <bsd.own.mk>
+.include <bsd.kernobj.mk>
+
+IMAGE=         boot.fs
+INSTKERNOBJ!=  cd ${.CURDIR}/../ramdisk-kernel && ${PRINTOBJDIR}
+KERN=          ${KERNOBJDIR}/INSTALL/netbsd
+
+MOUNT_POINT?=  /mnt
+VND?=          vnd0
+VND_DEV=       /dev/${VND}a
+VND_RDEV=      /dev/r${VND}a
+VND_RDEVC=     /dev/r${VND}c
+FD?=           fd0
+FD_RDEV=       /dev/r${FD}a
+MDEC=          ${DESTDIR}/usr/mdec
+
+DISKTYPE=      rx23
+
+CLEANFILES+=   boot.fs
+
+dependall all: ${MDEC}/boot ${INSTKERNOBJ}/netbsd.INSTALL.gz
+       dd if=/dev/zero of=${IMAGE} bs=1440k count=1
+       vnconfig -t ${DISKTYPE} -v -c ${VND} ${IMAGE}
+       disklabel -Rr ${VND} ${.CURDIR}/floppy.lbl
+       newfs -B le -m 0 -o space -i 56000 -c 80 -f 512 -b 4096 ${VND_RDEV}
+       mount ${VND_DEV} ${MOUNT_POINT}
+       cp ${MDEC}/boot ${MOUNT_POINT}/boot
+       cp ${INSTKERNOBJ}/netbsd.INSTALL.gz ${MOUNT_POINT}/netbsd
+       @echo ""
+       @df -i ${MOUNT_POINT}
+       @echo ""
+       @echo "installing new bootblocks"
+       sync
+       umount ${MOUNT_POINT}
+       vnconfig -u ${VND}
+       ${MDEC}/installboot -v ${IMAGE} ${MDEC}/xxboot
+
+unconfig:
+       -umount -f ${MOUNT_POINT}
+       -vnconfig -u ${VND}
+
+clean cleandir distclean:
+       rm -f *.core ${IMAGE} ${CLEANFILES}
+
+.include <bsd.obj.mk>
diff -r e11ff4cdf173 -r 4287cdfe9fb0 distrib/vax/floppy/floppy.lbl
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/vax/floppy/floppy.lbl     Sun Mar 04 20:28:50 2001 +0000
@@ -0,0 +1,23 @@
+# /dev/rvnd0c:
+type: floppy
+disk: rx23
+label: 
+flags: removable
+bytes/sector: 512
+sectors/track: 18
+tracks/cylinder: 2
+sectors/cylinder: 36
+cylinders: 80
+total sectors: 2880
+rpm: 300
+interleave: 1
+trackskew: 0
+cylinderskew: 0
+headswitch: 0          # microseconds
+track-to-track seek: 0 # microseconds
+drivedata: 0 
+
+3 partitions:
+#        size   offset     fstype   [fsize bsize   cpg]
+  a:     2880        0     4.2BSD      512  4096   32    # (Cyl.    0 - 79)
+  c:     2880        0     unused      512  4096         # (Cyl.    0 - 79)



Home | Main Index | Thread Index | Old Index