MakeBootTape revision 1.4
11.1Sgwr#!/bin/sh 21.1Sgwr# 31.1Sgwr# Here is a generic script that makes a Sun3 boot tape using 41.4Sgwr# the files in this directory. The tape layout is: 51.1Sgwr# 61.4Sgwr# segment 0: tapeboot 71.4Sgwr# segment 1: netbsd.sun3 (RAMDISK3) 81.4Sgwr# segment 2: netbsd.sun3x (RAMDISK3X) 91.4Sgwr# segment 3: miniroot image 101.4Sgwr# 111.4Sgwr# $NetBSD: MakeBootTape,v 1.4 1998/02/12 20:32:44 gwr Exp $ 121.1Sgwr 131.1SgwrT=${1:-/dev/nrst0} 141.1Sgwr 151.1Sgwr# Entertain... 161.1Sgwrset -x 171.1Sgwr 181.1Sgwr# Make sure we start at the beginning. 191.1Sgwrmt -f $T rewind 201.1Sgwr 211.1Sgwr# Segment 1 is the tapeboot program. 221.1Sgwrdd if=tapeboot of=$T obs=8k conv=sync 231.1Sgwr 241.4Sgwr# Segment 2 is the Sun3 ramdisk kernel. 251.4Sgwrgzip -d -c ../../binary/kernel/netbsd-rd.sun3.gz | 261.4Sgwr dd of=$T obs=8k conv=sync 271.4Sgwr 281.4Sgwr# Segment 3 is the Sun3X ramdisk kernel. 291.4Sgwrgzip -d -c ../../binary/kernel/netbsd-rd.sun3x.gz | 301.3Sgwr dd of=$T obs=8k conv=sync 311.1Sgwr 321.4Sgwr# Segment 4 is the miniroot image, unzipped! 331.3Sgwrgzip -d -c ../miniroot/miniroot.gz | 341.3Sgwr dd of=$T obs=8k 351.1Sgwr 361.1Sgwr# Done! 371.1Sgwrmt -f $T rewind 381.1Sgwr 39