1997-12-18 23:17:48 +03:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Here is a generic script that makes a Sun3 boot tape using
|
1998-02-12 23:32:44 +03:00
|
|
|
# the files in this directory. The tape layout is:
|
1997-12-18 23:17:48 +03:00
|
|
|
#
|
1998-02-12 23:32:44 +03:00
|
|
|
# segment 0: tapeboot
|
|
|
|
# segment 1: netbsd.sun3 (RAMDISK3)
|
|
|
|
# segment 2: netbsd.sun3x (RAMDISK3X)
|
|
|
|
# segment 3: miniroot image
|
|
|
|
#
|
2000-06-20 03:46:06 +04:00
|
|
|
# $NetBSD: MakeBootTape,v 1.6 2000/06/19 23:46:06 tsutsui Exp $
|
1997-12-18 23:17:48 +03:00
|
|
|
|
|
|
|
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
|
|
|
|
|
1998-02-12 23:32:44 +03:00
|
|
|
# Segment 2 is the Sun3 ramdisk kernel.
|
2000-06-20 03:46:06 +04:00
|
|
|
gzip -d -c ../../binary/kernel/netbsd.RAMDISK.gz |
|
1998-02-12 23:32:44 +03:00
|
|
|
dd of=$T obs=8k conv=sync
|
|
|
|
|
|
|
|
# Segment 3 is the Sun3X ramdisk kernel.
|
2000-06-20 03:46:06 +04:00
|
|
|
gzip -d -c ../../binary/kernel/netbsd.RAMDISK3X.gz |
|
1997-12-20 05:52:49 +03:00
|
|
|
dd of=$T obs=8k conv=sync
|
1997-12-18 23:17:48 +03:00
|
|
|
|
1998-02-12 23:32:44 +03:00
|
|
|
# Segment 4 is the miniroot image, unzipped!
|
1997-12-20 05:52:49 +03:00
|
|
|
gzip -d -c ../miniroot/miniroot.gz |
|
|
|
|
dd of=$T obs=8k
|
1997-12-18 23:17:48 +03:00
|
|
|
|
|
|
|
# Done!
|
|
|
|
mt -f $T rewind
|
|
|
|
|