2001-05-18 04:16:36 +04:00
|
|
|
#!/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
|
|
|
|
#
|
2002-11-18 15:39:43 +03:00
|
|
|
# $NetBSD: MakeBootTape,v 1.4 2002/11/18 12:39:55 lukem Exp $
|
2001-05-18 04:16:36 +04: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
|
|
|
|
|
|
|
|
# Segment 2 is the Sun2 ramdisk kernel.
|
2002-11-18 15:39:43 +03:00
|
|
|
gzip -d -c ../../binary/kernel/netbsd-RAMDISK.gz |
|
2001-05-18 04:16:36 +04:00
|
|
|
dd of=$T obs=8k conv=sync
|
|
|
|
|
2001-12-17 23:27:39 +03:00
|
|
|
# Segment 3 is the miniroot image, unzipped!
|
2002-05-08 19:32:58 +04:00
|
|
|
gzip -d -c ../miniroot/miniroot.fs.gz |
|
2001-05-18 04:16:36 +04:00
|
|
|
dd of=$T obs=8k
|
|
|
|
|
|
|
|
# Done!
|
|
|
|
mt -f $T rewind
|
|
|
|
|