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