1 #!/bin/sh 2 # 3 # Here is a generic script that makes a Sun3 boot tape using 4 # the files in this directory. The tape layout is: 5 # 6 # segment 0: tapeboot 7 # segment 1: netbsd.sun3 (RAMDISK3) 8 # segment 2: netbsd.sun3x (RAMDISK3X) 9 # segment 3: miniroot image 10 # 11 # $NetBSD: MakeBootTape,v 1.4 1998/02/12 20:32:44 gwr Exp $ 12 13 T=${1:-/dev/nrst0} 14 15 # Entertain... 16 set -x 17 18 # Make sure we start at the beginning. 19 mt -f $T rewind 20 21 # Segment 1 is the tapeboot program. 22 dd if=tapeboot of=$T obs=8k conv=sync 23 24 # Segment 2 is the Sun3 ramdisk kernel. 25 gzip -d -c ../../binary/kernel/netbsd-rd.sun3.gz | 26 dd of=$T obs=8k conv=sync 27 28 # Segment 3 is the Sun3X ramdisk kernel. 29 gzip -d -c ../../binary/kernel/netbsd-rd.sun3x.gz | 30 dd of=$T obs=8k conv=sync 31 32 # Segment 4 is the miniroot image, unzipped! 33 gzip -d -c ../miniroot/miniroot.gz | 34 dd of=$T obs=8k 35 36 # Done! 37 mt -f $T rewind 38 39