Device drivers reside in different directories depending on the platform they run on and whether they are needed at boot time. Platform-dependent device drivers reside in the following locations:
/platform/`uname -i`/kernel/drv - Contains 32-bit drivers that run only on a specific platform, such as the UltraTM 2
/platform/`uname -m`/kernel/drv - Contains 32-bit drivers that run on a family of platforms. This directory might not be present on some platforms.
Platform-independent drivers reside in either of these directories:
/usr/kernel/drv - Contains 32-bit drivers not required for system booting
/kernel/drv - Contains 32-bit drivers required for booting
64-bit SPARC drivers reside in the drv/sparcv9 directory in the module path
To install a 32-bit driver, the driver and its configuration file must be copied to a drv directory in the module path. For example, to copy a driver to /usr/kernel/drv, type:
$ su# cp xx /usr/kernel/drv# cp xx.conf /usr/kernel/drv
To install a 64-bit SPARC driver, copy the driver to a drv/sparcv9 directory in the module path. Copy the driver configuration file to the drv directory in the module path. For example, to copy a driver to /usr/kernel/drv, type:
$ su# cp xx /usr/kernel/drv/sparcv9# cp xx.conf /usr/kernel/drv
If the driver creates minor nodes that do not represent disks, tapes, or ports (terminal devices), /etc/devlink.tab can be modified to cause devfsadm(1M) to create logical device names in /dev.
Alternatively, logical names can be created by a program run at driver installation time.