LabJack dont work under Fedora Core 8 = linux veteran
Posted 27 April 2009 - 09:50 AM
Posted 27 April 2009 - 11:37 AM
Posted 27 April 2009 - 12:17 PM
There are ways around recompiling the kernel, which wasn't true when the driver was first released in 2004. Look at these forum topics and see if they help, https://forums.labja...?showtopic=1370 and https://forums.labja...?showtopic=4369. The first topic basically provides a script for unloading the hid driver, then loading the labjack driver and reloading the hid driver. In the second topic look at the last post where the /etc/modprobe.d/options file is modified (not sure if this file or a similar one is available for Fedora 8).
I did all of this and it does not work!
Posted 27 April 2009 - 12:19 PM
Posted 27 April 2009 - 01:00 PM
Posted 27 April 2009 - 02:10 PM
Posted 27 April 2009 - 05:34 PM
Since you have a late enough kernel, one of the better ways of bypassing the HID driver is through the /etc/modprobe.d/ or /etc/modprobe.conf files without having to resort to a kernel recompile. I tried the U12 installation instructions in this topic, https://forums.labja...?showtopic=4369, and had to do a little extra work to get it running. I run Ubuntu 8.04, kernel 2.6.24 and at the end before running the test examples I needed to run 'update-initramfs -u' and restart the system to get the device running. I do not think 'update-initramfs' is available to Fedora (you can try), but a system restart might do the trick to reload the hid module with the new options.
Posted 27 April 2009 - 09:00 PM
thank you for the modprobe quirk... I was using both insmod and modprobe, but this solve initiating the module by typing modprobe labjack.
OK, I did EVERYTHING on the page (link) you sent me, created the extra files in /etc/modprobe.d NO GOOD... nothing
here is what I get still: (after reboot)
Apr 28 07:50:59 pelikan kernel: usbhid: timeout initializing reports
Apr 28 07:50:59 pelikan kernel: input: LabJack Labjack U12 as /class/input/input7
Apr 28 07:50:59 pelikan kernel: input,hidraw1: USB HID v1.10 Device [LabJack Labjack U12] on usb-0000:00:1d.3-2
Apr 28 07:50:59 pelikan kernel: usb 5-2: New USB device found, idVendor=0cd5, idProduct=0001
Apr 28 07:50:59 pelikan kernel: usb 5-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Apr 28 07:50:59 pelikan kernel: usb 5-2: Product: Labjack U12
Apr 28 07:50:59 pelikan kernel: usb 5-2: Manufacturer: LabJack
Apr 28 07:50:59 pelikan kernel: usbcore: registered new interface driver labjack
Apr 28 07:50:59 pelikan kernel: labjack: Labjack USB Driver <http://www.labjack.com/> v0.35
I also have these entries:
[[email protected] test]# cd /dev/usb
[[email protected] usb]# ls
[[email protected] usb]# ls -lah
drwxr-xr-x 2 root root 60 2009-04-28 07:50 .
drwxr-xr-x 14 root root 4.5K 2009-04-28 07:55 ..
crw-rw-rw- 1 root root 180, 240 2009-04-28 07:50 labjack0
So, now the driver gets loade automatically, but
[[email protected] usb]# cd -
[[email protected] test]# ls
analog-outs analog-outs.c firmware-revision firmware-revision.c list-all list-all.c Makefile
[[email protected] test]# ./firmware-revision
[[email protected] test]# ./analog-outs
./analog-outs: Testing analog outs ...
Setting voltage to 0.000000 ...
./analog-outs: Error setting analog outs!
./analog-outs: Error setting analog outs!
[[email protected] test]# ./list-all
Found 0 LabJacks!
productID, serialNum, localID, powerList, calMatrix
[[email protected] test]#
Posted 28 April 2009 - 10:59 AM
Posted 28 April 2009 - 04:01 PM
You can try adding this boot parameter 'usbhid.quirks=0xcd5:0x0001:0x0004' to your boot menu configuration file for the current kernel you are booting into. For example on my computer in my /boot/grub/menu.lst file I would edit this boot entry as so.
title desktop586 18.104.22.168-1mnb
kernel (hd1,4)/boot/vmlinuz-22.214.171.124-desktop586-1mnb BOOT_IMAGE=desktop586_126.96.36.199-1mnb root=UUID=30ec8187-a3a7-4dc3-9303-30631702600d resume=UUID=59b60372-4fe4-4130-ab94-5fd95e9afe03 splash=verbose vga=797 usbhid.quirks=0xcd5:0x0001:0x0004
You will need to restart after this for it to take effect.
The last thing I could think for you to try is to update the initrd image for the usbhid quirk optiion to take effect, like I needed to do in Ubuntu with the 'update-initramfs -u'. With Fedora I think mkinitrd can do that, When using mkinitrd on Fedora the 'options usbhid quirks=0xcd5:0x0001:0x4' option looks like it needs to be in the /etc/modprobe.conf file (https://bugzilla.red...g.cgi?id=457870). Also, please be careful if you are going to try the following as you can foul up the current boot image. I would suggest making a backup of the current initrd boot image you are using in the /boot directory, and that you have another image to boot into. The command would look something like this 'mkinitrd -f -v /boot/initrd-188.8.131.52-57.fc8.img 184.108.40.206-57.fc8', where you specify the current boot image you want to replace (/boot/initrd-220.127.116.11-57.fc8.img) and the kernel version you are building for (18.104.22.168-57.fc8).
Other than these ideas I am running out of things for you to try. You can perform an online search on 'options usbhid quirks' and Fedora, methods for preventing the hid driver from claiming a device or ways to unbind a device from the usbhid. The last resort is the kernel recompile method.
Posted 28 April 2009 - 10:28 PM
echo -n "5-2:1.0" > /sys/bus/usb/drivers/usbhid/unbind
modprobe -r labjack
This should steal the U12 from the hid driver, but the downside is that once you disconnect and you reconnect your U12 the HID driver will claim it and you will need to run the commands again.
Posted 29 April 2009 - 10:55 AM
Posted 12 November 2011 - 10:06 AM
Posted 14 November 2011 - 12:55 PM
Posted 24 January 2012 - 01:13 AM
I'm only able to do this so far on Fedora 16. Should I go ARDUINO? No Perl support!!!
The Perl module is third party, and my knowledge on it isn't that great. I do know it was meant for our old kernel module driver, which has a different installation process, header/source and library names then then new driver we released last week, which you look like you are using. I imagine this is probably the cause of the problem.
I would first start by looking at the Makefile.PL and modify this to use the new ljacklm.so library and ljacklm.h/c source code files. I believe this file is the one used to build the module, but I am unsure if other files will need to be modified.
[[email protected] U12]# ./u12AISample
Results of AISample:
AI0 = 1.435547
AI1 = 1.416016
AI2 = 1.440430
AI3 = 1.416016
PGA Overvoltage = 0
IO3 to IO0 States = 0
TimerCounterMask = 0
Posted 24 January 2012 - 02:28 AM
Posted 24 January 2012 - 02:34 PM
Posted 25 January 2012 - 08:03 PM
Posted 24 September 2012 - 08:15 AM
Posted 24 September 2012 - 12:40 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users