Host Computer Interface Card
Motorola
Preparation and Installation
2-11
the slot number is 1. For example, slot 4 of a multi-slot machine would be
0x440000
Be sure to change the permissions for this file(s) by typing this command:
hostname# chmod 666 /dev/mdsp0
If you have installed multiple host interface cards, repeat the “mknod” and
“chmod”steps for each new card. The <major> number for each will be the same,
but the <minor> number will reflect the slot in which the card was installed. The
device file names are arbitrary, but you should make note of which card
corresponds to each device file name. We suggest using a final digit of “N– 1”for
slot “N”.
7. Edit the file /usr/sam/lib/kc/drivers.tx and add an entry for the ADS device driver.
You may wish to make a backup of the file before editing it. Add the following
line:
mdsp:::Out:Motorola ADS Host Interface Card
8. Select and edit a dfile (configuration description file). First, change directories by
executing the following command:
hostname# cd /etc/conf
A dfile must now be selected. Your current system dfile should be called either
dfile, dfile.SAM (for a kernel that has been configured with the HP System
Administration Manager), or a unique name given by you if you have altered your
kernel configuration by hand. Use the dfile appropriate for your system. If you
aren’t sure which version to use, or if your choice doesn’t work, then you can use
the file created by the command
hostname# /system/TOOL/get_kdfile /hp-ux > dfile.current
to get your current system dfile.
Make a back-up copy of the selected dfile and edit the selected dfile by adding the
following lines to the top of it:
* Motorola DSP ADS Device Driver
mdsp
9. Generate the files needed to rebuild the kernel with your new device driver.
Execute this command, replacing dfile-name with the dfile you selected in the
previous step:
hostname# /etc/config dfile-name
10.Generate a new kernel object file in the current directory using the following
command:
hostname# make -f config.mk XOBJS=libmdsp.a