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