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.6 2000/06/19 23:46:06 tsutsui Exp $
12
13T=${1:-/dev/nrst0}
14
15# Entertain...
16set -x
17
18# Make sure we start at the beginning.
19mt -f $T rewind
20
21# Segment 1 is the tapeboot program.
22dd if=tapeboot of=$T obs=8k conv=sync
23
24# Segment 2 is the Sun3 ramdisk kernel.
25gzip -d -c ../../binary/kernel/netbsd-RAMDISK.gz |
26  dd of=$T obs=8k conv=sync
27
28# Segment 3 is the Sun3X ramdisk kernel.
29gzip -d -c ../../binary/kernel/netbsd-RAMDISK3X.gz |
30  dd of=$T obs=8k conv=sync
31
32# Segment 4 is the miniroot image, unzipped!
33gzip -d -c ../miniroot/miniroot.gz |
34  dd of=$T obs=8k
35
36# Done!
37mt -f $T rewind
38
39