Annotation of coherent/d/kernel/USRSYS/Build, revision 1.1

1.1     ! root        1: :
        !             2: :  Build a Coherent executable with a host adapter driver linked in.
        !             3: :
        !             4: DRIVERS="rm fl lp mm"
        !             5: COH_TYPE=fl
        !             6: HD=""
        !             7: KB=nkb
        !             8: for ARG
        !             9: do
        !            10:        case $ARG in
        !            11:        at|aha|ss)
        !            12:                HD=$ARG
        !            13:                COH_TYPE=$ARG
        !            14:                ;;
        !            15:        kb|nkb)
        !            16:                KB=$ARG
        !            17:                ;;
        !            18:        *)              echo "Usage: $0 { at | ss | aha } { kb | nkb }"
        !            19:                        exit 0
        !            20:                        ;;
        !            21:        esac
        !            22: done
        !            23: DRIVERS="$KB $HD $DRIVERS"
        !            24: echo "Kernel:    /coh.$COH_TYPE"
        !            25: echo "Devices:   $DRIVERS"
        !            26: 
        !            27: : default root/pipe device
        !            28: BOOTDEV="fva0"
        !            29: echo "Default root/pipe device is $BOOTDEV."
        !            30: 
        !            31: ( cd /usr/src/sys/i8086/drv; make -f Makefile install )        || exit 1
        !            32: ./config ibm-at $DRIVERS root=$BOOTDEV                 || exit 1
        !            33: cp coherent /tmp/coh                                   || exit 1
        !            34: strip /tmp/coh                                         || exit 1
        !            35: set `ls -s /tmp/coh`
        !            36: SIZE=$1
        !            37: rm /tmp/coh                                            || exit 1
        !            38: echo "Coherent bootable limit is 138 blocks.  This kernel is $SIZE"
        !            39: if [ $SIZE -gt 138 ] ;then
        !            40:        echo 
        !            41:        echo Your Coherent image exceeds the bootable limit of 138 blocks
        !            42:        echo by `expr $SIZE - 138` 'block(s).'  You will need to decrease the
        !            43:        echo size of your kernel in order to make it bootable.
        !            44:        echo
        !            45:        echo We suggest removing some of the non critical drivers from the
        !            46:        echo default list of drivers linked into Coherent.  These additional
        !            47:        echo drivers may then be linked as loadable drivers using the
        !            48:        echo ldconfig script located in this directory.
        !            49: fi
        !            50: mv coherent /coh.$COH_TYPE
        !            51: chown sys /coh.$COH_TYPE
        !            52: chgrp sys /coh.$COH_TYPE
        !            53: chmod 400 /coh.$COH_TYPE
        !            54: echo "New kernel in /coh.$COH_TYPE"
        !            55: ls -l /coh.$COH_TYPE

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.