Before shipping a product to customers, you should test the installation of the kit by using the same procedures that your customers will use. You should run these tests on hardware configurations that resemble your customers' systems. When you know that the installation procedure works correctly, you should document it and ship it as part of the product kit.
This chapter describes how to test the installation of a user product, kernel product, and foreign device kit, and how to install a kit in a RIS environment.
See the Installation Guide for more information on using the setld utility to install layered products.
For example, the /dev/none driver would be installed
as follows, if the kit were distributed on CD-ROM:
See the Installation Guide for more information on using the setld utility to install layered products. See doconfig(8) for more information on the doconfig utility.
Figure 6-4 shows the steps that osfboot
takes to build a kernel that includes the foreign device.
The following steps show how
to install the /dev/edgd driver as a foreign device:
To install the product in the RIS area on the server, run the ris utility as follows:
To install the product kit from the RIS server onto the client
system, register the client system with the RIS server, then use the setld utility, as follows:
6.1 Installing a User Product
To install a user
product, log onto the system as superuser or root and run
the setld utility.
For example, the ODB
product could be installed as follows. In this example, the kit is distributed
on CD-ROM.
# mkdir /cdrom
# mount -r /dev/rz4c /cdrom
After mounting the CD-ROM, you can change to the /cdrom directory and view the directories on the CD-ROM.
# setld -l /cdrom/ALPHA/OAT100
The setld utility displays prompts and messages to guide
you through the process of selecting the subsets you want to install. After
it loads the subsets, setld calls the subset control program
for each subset. Figure 6-1 shows the links and
dependencies that the ODB subset control program creates.
Figure 6-1: Defining Links and Dependicies for the ODB User Product
# umount /cdrom
6.2 Installing a Kernel Product
To install a
kernel product, log onto the system as superuser or root
and run the setld utility. If the driver is statically
configured, you must also reconfigure the kernel to incorporate the driver
into the system.
# mkdir /cdrom
# mount -r /dev/rz4c /cdrom
# setld -l /cdrom/ALPHA/ESA100
The setld utility displays prompts and messages to guide
you through the process of selecting the subsets you want to install. After
it loads the subsets onto the system, setld invokes the
subset control program to statically or dynamically configure the driver. Figure 6-2 shows the steps the subset control program takes
to statically configure the driver; Figure 6-3 shows
the steps the subset control program takes to dynamically configure the driver.
# umount /cdrom
# /usr/sbin/shutdown -r now
When the system starts up, the /dev/none driver is available
on the system.
Figure 6-2: Statically Configuring a Driver
Figure 6-3: Dynamically Configuring a Driver
6.3 Installing a Foreign Device Kit
You
install a foreign device kit with the osfboot utility,
which runs from the console prompt. To follow this procedure, you need two
kits: the CD-ROM that contains the Digital UNIX base system and the
diskette or CD-ROM that contains the foreign device kit. You specify
the kit for the foreign device during the initial installation and bootstrap
of the system. The osfboot utility runs the device driver
from the foreign device kit during installation, then builds it into the kernel
during the bootstrap operation.
Figure 6-4: Bootstrap Linking with a Foreign Device Kit
>>> boot -fl "fg" dka400
The utility reads bootstrap
code from the CD-ROM.
Enter Device Name: dva0
For a list of device names, enter the following
command:
>>> sho dev
Enter Kit Name: edgd.kit
Insert media for kit 'dva0:edgd.kit', press Return
when ready: [Return]
Enter Kit Name: [Return]
Insert boot media, press Return
when ready: [Return]
Insert media for kit 'dva0:edgd.kit', press Return
when ready: [Return]
Insert boot media, press Return when ready: [Return]
This step repeats once for each kit you
named. Later in the installation procedure, the setld utility
installs the kits and builds a kernel configuration that includes them.
6.4 Installing a User or Kernel Product into a RIS Area
You can use the RIS utility to install a kernel product
kit onto a RIS server for use by RIS client installations.
# /usr/sbin/ris
*** RIS Utility Main Menu ***
Choices without key letters are not available.
a) ADD a client
d) DELETE software products
i) INSTALL software products
) LIST registered clients
) MODIFY a client
) REMOVE a client
s) SHOW software products in remote installation
environments
x) EXIT
Enter your choice: i
RIS Software Installation Menu:
1) Install software into a new area
2) Add software into an existing area
3) Return to previous menu
Enter your choice:
See Sharing Software on a Local Area Network
for more information on installing software in the RIS area.
# /usr/sbin/ris
#
*** RIS Utility Main Menu ***
Choices without key letters are not available.
a) ADD a client
d) DELETE software products
i) INSTALL software products
) LIST registered clients
) MODIFY a client
) REMOVE a client
s) SHOW software products in remote installation
environments
x) EXIT
Enter your choice: a
Enter the client information requested by the prompts, as described in Sharing Software on a Local Area Network.
# setld -l visier:
The setld utility displays prompts
and messages to guide you through the installation process. See the Installation Guide
for more information on using the setld utility to install
layered products.
6.5 Installing a Foreign Device Kit into a RIS Area
To install a foreign device kit into a RIS area, you must first install Digital UNIX Version 4.0
into an extracted RIS area.
The foreign device subsets are now available in the RIS area. However,
before a client can perform an installation from this RIS area, you must reigister
the client, as follows:
*** RIS Utility Main Menu ***
Choices without key letters are not available.
a) ADD a client
d) DELETE software products
i) INSTALL software products
) LIST registered clients
) MODIFY a client
) REMOVE a client
s) SHOW software products in remote installation
environments
x) EXIT
Enter your choice: i
RIS Software Installation Menu:
1) Install software into a new area
2) Add software into an existing area
3) Return to previous menu
Enter your choice: 2
You have chosen to add a product to an existing
environment.
The existing environment is /usr/var/adm/ris/ris0.alpha.
Enter the device special file name or the path of the
directory where the software is located (for example,
/mnt/ALPHA/BASE): /floppy/ALPHA/EDGSTATIC100
Please select one of the following products to
base against or add the kit to.
1 'Digital UNIX V4.0 Operating System ( Rev 375 )'
Enter your selection or (return) to quit : 1
Preparing new product area...
Working....Mon Apr 29 15:06:33 EDT 1996
Working....Mon Apr 29 15:08:34 EDT 1996
Working....Mon Apr 29 15:10:35 EDT 1996
.
.
.
The subsets listed below are optional:
There may be more optional subsets than can be presented
on a single screen. If this is the case, you can choose
subsets screen by screen or all at once on the last
screen. All of the choices you make will be collected
for your confirmation before any subsets are extracted.
1) EDGD kit subset
Or you may choose one of the following options:
2) ALL of the above
3) CANCEL selections and redisplay menus
4) EXIT without extracting any subsets
Enter your choices or press RETURN to redisplay menus.
Choices (for example, 1 2 4-6): 1
You are installing the following optional subsets:
EDGD kit subset
Is this correct? (y/n): y
Checking file system space required to extract selected
subsets:
File system space checked OK.
Extracting EDGSTATIC100...
Media extraction complete.
.
.
.
EXTRACT phase for EDGD kit installation into RIS area
*** RIS Utility Main Menu ***
Choices without key letters are not available.
a) ADD a client
d) DELETE software products
i) INSTALL software products
) LIST registered clients
) MODIFY a client
) REMOVE a client
s) SHOW software products in remote installation
environments
x) EXIT
Enter your choice: s
1 /usr/var/adm/ris/ris0.alpha
'Digital UNIX V4.0 Operating System ( Rev 375 )'
'Digital UNIX V4.0 Operating System ( Rev 375 )' w/
'EDGSTATIC software version 1'
The client system can now boot over the network from the RIS area, using
the kernel that contains the foreign device subsets. For example:
*** RIS Utility Main Menu ***
Choices without key letters are not available.
a) ADD a client
d) DELETE software products
i) INSTALL software products
) LIST registered clients
) MODIFY a client
) REMOVE a client
s) SHOW software products in remote installation
environments
x) EXIT
Enter your choice: a
You have chosen to add a client for remote installation
services.
The following conditions must be met to add a client:
1. You must know the client processor's hostname
2. The client's hostname must be in your system's
host database(s).
3. You must know whether the client is on an
Ethernet, FDDI, or Token Ring network.
4. You must know the client's hardware Ethernet,
FDDI, or Token Ring address if the client is
registering to install operating system software.
5. If the client and the server reside on different
subnets, you will need the address of the
gateway(s) that the client can use to
communicate with the server.
Do you want to continue? (y/n) [y]: y
Enter the client processor's hostname or press RETURN
to quit: xnite
The existing environment is /usr/var/adm/ris/ris0.alpha
Select one or more products for the client to install
from /usr/var/adm/ris/ris0.alpha:
Product Description
1 'Digital UNIX V4.0 Operating System ( Rev 375 )'
2 'Digital UNIX V4.0 Operating System ( Rev 375 )' w/
'EDGSTATIC software version 1'
The following products: 1 2, are Operating System Base
products. Please select only one of these products when
making your selections.
Enter one or more choices as a space-separated list
(for example, 1 2 3): 2
You chose the following products:
2 'Digital UNIX V4.0 Operating System ( Rev 375 )' w/
'EDGSTATIC software version 1'
Is that correct? (y/n) [y]:y
Network type:
1) Ethernet or FDDI
2) Token Ring
Enter your choice: 1
Enter the client processor's hardware network address.
For example, 08-00-2b-02-67-e1: 08-00-2b-e2-3a-43
A new generic install kernel for the client systems will
now be built which includes support for the 3rd party
device(s).
*** PERFORMING KERNEL BUILD ***
Working....Mon Apr 29 14:37:39 EST 1996
Working....Mon Apr 29 14:39:40 EST 1996
.
.
.
>>> boot ewa0
The bootup procedure installs the kernel from the RIS area, then performs
a normal installation -- loading the subsets that make up the system
and including the subsets from the foreign device kit.