A    Creating a Consolidated CD-ROM

A consolidated CD-ROM lets you upgrade your processor firmware at the same time that you install the operating system. This appendix describes how to create a consolidated CD-ROM.

This release includes the documentation and utilities that you need to build a consolidated CD-ROM in ISO9660-compliant Rock Ridge format. This documentation includes the disklabel(8) and mkisofs(8) reference pages.

To build a consolidated CD-ROM, you need the following:

  1. The operating system CD-ROM in UFS format

  2. The appropriate Alpha System firmware update CD-ROM

The following information is included in this appendix:

A.1    Build Instructions

The following sections describe how to prepare and build a consolidated CD-ROM.

A.1.1    How to Prepare for the Build

After you receive a new kit, follow these steps to move the necessary files from the CD-ROM to working directories on the build machine.

Note

The examples in this appendix use the C shell.

  1. Use the disklabel utility to set up a 635 Mb partition on a spare disk, starting at block 0, with a size of 1300480 512-byte blocks and a file system type of unused. Create a mount point for this partition (such as /cdimage) to use later.

    For example, to set partition c of rz6 starting at offset 0 with a size of 1300480, and create mount point /cdimage:

    disklabel -F -r -e rz6
    write new label [y] y
    mkdir /cdimage

  2. Mount the operating system CD-ROM to a temporary mount point (such as /mnt) and use the tar command to copy the contents of the CD-ROM onto a suitably large directory on the system (at least 1.5Gb). After this is done, unmount the CD-ROM.

    Note

    This step may take as long as 60 minutes to complete.

    For example, using /spare as the target directory and rz4 as the CD-ROM drive:

    mount -r /dev/rz4c /mnt
    cd /mnt
    tar cf /spare/digital_unix_v40f.tar .
    cd /
    umount /mnt

A.1.2    How to Build a Consolidated CD-ROM

After you have completed the steps in Section A.1.1, follow these steps to consolidate the necessary data to a single CD-ROM in ISO9660-compliant format:

  1. Use the newfs command to initialize a file system on the partition reserved in Step 1 of Section A.1.1 and mount it to the mount point /cdimage. If you are prompted for confirmation, enter y. Use the tar utility to copy the base operating system image created in Step 2 of Section A.1.1 to /cdimage.

    Note

    This step may take as long as 60 minutes to complete.

    For example, using /spare as the source and rz6c as the target partition:

    newfs /dev/rz6c
    mount /dev/rz6c /cdimage
    cd /cdimage
    tar xpf /spare/digital_unix_v40f.tar
    cd /

  2. Optionally use the following multiple step operation to copy the firmware images to the target directory:

    Note

    You cannot repackage firmware or software unless you have a specific licensing agreement with Compaq Computer Corporation which allows you to do so.

    1. Mount the appropriate Alpha System firmware update CD-ROM to a temporary mount point such as /mnt. For example, using /dev/rz4c as the CD-ROM drive:

      mount -t cdfs -r /dev/rz4c /mnt

    2. Copy the System Marketing Model (SMM) table from the appropriate Alpha System firmware update CD-ROM to the target directory. The SSM table maps system models to firmware image files.

      cp /mnt/SMMTABLE.TXT\;1 /cdimage/smmtable.txt

      Note

      The target file name must be in lower case with the ;1 removed from the end.

    3. Look in the SMM table to find the name and locations of the firmware images to be copied by entering the following command:

      more /mnt/SMMTABLE.TXT\;1

      As an example, the entry for the EV5 AlphaServer 1000A platform is similar to the following example (the actual table entry is on one line):

          27    5    1270,1311,1558,1580-1581\
          [ALPHA1000A]AS1000A_E5_V5_1.EXE;1\
          6    5.1    !    AlphaServer 1000A 5/xxx
      

      In this example, the firmware file on the CD-ROM is AS1000A_E5_V5_1.EXE;1.

    4. Create the appropriate firmware directories in the target directory, and copy each of the platform firmware images that you want from the appropriate Alpha System firmware update CD-ROM.

      Caution

      The target file name must be in lower case with the ";1" removed from the end. Otherwise, the fwupgrade program cannot locate the firmware images. If the source file is AS1000A_E5_V5.1.EXE;1, the target file is as1000a_e5_v5_1.exe.

      For example, using the file names on the appropriate Alpha System firmware update CD-ROM:

      mkdir /cdimage/alpha800
      mkdir /cdimage/alpha1000a
      mkdir /cdimage/as4x00
      cp /mnt/ALPHA800/AS800_V5_1.EXE\;1 \
           /cdimage/alpha800/as800_v5_1.exe
      cp /mnt/ALPHA1000A/AS1000A_E5_V5_1.EXE\;1 \
           /cdimage/alpha1000a/as1000a_e5_v5_1.exe

      cp /mnt/AS4X00/AS4X00_IMAGE.EXE\;1 \
           /cdimage/as4x00/as4x00_image.exe

    5. Unmount and remove the firmware CD-ROM.

      umount /mnt

  3. Use the mkisofs program to build the target CDFS file image of the directory structure in /cdimage. For example, using /spare as the target location for the image:

    /usr/bin/mkisofs -D -R -a -d -o \
     /spare/consolidate_digital_unix.cdfs /cdimage/

    Refer to the mkisofs(8) reference page for more information.

  4. Use the disklabelcommand to insert a label into the file generated in Step 3.

    disklabel -r -w -t cdfs -f \
     /spare/consolidate_digital_unix.cdfs \
     /mdec/rzboot.cdfs /mdec/bootrz.cdfs

    Refer to the disklabel(8) reference page for more information.

