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