HP Visualize c3600 IRIX to HP-UX Migration Guide - Page 18
Adding, Devices, Device Files Introduction
View all HP Visualize c3600 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 18 highlights
Devices /dev/ttyf* /dev/ttym* Serial ports (IRIX only) Serial ports (IRIX only) /dev/ttyq* Pseudo tty devices (IRIX only) Adding Devices The same basic steps are used to install any new device on the system. The first step is to physically install the hardware on the system. This may require installing an interface card or just plugging the device onto a chain of existing devices such as a SCSI port. In some cases the device id may need to be changed not to conflict with devices already in the chain. As superuser, you need to move to the appropriate device directory and run the MAKEDEV command. This command will create the appropriate device files or device nodes. HP-UX Device Files Introduction For a peripheral device to work in HP-UX 10/11, the following must be true: • The device must be connected to the computer and turned on. • The appropriate drivers must be part of the kernel. • The drivers must be connected in the proper order. • At least one device file must exist for the device. This information also needs to be mapped in a way that allows the kernel to associate a device file with the appropriate hardware address and driver. When you configure system hardware, you inform the operating system what hardware is present. Much of this configuration is done automatically when you boot the system. How much you actually have to do depends on whether or not the device is autoconfigurable and whether or not the driver is present in the currently running kernel. If neither is the case, use SAM or HPUX commands to add the device. At system boot, the kernel performs several system initialization tasks, including probing all hardware installed on the system. During the hardware probe, the kernel identifies all devices-buses, channel adapters, device adapters, and external devices-that can be autoconfigured. The kernel binds an appropriate driver to each autoconfigurable device detected at a specific hardware address. After completing system initialization tasks, including hardware probing, the kernel invokes the init command. init reads the /etc/inittab file and invokes several system startup commands listed in the file, including /sbin/ioinitrc. This command usually starts ioinit, which does several things: • Reads the contents of the /etc/ioconfig file and transfers device binding information found there to the kernel data structures, io_tree. • Executes insf, which creates device files, if necessary. All Hewlett-Packard peripheral devices supported by HP-UX 10/11 are automatically configurable. Device files for devices or I/O cards are automatically created during the reboot process. By convention, device files are maintained in the /dev directory. Some device files are found in /dev itself, while others are grouped in its subdirectories. Device files defined in subdirectories are grouped by device type (reel tape, cartridge tape, etc.) and by device class (block or character). The following list shows some of the devices files and subdirectories in /dev: /dev/ac Block device files for magneto-optical drives 13