Configuring HP-UX For Peripherals

Appendix C 287
Major and Minor Numbers
Associating a Custom Driver with a Peripheral
disco_install | 524264|extern|entry |$CODE$
g. Save the old system file by moving it. Then move the new system file
into place.
mv /stand/system /stand/system.prev
mv /stand/build/system /stand/system
h. Prepare for rebooting by invoking the kmupdate command. This
action sets a flag that tells the system to use the new kernel when it
restarts.
/usr/sbin/kmupdate
Step 2. Notify users that the system must be rebooted.
Step 3. Shut down and halt the system using the /usr/sbin/shutdown -h
command.
Step 4. Turn off power to the SPU.
Step 5. Install the peripheral device. Make sure the peripheral's hardware
address is set to the hardware path specified in the driver statement of
the /stand/system file.
Step 6. Power up the peripheral device and then the SPU.
When the kernel reboots, you can verify that the custom driver was
configured into the kernel by executing /usr/sbin/ioscan
-f. You should see the driver associated with its intended device at the
hardware path you specified in step 2.
For further information on driver statements and other custom-tailoring
of the /stand/system file, consult the config (1M) manpage. The config
program is used by mk_kernel when you build a kernel.
Under most circumstances, insf creates useful device special files when
the system boots up. However, for some special circumstances, it may be
necessary to create these files using mknod.