Ticket #177 (closed defect: fixed)

Opened 5 months ago

Last modified 5 months ago

problem on Centos (RHEL)

Reported by: alden Owned by: jdunn
Priority: normal Component: Software
Version: Severity: major
Keywords: Cc:

Description

I am using Centos 5.4 (RHEL). I'm trying to build the 1.0pre2 src rpm. I had to install libusb1 (using the src rpm from Fedora 12). I had to make one small change to the spec file (to disable rpmbuild from installing extraneous debug files) and one small change to the init script (to make it recognize centos to be the same as fedora) - I'll submit those changes once I get everything working.

The problem I'm having is

# igdaemon -n -v -v -v
Feb 24 14:05:05 2010 DEBUG: Parameters:
Feb 24 14:05:05 2010 DEBUG:   recvTimeout: 1000
Feb 24 14:05:05 2010 DEBUG:   sendTimeout: 1000
Feb 24 14:05:05 2010 ERROR: failed to find an loadable driver layer.

lsusb shows the device is plugged in:

# lsusb -v -d 1781:0938

Bus 002 Device 004: ID 1781:0938 Multiple Vendors Iguanaworks USB IR Transceiver
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         8
  idVendor           0x1781 Multiple Vendors
  idProduct          0x0938 Iguanaworks USB IR Transceiver
  bcdDevice            0.00
  iManufacturer           1 IguanaWorks
  iProduct                2 USB IR Transceiver
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         0 (Defined at Interface level)
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval              10
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval              10

I rebooted after I installed the software. Help?

Change History

Changed 5 months ago by alden

I got a copy of 1.0pre1 from a friend - it compiles and run's just fine. I believe this to be a problem with 1.0pre2 on centos. Any suggestions on how I can help figure out what is the problem?

Changed 5 months ago by jdunn

The problem is most likely just that it's not finding the iguanaIR/libusb.so. That drivers director is usually in /usr/lib. Any chance this is an x86_64 machine? In that case, try running:

igdaemon -nvvv --driver-dir=/usr/lib/iguanaIR 

If that's it, this is a known problem with 1.0pre2 and will be fixed in the next release, but you can use the pre2 release by adding that argument to the command line in /etc/default/iguanaIR.

Changed 5 months ago by alden

There is no /usr/lib/iguanaIR directory, just a /usr/lib64/iguanaIR directory. I tried:

igdaemon -nvvv --driver-dir=/usr/lib64/iguanaIR

but I got the same error.

Changed 5 months ago by jdunn

Sorry, that was my typo. What files are located in /usr/lib64/iguanaIR, and can you provide the output of the file command run on those files? It should look something like:

[jdunn@iguanadev ~]$ file /usr/lib64/iguanaIR/*
/usr/lib64/iguanaIR/libusbpre1.so: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, not stripped
/usr/lib64/iguanaIR/libusb.so:     ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, not stripped

There's also a chance that selinux is not allowing the load for some reason. Do you get any log messages about that? Could you try booting once w selinux disabled to see if that changes the behavior?

Changed 5 months ago by alden

Sorry - it turned out that I hadn't removed the rpm (I had tried using the Fedora rpm you have - but it doesn't work on RHEL). Once I removed the rpm, reinstalled from source and appended --driver-dir=/usr/lib/iguanaIR, it worked! thanks.

Changed 5 months ago by jdunn

  • status changed from new to closed
  • resolution set to fixed

Good to hear you got it working. I'm closing this ticket since your problem seems to be solved.

Note: See TracTickets for help on using tickets.