From Wiki-UX.info

Wiki-UX / USB Support Update for HP-UX 11i v2 and v3
Jump to: navigation, search

USB Support Update for HP-UX 11i v2 and v3

Contents

Abstract

This article provides information on the USB 2.0 update drivers for HP-UX 11i v2 and 11i v3 Operating environments.

Background

The USB Driver support for HP-UX 11i v2 and 11i v3 was updated on December 2008. This updated provides traditional naming scheme for USB mass storage devices and implements USB 2.0 transfer speed. These updates are highly recommended, since they resolve serious performance and usage issue of USB Mass Storage devices.

Is advisable to install this updated drivers as soon as possible, to simplify troubleshooting of USB CD/DVD problems. This is required to mount USB CD/DVD media on HP-UX 11i v3 and to present USB CD/DVD optical devices to HP-VM 4.0 guests.

USB 2.0 transfer provides 10x performance bonus to read speed and proper support for qualified Flash drives.

Optical devices supported:

  • Internal multibay inserts for rx2660, rx3600, and rx6600
  • External multibay I and multibay II cradles with supported inserts
  • HP dvd1040e 20x Super Multi DVD Writer
  • iLO/vMedia usage for optical drives and ISO files

Flash drives supported:

  • HP Drivekey II 256Mb
  • HP 4GB c450w USB Flash Drive

HP-UX 11i v2

The USB driver subsystem is no longer be provided as an ISU product. Instead, it will be a part of the core HP-UX offering. Accordingly, this new support is delivered via patches. The primary patch used to make this transition and deliver the new USB functionality on HP-UX 11iv2 is PHKL_37814. It in turn has co-requisites PHKL_38168, PHKL_37869 and PHCO_37930.

In order for PHKL_37814. (and therefore the new functionality) to be operational, there can be no version of the USB-00 ISU product on the system earlier than version D. (USB-00 version D is empty of any code and simply depends on PHKL_37814..) There are therefore two ways to install the new USB driver subsystem:

A) One can install without using USB-00 version D. To do that, one needs to retrieve all the required patches from the patch hub and also to remove USB-00 from the system entirely. Use the command swlist USB-00 to determine what version (if any) of USB-00 is installed on your system.

So, to recap using this method, enabling the new functionality is done by:

# swremove -x auto_kernel_build=false USB-00 (if it is installed on your system)
# swinstall PHKL_37814

Note that you cannot use this method when running under the CDE environment.

Notes:

  1. Patch is already superseeded by PHKL_39269
  2. # Installation of the patch will create a new kernel and reboot the system.

B) One can install USB-00 version D and the patches from the September 2008 Application Software Release for 11iv2. In order to do this, one selects USB-00 version D from the Application Software disk and it will in turn select all the necessary patches. In the course of the installation, it will also remove all earlier versions of USB-00.

HP-UX 11i v3

The USB driver subsystem is no longer provided as an ISU product. Instead, it is a part of the core HP-UX offering. Accordingly, this new support is delivered via patches. The primary patch used to make this transition and deliver the new USB functionality on HP-UX 11iv3 is PHKL_39407. It in turn has co-requisites on several other patches.

In order for PHKL_39407 (and therefore the new functionality) to be operational, there can be no version of the USB-00 ISU product on the system earlier than version D. (USB-00 version D is empty of any code and simply depends on PHKL_39407.) Therefore (until version D for 11iv3 is available), to install the new USB driver subsystem one needs to remove USB-00 from the system entirely and to retrieve all the required patches from the patch hub. Use the command swlist USB-00 to determine what version (if any) of USB-00 is installed on your system.

So, to recap, enabling the new functionality is done by:

# swremove -x auto_kernel_build=false USB-00

If it is installed on your system.

# swinstall PHKL_39407

And its co-requisites (no special options needed)

NOTE: {{{1}}}


If the dependencies for PHKL_39407 are not properly installed, you can get problems like device special files that won't be created:

# ioscan -fnC disk
Class     I  H/W Path      Driver         S/W State   H/W Type     Description
===============================================================================
disk      3  0/0/2/1.0.16  UsbScsiAdaptor   CLAIMED     DEVICE       USB SCSI Stack Adaptor
disk      4  0/1/1/0.0.0.0.0  sdisk            CLAIMED     DEVICE       HP      DG146BB976
                          /dev/dsk/c0t0d0   /dev/rdsk/c0t0d0
