[Hackrf-dev] hackrf_open() failed: HACKRF_ERROR_LIBUSB

Tom vsboost at hotmail.com
Thu Mar 19 04:20:04 EDT 2015


------------------------------
3.14
------------------------------

root at kali:~# hackrf_info 
Found HackRF board.
Board ID Number: 2 (HackRF One)
Firmware Version: 2014.08.1
Part ID Number: 0xxxxxxxxx 0x00xxxxxx
Serial Number: 0x00000000 0x00000000 0xxxxxxxxx 0xxxxxxxxx

root at kali:~# lsmod
Module                  Size  Used by
ctr                    12927  0 
ccm                    17577  0 
nfnetlink_log          17241  0 
nfnetlink              12989  1 nfnetlink_log
hid_generic            12393  0 
usbhid                 44481  0 
hid                    94062  2 hid_generic,usbhid
binfmt_misc            16949  1 
loop                   26605  0 
dm_crypt               22731  0 
uvcvideo               78910  0 
videobuf2_vmalloc      12816  1 uvcvideo
videobuf2_memops       12519  1 videobuf2_vmalloc
videobuf2_core         35348  1 uvcvideo
videodev              122088  2 uvcvideo,videobuf2_core
media                  18303  2 uvcvideo,videodev
arc4                   12543  2 
iwldvm                130998  0 
joydev                 17108  0 
snd_hda_codec_conexant    44691  1 
mac80211              488308  1 iwldvm
snd_hda_codec_generic    59079  2 snd_hda_codec_conexant
btusb                  25619  0 
bluetooth             243618  2 btusb
iwlwifi                87784  1 iwldvm
i915                  743012  7 
snd_hda_intel          39656  4 
snd_hda_codec          99921  3 snd_hda_codec_conexant,snd_hda_codec_generic,snd_hda_intel
drm_kms_helper         39998  1 i915
snd_hwdep              13148  1 snd_hda_codec
drm                   240557  3 i915,drm_kms_helper
snd_pcm                88538  3 snd_hda_codec,snd_hda_intel
cfg80211              436618  3 iwlwifi,mac80211,iwldvm
snd_timer              26606  1 snd_pcm
6lowpan_iphc           16588  1 bluetooth
snd                    61039  14 snd_hwdep,snd_timer,snd_hda_codec_conexant,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel
soundcore              13026  1 snd
acer_wmi               30199  0 
sparse_keymap          12760  1 acer_wmi
i2c_i801               16963  0 
i2c_algo_bit           12751  1 i915
intel_powerclamp       17159  0 
iTCO_wdt               12831  0 
iTCO_vendor_support    12649  1 iTCO_wdt
rfkill                 18902  4 cfg80211,acer_wmi,bluetooth
coretemp               12854  0 
kvm_intel             138949  0 
mei_me                 13446  0 
lpc_ich                20768  0 
mei                    50039  1 mei_me
mfd_core               12601  1 lpc_ich
i2c_core               24265  6 drm,i915,i2c_i801,drm_kms_helper,i2c_algo_bit,videodev
kvm                   404503  1 kvm_intel
psmouse                86464  0 
serio_raw              12849  0 
evdev                  17489  10 
intel_ips              17382  0 
acpi_cpufreq           17218  1 
wmi                    17339  1 acer_wmi
button                 12944  1 i915
battery                13101  0 
ac                     12678  0 
video                  17804  2 i915,acer_wmi
processor              28221  1 acpi_cpufreq
ext4                  489943  1 
crc16                  12343  2 ext4,bluetooth
mbcache                13082  1 ext4
jbd2                   86788  1 ext4
dm_mod                 89276  1 dm_crypt
sg                     30043  0 
sr_mod                 21898  0 
sd_mod                 44346  3 
cdrom                  39232  1 sr_mod
crc_t10dif             12431  1 sd_mod
broadcom               13006  0 
crct10dif_pclmul       13348  1 
crct10dif_common       12356  2 crct10dif_pclmul,crc_t10dif
crc32_pclmul           12915  0 
crc32c_intel           21809  0 
ghash_clmulni_intel    12978  0 
tg3                   160593  0 
ptp                    17460  1 tg3
pps_core               13129  1 ptp
libphy                 27778  2 tg3,broadcom
ahci                   29195  2 
libahci                27103  1 ahci
ehci_pci               12472  0 
ehci_hcd               48517  1 ehci_pci
aesni_intel           151423  0 
libata                169163  2 ahci,libahci
scsi_mod              186841  4 sg,libata,sd_mod,sr_mod
aes_x86_64             16719  1 aesni_intel
lrw                    12757  1 aesni_intel
gf128mul               12970  1 lrw
glue_helper            12690  1 aesni_intel
ablk_helper            12572  1 aesni_intel
cryptd                 14560  3 ghash_clmulni_intel,aesni_intel,ablk_helper
thermal                17468  0 
thermal_sys            27685  4 video,intel_powerclamp,thermal,processor
usbcore               166472  5 btusb,uvcvideo,ehci_hcd,ehci_pci,usbhid
usb_common             12440  1 usbcore

