Expand PMF_FN_* macros.
[netbsd-mini2440.git] / distrib / sun2 / MakeBootTape
blob86eabde960fee191a4b5fca8a7e76d1e9dc015a5
1 #!/bin/sh
3 # Here is a generic script that makes a Sun2 boot tape using
4 # the files in this directory. The tape layout is:
6 # segment 0: tapeboot
7 # segment 1: netbsd (RAMDISK)
8 # segment 3: miniroot image
10 # $NetBSD: MakeBootTape,v 1.3 2002/05/08 15:32:58 fredette Exp $
12 T=${1:-/dev/nrst0}
14 # Entertain...
15 set -x
17 # Make sure we start at the beginning.
18 mt -f $T rewind
20 # Segment 1 is the tapeboot program.
21 dd if=tapeboot of=$T obs=8k conv=sync
23 # Segment 2 is the Sun2 ramdisk kernel.
24 gzip -d -c ../../binary/kernel/netbsd-RAMDISK.gz |
25 dd of=$T obs=8k conv=sync
27 # Segment 3 is the miniroot image, unzipped!
28 gzip -d -c ../miniroot/miniroot.fs.gz |
29 dd of=$T obs=8k
31 # Done!
32 mt -f $T rewind