disk      5  0/1/1/0.0.0.1.0  sdisk            CLAIMED     DEVICE       HP      DG146BB976
                          /dev/dsk/c0t1d0     /dev/rdsk/c0t1d0
                          /dev/dsk/c0t1d0s1   /dev/rdsk/c0t1d0s1
                          /dev/dsk/c0t1d0s2   /dev/rdsk/c0t1d0s2
                          /dev/dsk/c0t1d0s3   /dev/rdsk/c0t1d0s3

As can be seen, not even the old files are there. Reinstalling the depot and all it's dependencies resolve the issue:

# swinstall -x reinstall=true -x autoreboot=true -x patch_match_target=true -s /absolute_path/mydepot_dir

Ignite-UX

Ignite-UX version C.7.7.98 contains the USB support update modules for the HP-UX 11i v2 and v3 installation kernels. Updating to this version of newer of Ignite-UX | IUX-Recovery bundles is highly recommended to ensure adecuate recovery of make_tape_recovery | make_net_recovery archives.

HP-UX 11i v2 Install Example

The original USB-00 drivers will look like:

# swlist | grep USB
  USB-00                        C.01.04.07     USB Subsystem and Drivers
# swlist -l file USB-00 | grep -F "/usr/conf/mod/"
  USB-00.USB-OHCI.USB-OHCI-KRN: /usr/conf/mod/UsbOhci
  USB-00.USB-EHCI.USB-EHCI-KRN: /usr/conf/mod/UsbEhci
  USB-00.USB-CORE.USB-CORE-KRN: /usr/conf/mod/UsbMiniBus
  USB-00.OO-CDIO.OO-CDIO-KRN: /usr/conf/mod/OOCdio
  USB-00.MOUSE-MUX.MOUSE-MUX-KRN: /usr/conf/mod/MouseMUX
  USB-00.KBD-MUX.KBD-MUX-KRN: /usr/conf/mod/KeyboardMUX
  USB-00.DEVFS.DEVFS-KRN: /usr/conf/mod/DeviceFileSystem
  USB-00.BOOT-MOUSE.BOOT-MOUSE-KRN: /usr/conf/mod/UsbBootMouse
  USB-00.BOOT-KBD.BOOT-KBD-KRN: /usr/conf/mod/UsbBootKeyboard
  USB-00.BLKONLY-MS.BLKONLY-MS-KRN: /usr/conf/mod/UsbBulkOnlyMS
  USB-00.BLKONLY-MS.BLKONLY-MS-KRN: /usr/conf/mod/UsbScsiAdaptor

Each of the kernel modules will be represented by entries in the kernel.

# kcmodule | grep -e Usb -e MUX -e OO -e DeviceFileSystem
DeviceFileSystem    unused
KeyboardMUX         unused
MouseMUX            unused
OOCdio              unused
UsbBootKeyboard     unused
UsbBootMouse        unused
UsbBulkOnlyMS       unused
UsbEhci             unused
UsbHid              unused
UsbMiniBus          unused
UsbOhci             unused
UsbScsiAdaptor      unused

Remove the USB-00 product. Using the –x auto_kernel_build=false reboot saves one system reboot, but as a drawback, the current kernel will still be linked to the USB drivers. Ensure that after the task is completed, a new backup kernel is made so current and previous versions does not have mixed USB driver versions.

# swremove -x auto_kernel_build=false USB-00
 
