Expand PMF_FN_* macros.
[netbsd-mini2440.git] / distrib / sun3 / MakeBootTape
blob9683c63b57320b8f8701a2181746eb114a372f6a
1 #!/bin/sh
3 # Here is a generic script that makes a Sun3 boot tape using
4 # the files in this directory. The tape layout is:
6 # segment 0: tapeboot
7 # segment 1: netbsd.sun3 (RAMDISK3)
8 # segment 2: netbsd.sun3x (RAMDISK3X)
9 # segment 3: miniroot image
11 # $NetBSD: MakeBootTape,v 1.6 2000/06/19 23:46:06 tsutsui Exp $
13 T=${1:-/dev/nrst0}
15 # Entertain...
16 set -x
18 # Make sure we start at the beginning.
19 mt -f $T rewind
21 # Segment 1 is the tapeboot program.
22 dd if=tapeboot of=$T obs=8k conv=sync
24 # Segment 2 is the Sun3 ramdisk kernel.
25 gzip -d -c ../../binary/kernel/netbsd-RAMDISK.gz |
26 dd of=$T obs=8k conv=sync
28 # Segment 3 is the Sun3X ramdisk kernel.
29 gzip -d -c ../../binary/kernel/netbsd-RAMDISK3X.gz |
30 dd of=$T obs=8k conv=sync
32 # Segment 4 is the miniroot image, unzipped!
33 gzip -d -c ../miniroot/miniroot.gz |
34 dd of=$T obs=8k
36 # Done!
37 mt -f $T rewind