root at kali:~# lsusb
Bus 002 Device 004: ID 1d50:6089 OpenMoko, Inc. 
Bus 002 Device 003: ID 046d:c016 Logitech, Inc. Optical Wheel Mouse
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 005: ID 1c7a:0801 LighTuning Technology Inc. Fingerprint Reader
Bus 001 Device 004: ID 0489:e010 Foxconn / Hon Hai 
Bus 001 Device 003: ID 0402:9665 ALi Corp. Gateway Webcam
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

---------------------------
3.18
---------------------------
root at kali:~# hackrf_info 
hackrf_open() failed: HACKRF_ERROR_LIBUSB (-1000)

root at kali:~# lsmod
Module                  Size  Used by
ctr                    12927  2 
ccm                    17577  2 
nfnetlink_log          17241  0 
nfnetlink              13040  1 nfnetlink_log
binfmt_misc            16942  1 
loop                   26605  0 
dm_crypt               22731  0 
hackrf                 25672  0 
uvcvideo               79102  0 
videobuf2_vmalloc      12816  2 uvcvideo,hackrf
videobuf2_memops       12519  1 videobuf2_vmalloc
videobuf2_core         43776  2 uvcvideo,hackrf
v4l2_common            12995  2 hackrf,videobuf2_core
videodev              135070  4 uvcvideo,hackrf,v4l2_common,videobuf2_core
media                  18305  2 uvcvideo,videodev
i915                  943949  7 
snd_hda_codec_conexant    21937  1 
intel_powerclamp       17159  0 
drm_kms_helper         81088  1 i915
arc4                   12543  2 
iwldvm                139227  0 
mac80211              511777  1 iwldvm
snd_hda_codec_generic    63082  2 snd_hda_codec_conexant
iwlwifi                96490  1 iwldvm
iTCO_wdt               12831  0 
iTCO_vendor_support    12649  1 iTCO_wdt
drm                   259436  4 i915,drm_kms_helper
lpc_ich                20768  0 
coretemp               12820  0 
btusb                  30039  0 
snd_hda_intel          26387  3 
bluetooth             391914  2 btusb
snd_hda_controller     26846  1 snd_hda_intel
cfg80211              425751  3 iwlwifi,mac80211,iwldvm
snd_hda_codec         108294  4 snd_hda_codec_conexant,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
kvm_intel             143434  0 
joydev                 17108  0 
psmouse               103371  0 
snd_hwdep              17244  1 snd_hda_codec
snd_pcm                88786  3 snd_hda_codec,snd_hda_intel,snd_hda_controller
kvm                   414355  1 kvm_intel
mfd_core               12601  1 lpc_ich
mei_me                 17987  0 
mei                    75235  1 mei_me
i2c_algo_bit           12751  1 i915
i2c_i801               16964  0 
i2c_core               50145  7 drm,i915,i2c_i801,drm_kms_helper,i2c_algo_bit,v4l2_common,videodev
serio_raw              12849  0 
evdev                  17489  10 
acer_wmi               17640  0 
intel_ips              17382  0 
snd_timer              26606  1 snd_pcm
sparse_keymap          12760  1 acer_wmi
snd                    69333  13 snd_hwdep,snd_timer,snd_hda_codec_conexant,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel
rfkill                 18902  5 cfg80211,acer_wmi,bluetooth
soundcore              13026  2 snd,snd_hda_codec
video                  18144  2 i915,acer_wmi
wmi                    17339  1 acer_wmi
battery                13356  0 
ac                     12715  0 
acpi_cpufreq           17218  1 
processor              28221  1 acpi_cpufreq
button                 12988  1 i915
ext4                  490614  1 
crc16                  12343  2 ext4,bluetooth
mbcache                17171  1 ext4
jbd2                   82464  1 ext4
dm_mod                 93340  1 dm_crypt
hid_generic            12393  0 
usbhid                 48599  0 
hid                   102292  2 hid_generic,usbhid
sg                     29919  0 
sr_mod                 21903  0 
cdrom                  47424  1 sr_mod
sd_mod                 43575  3 
crct10dif_pclmul       13348  0 
crc32_pclmul           12915  0 
crc32c_intel           21809  0 
ghash_clmulni_intel    12978  0 
aesni_intel           167997  4 
thermal                17559  0 
thermal_sys            32286  4 video,intel_powerclamp,thermal,processor
aes_x86_64             16719  1 aesni_intel
lrw                    12757  1 aesni_intel
gf128mul               12970  1 lrw
glue_helper            12690  1 aesni_intel
ablk_helper            12572  1 aesni_intel
cryptd                 18656  3 ghash_clmulni_intel,aesni_intel,ablk_helper
ahci                   29152  2 
libahci                27202  1 ahci
libata                177633  2 ahci,libahci
broadcom               17013  0 
scsi_mod              199895  4 sg,libata,sd_mod,sr_mod
tg3                   160673  0 
ptp                    17742  1 tg3
pps_core               17225  1 ptp
libphy                 32349  2 tg3,broadcom
ehci_pci               12512  0 
ehci_hcd               69703  1 ehci_pci
usbcore               199549  6 btusb,uvcvideo,hackrf,ehci_hcd,ehci_pci,usbhid
usb_common             12561  1 usbcore