=======  12/02/09 12:50:31 EST  BEGIN swremove SESSION
         (non-interactive) (jobid=rx7620c-0060)
 
       * Session started for user "root@rx7620c".
 
       * Beginning Selection
       * Target connection succeeded for "rx7620c:/".
       * Software selections:
             USB-00,r=C.01.04.07,a=HP-UX_B.11.23_IA/PA,v=HP
             BLKONLY-MS.BLKONLY-MS-KRN,l=/,r=C.01.04.07,a=HP-UX_B.11.23_IA/PA,v=HP,fr=C.01.04.07,fa=HP-UX_B.11.23_IA
             BLKONLY-MS.BLKONLY-MS-RUN,l=/,r=C.01.04.07,a=HP-UX_B.11.23_IA/PA,v=HP,fr=C.01.04.07,fa=HP-UX_B.11.23_IA
             BOOT-KBD.BOOT-KBD-KRN,l=/,r=C.01.04.07,a=HP-UX_B.11.23_IA/PA,v=HP,fr=C.01.04.07,fa=HP-UX_B.11.23_IA
             BOOT-MOUSE.BOOT-MOUSE-KRN,l=/,r=C.01.04.07,a=HP-UX_B.11.23_IA/PA,v=HP,fr=C.01.04.07,fa=HP-UX_B.11.23_IA
             CORE-OOC.CORE-OOC-KRN,l=/,r=C.01.04.07,a=HP-UX_B.11.23_IA/PA,v=HP,fr=C.01.04.07,fa=HP-UX_B.11.23_IA
             DEVFS.DEVFS-KRN,l=/,r=C.01.04.07,a=HP-UX_B.11.23_IA/PA,v=HP,fr=C.01.04.07,fa=HP-UX_B.11.23_IA
             DEVFS.DEVFS-RUN,l=/,r=C.01.04.07,a=HP-UX_B.11.23_IA/PA,v=HP,fr=C.01.04.07,fa=HP-UX_B.11.23_IA
             KBD-MUX.KBD-MUX-KRN,l=/,r=C.01.04.07,a=HP-UX_B.11.23_IA/PA,v=HP,fr=C.01.04.07,fa=HP-UX_B.11.23_IA
             MOUSE-MUX.MOUSE-MUX-KRN,l=/,r=C.01.04.07,a=HP-UX_B.11.23_IA/PA,v=HP,fr=C.01.04.07,fa=HP-UX_B.11.23_IA
             OO-CDIO.OO-CDIO-KRN,l=/,r=C.01.04.07,a=HP-UX_B.11.23_IA/PA,v=HP,fr=C.01.04.07,fa=HP-UX_B.11.23_IA
             OOC-SVCS.OOC-SVCS-KRN,l=/,r=C.01.04.07,a=HP-UX_B.11.23_IA/PA,v=HP,fr=C.01.04.07,fa=HP-UX_B.11.23_IA
             SYSPREP.SYSPREP-KRN,l=/,r=C.01.04.07,a=HP-UX_B.11.23_IA/PA,v=HP,fr=C.01.04.07,fa=HP-UX_B.11.23_IA
             USB-CORE.USB-CORE-KRN,l=/,r=C.01.04.07,a=HP-UX_B.11.23_IA/PA,v=HP,fr=C.01.04.07,fa=HP-UX_B.11.23_IA
             USB-EHCI.USB-EHCI-KRN,l=/,r=C.01.04.07,a=HP-UX_B.11.23_IA/PA,v=HP,fr=C.01.04.07,fa=HP-UX_B.11.23_IA
             USB-OHCI.USB-OHCI-KRN,l=/,r=C.01.04.07,a=HP-UX_B.11.23_IA/PA,v=HP,fr=C.01.04.07,fa=HP-UX_B.11.23_IA
       * Selection succeeded.
 
 
       * Beginning Analysis
       * Session selections have been saved in the file
         "/.sw/sessions/swremove.last".
       * The analysis phase succeeded for "rx7620c:/".
       * Analysis succeeded.
 
 
       * Beginning Execution
       * The execution phase succeeded for "rx7620c:/".
       * Execution succeeded.
 
 
NOTE:    More information may be found in the agent logfile using the
         command "swjob -a log rx7620c-0060 @ rx7620c:/".
 
=======  12/02/09 12:52:25 EST  END swremove SESSION (non-interactive)
         (jobid=rx7620c-0060)

Verify that not old USB-00 modules are available on the kernel

# kcmodule | grep -e Usb -e MUX -e OO -e DeviceFileSystem

Install the PHKL_39269 and it's dependencies. When downloading, un select the PHKL_31500, since every 11.23 installed before 2005 will already have that bundle and the depot will be reduced to around 8 MB.

# swinstall -x autoreboot=true -s /tmp/patches/depot PHKL_39269
# swjob -a log rx7620c-0070
 
