HP Visualize J210XC IRIX to HP-UX Migration Guide - Page 18

Adding, Devices, Device Files Introduction

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

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125

Devices
13
/dev/ttyf*
Serial ports (IRIX only)
/dev/ttym*
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 HP-
UX 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