root at kali:~# lsusb
Bus 002 Device 004: ID 1d50:6089 OpenMoko, Inc. 
Bus 002 Device 003: ID 046d:c016 Logitech, Inc. Optical Wheel Mouse
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 005: ID 1c7a:0801 LighTuning Technology Inc. Fingerprint Reader
Bus 001 Device 004: ID 0489:e010 Foxconn / Hon Hai 
Bus 001 Device 003: ID 0402:9665 ALi Corp. Gateway Webcam
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub





-----Original Message-----
From: Dominic Spill [mailto:dominicgs at gmail.com] 
Sent: Thursday, 19 March 2015 6:50 PM
To: Tom
Subject: Re: [Hackrf-dev] hackrf_open() failed: HACKRF_ERROR_LIBUSB

Having done a quick bit of googleing.  It looks like the kernel's SDR API added support for HackRF in 3.18.  I'm willing to bet that this is what's breaking it.

If you get a chance to boot with the 3.18 kernel, could you look at the output from lsmod?  Assuming that the SDR API is built as a module, we should be able to blacklist it and have everything else work.

Thanks,
  Dominic


On 19 March 2015 at 07:38, Tom <vsboost at hotmail.com> wrote:
> Same system.
>
> When kali gets upgraded to a new kernel it keeps the old one and allows you to boot into it if needed.
>
> Works normal in 3.14 and not at all in 3.18
>
> -----Original Message-----
> From: Dominic Spill [mailto:dominicgs at gmail.com]
> Sent: Thursday, 19 March 2015 6:34 PM
> To: Tom
> Subject: Re: [Hackrf-dev] hackrf_open() failed: HACKRF_ERROR_LIBUSB
>
> To confirm your setup:
>
> You have a kali installation with both 3.14 and 3.18 kernels installed?
> When you boot 3.14 HackRF works, when you boot 3.18 it doesn't?
>
> Other than the kernel, the system is the same.  i.e. we're not talking about two different systems or VMs here?  It's one system and the kernel that you boot makes the difference?
>
> Thanks,
>   Dominic
>
> On 19 March 2015 at 07:29, Tom <vsboost at hotmail.com> wrote:
>> The minute I update to 3.18
>>
>> Hackrf_info didn’t work
>> Gqrx didn’t work
>> Gnuradio didn’t work
>>
>> The hackrf was unusable.
>>
>> Lucky I was able to boot back to 3.14 and all was well, so im not sure if its an issue with the newer kernel or what.
>>
>> -----Original Message-----
>> From: Dominic Spill [mailto:dominicgs at gmail.com]
>> Sent: Thursday, 19 March 2015 6:25 PM
>> To: Tom
>> Cc: hackrf-dev
>> Subject: Re: [Hackrf-dev] hackrf_open() failed: HACKRF_ERROR_LIBUSB
>>
>> Hi Tom,
>>
>> On 19 March 2015 at 06:15, Tom <vsboost at hotmail.com> wrote:
>>> I got this error when I updated from kali 3.14 to 3.18.
>>
>> Under what circumstances did you see the error?  Every time you tried to access the HackRF?  As part of a GNU Radio flowgraph or when running the HackRF command line tools?
>>
>> Thanks,
>>   Dominic


More information about the HackRF-dev mailing list