=======  12/02/09 13:19:30 EST  BEGIN swconfig SESSION
         (non-interactive) (jobid=rx7620c-0070)
 
       * Session started for user "root@rx7620c".
 
       * Beginning Selection
       * Target connection succeeded for "rx7620c:/".
       * Software selections:
           + Networking.NET2-KRN,l=/,r=B.11.23,a=HP-UX_B.11.23_IA/PA,v=HP,fr=B.11.23,fa=HP-UX_B.11.23_IA
           + OS-Core.C-KRN,l=/,r=B.11.23,a=HP-UX_B.11.23_IA/PA,v=HP,fr=B.11.23,fa=HP-UX_B.11.23_IA
           + OS-Core.CORE-KRN,l=/,r=B.11.23,a=HP-UX_B.11.23_IA/PA,v=HP,fr=B.11.23,fa=HP-UX_B.11.23_IA/PA
           + OS-Core.CORE2-KRN,l=/,r=B.11.23,a=HP-UX_B.11.23_IA/PA,v=HP,fr=B.11.23,fa=HP-UX_B.11.23_IA
           + OS-Core.KERN-RUN,l=/,r=B.11.23,a=HP-UX_B.11.23_IA/PA,v=HP,fr=B.11.23,fa=HP-UX_B.11.23_IA/PA
           + OS-Core.KERN2-RUN,l=/,r=B.11.23,a=HP-UX_B.11.23_IA/PA,v=HP,fr=B.11.23,fa=HP-UX_B.11.23_IA
             PHCO_37930.CORE-ENG-A-MAN,l=/,r=1.0,a=HP-UX_B.11.23_IA/PA,v=HP,fr=1.0,fa=HP-UX_B.11.23_IA/PA
             PHCO_37930.UX2-CORE,l=/,r=1.0,a=HP-UX_B.11.23_IA/PA,v=HP,fr=1.0,fa=HP-UX_B.11.23_IA
           + PHKL_31500.CORE2-KRN,l=/,r=1.0,a=HP-UX_B.11.23_IA/PA,v=HP,fr=1.0,fa=HP-UX_B.11.23_IA
           + PHKL_34210.CORE2-KRN,l=/,r=1.0,a=HP-UX_B.11.23_IA,v=HP,fr=1.0,fa=HP-UX_B.11.23_IA
             PHKL_38168.CORE2-KRN,l=/,r=1.0,a=HP-UX_B.11.23_IA/PA,v=HP,fr=1.0,fa=HP-UX_B.11.23_IA
             PHKL_39269.CORE2-KRN,l=/,r=1.0,a=HP-UX_B.11.23_IA/PA,v=HP,fr=1.0,fa=HP-UX_B.11.23_IA
             PHKL_39742.CORE2-KRN,l=/,r=1.0,a=HP-UX_B.11.23_IA,v=HP,fr=1.0,fa=HP-UX_B.11.23_IA
           + UserLicense.UNL-USER,l=/,r=B.11.23,a=HP-UX_B.11.23_IA/PA,v=HP,fr=B.11.23,fa=HP-UX_B.11.23_IA
       * A "+" indicates an automatic selection due to dependency or
         the automatic selection of a patch or reference bundle.
       * Selection succeeded.
 
 
       * Beginning Analysis
       * Session selections have been saved in the file
         "/.sw/sessions/swconfig.last".
       * "rx7620c:/":  There will be no attempt to mount filesystems
         that appear in the filesystem table.
       * "rx7620c:/":  9 filesets have already been configured.
       * Analysis succeeded.
 
 
       * Beginning Execution
       * "rx7620c:/":  9 filesets were determined to be skipped in the
         analysis phase.
       * Execution succeeded.
 
 
NOTE:    More information may be found in the agent logfile using the
         command "swjob -a log rx7620c-0070 @ rx7620c:/".
 
=======  12/02/09 13:20:11 EST  END swconfig SESSION (non-interactive)
         (jobid=rx7620c-0070)

Check the modules installed by the patch

# swlist -l file PHKL_39269
# Initializing...
# Contacting target "rx7620c"...
#
# Target:  rx7620c:/
#
 
# PHKL_39269                    1.0            USB 2.0, DVD write, Cumulative USB patch
# PHKL_39269.CORE2-KRN          1.0            OS-Core.CORE2-KRN
  /usr/conf/lib/bulkonly.o
  /usr/conf/lib/ehci.modmeta.o
  /usr/conf/lib/ehci.o
  /usr/conf/lib/hc.o
  /usr/conf/lib/hcd.modmeta.o
  /usr/conf/lib/hcd.o
  /usr/conf/lib/hid.modmeta.o
  /usr/conf/lib/hid.o
  /usr/conf/lib/hub.modmeta.o
  /usr/conf/lib/hub.o
  /usr/conf/lib/libusb.modmeta.o
  /usr/conf/lib/mass_storage.modmeta.o
  /usr/conf/lib/mass_storage.o
  /usr/conf/lib/ms_transport.o
  /usr/conf/lib/usb.o
  /usr/conf/lib/usb_config.o
  /usr/conf/lib/usb_debug.o
  /usr/conf/lib/usb_mapper.o
  /usr/conf/lib/usbcomposite.modmeta.o
  /usr/conf/lib/usbcomposite.o
  /usr/conf/lib/usbd.modmeta.o
  /usr/conf/lib/usbd.o

Reference

Authors

This page was last modified on 28 July 2010, at 03:58. This page has been accessed 6,545 times.