The CD image file /spare/consolidate_digital_unix.cdfs is ready to be loaded onto a CD-ROM.

A.2    Sample Build Session

The following assumptions are made for the examples in this section:

Note

The examples in this appendix use the C shell.

A.2.1    Preparing for the Build Session

Follow these steps to prepare for the CD-ROM build session:

  1. Log in as root, and enter the following commands:

    cd /
    disklabel -F -r -e rz6
    write new label? [y] y
    mkdir /cdimage

  2. Place the operating system CD-ROM into the CD-ROM drive, and enter the following commands:

    mount -r /dev/rz4c /mnt
    cd /mnt
    tar cf /spare/digital_unix_v40f.tar .
    cd /
    umount /mnt

  3. Remove the operating system CD-ROM from the drive. The preparatory steps are complete.

A.2.2    Building a Consolidated CD-ROM

Follow these steps to build a consolidated CD-ROM:

  1. Log in as root, and enter the following commands:

    cd /
    newfs /dev/rz6c
    mount /dev/rz6c /cdimage
    cd /cdimage
    tar xpf /spare/digital_unix_v40f.tar
    cd /

  2. Place the appropriate Alpha System firmware update CD-ROM into the CD-ROM drive, and enter the following:

    mount -t cdfs -r /dev/rz4a /mnt
    cp /mnt/SMMTABLE.TXT\;1 /cdimage/smmtable.txt
    more /cdimage/smmtable.txt

  3. Review the output to determine the appropriate directory and file names for the firmware images that you want.

    Note

    This example uses the same firmware images as Step 2d of Section A.1.2:

    mkdir /cdimage/alpha800
    mkdir /cdimage/alpha1000a
    mkdir /cdimage/as4x00
    cp /mnt/ALPHA800/AS800_V5_1.EXE\;1 \
         /cdimage/alpha800/as800_v5_1.exe
    cp /mnt/ALPHA1000A/AS1000A_E5_V5_1.EXE\;1 \
         /cdimage/alpha1000a/as1000a_e5_v5_1.exe

    cp /mnt/AS4X00/AS4X00_IMAGE.EXE\;1 \
         /cdimage/as4x00/as4x00_image.exe
    umount /mnt

  4. Remove the appropriate Alpha System firmware update CD-ROM, and enter the following commands:

    /usr/bin/mkisofs -D -R -a -d -o
     /spare/consolidate_digital_unix.cdfs /cdimage/

    Output is similar to the following:

    Note

    The backslashes ( \ ) in this example indicate line continuation and are not present in the output.

    Using OSFMANWO.000;1 for \ 
    /cdimage/ALPHA/BASE/instctrl/OSFMANWOS440.scp \
    (OSFMANWOP440.scp)
    Using OSFMANWO.001;1 for \
    /cdimage/ALPHA/BASE/instctrl/OSFMANWOS440.inv \
    (OSFMANWOP440.inv)
    Using OSFMANWO.002;1 for \
     /cdimage/ALPHA/BASE/instctrl/OSFMANWOS440.ctrl \
    (OSFMANWOP440.ctrl)
                    .
                    .
                    .
    Using PROCFS_V.000;1 for \
     /cdimage/usr/sys/procfs/procfs_vnops_stubs.c \
    (procfs_vfsops_stubs.c)
      3.92% done, estimate finish Fri Oct 22 15:36:59
      5.87% done, estimate finish Fri Oct 22 15:39:24
                    .
                    .
                    .
     99.74% done, estimate finish Fri Oct 22 15:41:52
    Total extents actually written = 255673
    Total translation table size: 0
    Total rockridge attributes bytes: 2066594
    Total directory bytes: 4239360
    Path table size(bytes): 10130
    Max brk space used b9ec60
    255673 extents written (499 Mb)

     

  5. Enter the following commands:

    disklabel -r -w -t cdfs -f \ 
     /spare/consolidate_digital_unix.cdfs \ 
     /mdec/rzboot.cdfs /mdec/bootrz.cdfs

The information is consolidated, and the file can be burned onto a CD-ROM.