db1b5537b4
etc/Makefile uses ${KERNEL}.${CONFIGFILE}.gz.
39 lines
875 B
Bash
Executable File
39 lines
875 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Here is a generic script that makes a Sun3 boot tape using
|
|
# the files in this directory. The tape layout is:
|
|
#
|
|
# segment 0: tapeboot
|
|
# segment 1: netbsd.sun3 (RAMDISK3)
|
|
# segment 2: netbsd.sun3x (RAMDISK3X)
|
|
# segment 3: miniroot image
|
|
#
|
|
# $NetBSD: MakeBootTape,v 1.6 2000/06/19 23:46:06 tsutsui 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 Sun3 ramdisk kernel.
|
|
gzip -d -c ../../binary/kernel/netbsd.RAMDISK.gz |
|
|
dd of=$T obs=8k conv=sync
|
|
|
|
# Segment 3 is the Sun3X ramdisk kernel.
|
|
gzip -d -c ../../binary/kernel/netbsd.RAMDISK3X.gz |
|
|
dd of=$T obs=8k conv=sync
|
|
|
|
# Segment 4 is the miniroot image, unzipped!
|
|
gzip -d -c ../miniroot/miniroot.gz |
|
|
dd of=$T obs=8k
|
|
|
|
# Done!
|
|
mt -f $T rewind
|
|
|