> Hi Martin,
>
> Some other questions for you - can I just check you're not running
> sigrok as root? Have you installed the udev rules file as described
> here: http://sigrok.org/wiki/Fx2lafw#Install_udev_rules_file ?
>
> Joel

Hi Joel,

I was indeed running as root. I installed udev to make the device owned by
plugdev. However I still get the -4 error when running as myself (without
the hub). Why would running as root be problematic?

$ id
uid=1000(martin) gid=1000(martin)
groups=1000(martin),4(adm),20(dialout),24(cdrom),46(plugdev),112(lpadmin),121(admin),122(sambashare),125(vboxusers)
$ LIBUSB_DEBUG=3 sigrok-cli -d 0 --time 2s -l 5

... snip ...

sr: initializing chronovu-la8 driver
sr: initializing fx2lafw driver
sr: ezusb: uploading firmware to device on 1.37
sr: ezusb: setting CPU reset mode on...
sr: ezusb: Uploading firmware at
/usr/local/share/libsigrok/firmware/fx2lafw-saleae-logic.fw
sr: ezusb: Uploaded 4096 bytes
sr: ezusb: Uploaded 4096 bytes
sr: ezusb: Uploaded 4096 bytes
sr: ezusb: Uploaded 4024 bytes
sr: ezusb: Firmware upload done
sr: ezusb: setting CPU reset mode off...
sr: dev: sr_dev_has_hwcap: requesting hwcap 2
sr: dev: sr_dev_has_hwcap: found hwcap 2
sr: dev: sr_dev_has_hwcap: requesting hwcap 2
sr: dev: sr_dev_has_hwcap: hwcap 2 not found
sr: dev: sr_dev_has_hwcap: requesting hwcap 2
sr: dev: sr_dev_has_hwcap: found hwcap 2
sr: dev: sr_dev_has_hwcap: requesting hwcap 2
sr: dev: sr_dev_has_hwcap: hwcap 2 not found
sr: fx2lafw: Unable to get version info: -4.
sr: fx2lafw: Failed to retrieve firmware version information.
sr: fx2lafw: Unable to open device.
sr: session: sr_session_dev_add: dev_open failed (-1)
Failed to use device.
sr: fx2lafw: Closing device 0 on 1.37 interface 0.

Could it be a race condition somehow?

-- Martin




------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to