Problem with gnuradio-companion and HackRF

I just reinstalled Ubuntu on my computer, I compiled GNURadio from
source.

I’m now running GNU Radio Companion 3.7.6git-1-g01deede3

With GNU Radio Companion I can access and listen to radio stations on my
RTL-SDR dongle just fine. However today I just received my HackRF
radio.

Now, using the “osmocom Source” & HackRF I receive the following error
msg.
“FATAL: No supported devices found to pick from” Is there a driver I
need to download for HackRF, if so where & how to I add that to my
system?

Thanks
George

On Mon, Sep 08, 2014 at 06:06:42PM -0400, GeorgeF wrote:

Now, using the “osmocom Source” & HackRF I receive the following error
msg. “FATAL: No supported devices found to pick from” Is there a
driver I need to download for HackRF, if so where & how to I add that
to my system?

You need libhackrf. And you’ll probably need to recompile gr-osmosdr
after installing it:

Mike

George -

I just finished doing the same thing for my shiny-new Hackrf.
Here is what worked for me on the same Ubuntu and GNURadio:

sudo apt-get install hackrf-tools

Add a one-line file to enable USB access to hackrf.

sudo gedit
Start a new file and enter this one line:
ATTR{idVendor}==“1d50”, ATTR{idProduct}==“6089”,
SYMLINK+=“hackrf-one-%k”, MODE=“660”, GROUP=“plugdev”
Right-click on the file tab, click Save As, click on Computer, then go
to this directory:
/etc/udev/rules.d Enter this file name: 52-hackrf.rules then
click Save.

Exit gedit
Reboot*
*
With Hackrf One plugged in to USB, test it:
hackrf_info

A few lines of data should display.

Doug

On Mon, Sep 8, 2014 at 3:35 PM, Doug H. [email protected]
wrote:

Start a new file and enter this one line:
ATTR{idVendor}==“1d50”, ATTR{idProduct}==“6089”, SYMLINK+=“hackrf-one-%k”,
MODE=“660”, GROUP=“plugdev”
Right-click on the file tab, click Save As, click on Computer, then go to
this directory:
/etc/udev/rules.d Enter this file name: 52-hackrf.rules
then click Save.

Exit gedit
Reboot

That file comes with the hackrf sources and I did not have to reboot
to have that work. Linux needs less reboots than Windows :slight_smile:

ls pybombs/src/hackrf/host/libhackrf/
53-hackrf.rules CMakeLists.txt libhackrf.pc.in Readme.md src


Discuss-gnuradio mailing list
[email protected]
Discuss-gnuradio Info Page


Regards,
Richard Sharpe
(何以解憂?唯有杜康。–曹操)

Try this page:

When I run “sudo apt-get install hackrf-tools” I get the following: “E:
Unable to locate package hackrf-tools”.

I then assumed that the command should be “sudo apt-get install
hackrf”. That seemed to install something.

I then added the needed line to 52-hackrf.rules and rebooted.

Now when I run hackrf_info I received the following:
hackrf_open() failed: HACKRF_ERROR_NOT_FOUND (-5)

What else am I missing?

George

On Tue, Sep 9, 2014 at 5:24 AM, GeorgeF [email protected] wrote:

When I run “sudo apt-get install hackrf-tools” I get the following: “E:
Unable to locate package hackrf-tools”.

I then assumed that the command should be “sudo apt-get install hackrf”.
That seemed to install something.

I then added the needed line to 52-hackrf.rules and rebooted.

Now when I run hackrf_info I received the following:
hackrf_open() failed: HACKRF_ERROR_NOT_FOUND (-5)

Are you in the group that was mentioned in that line you added?

Does an OpenMoko show when you do lsusb?

Who owns the device /dev/bus/usb/bus-from-usb/number-from-lsusb?

/etc/udev/rules.d Enter this file name: 52-hackrf.rules
Doug

[email protected]


Discuss-gnuradio mailing list
[email protected]
Discuss-gnuradio Info Page


Regards,
Richard Sharpe
(何以解憂?唯有杜康。–曹操)

I had this same issue with a newly arrived unit.

I had installed libhackrf and hackrf_tools from the Ubuntu packages,
then from a tarball version 2014.08.1

The problem was that the Ubuntu libhackrf was still in /use/lib
and without LD_LIBRARY_PATH set, it got used instead of the new one in
/usr/local/lib.

The answer was to either:

  • Uninstall the Ubuntu libhackrf (best) or

  • Install the new version into /usr instead of /usr/local or

  • set LD_LIBRARY_PATH=/usr/local/lib (worst)

Now when I run hackrf_info I received the following:
hackrf_open() failed: HACKRF_ERROR_NOT_FOUND (-5)

Are you in the group that was mentioned in that line you added?

Does an OpenMoko show when you do lsusb?

Who owns the device /dev/bus/usb/bus-from-usb/number-from-lsusb?

This is what you should see:

$ lsusb

Bus 002 Device 005: ID 1d50:6089 OpenMoko, Inc.

$ ll /dev/bus/usb/002/005
crw-rw---- 1 root plugdev 189, 132 Sep 14 16:01 /dev/bus/usb/002/005

$ id

groups=…,46(plugdev),…

$ ll /dev/hackrf-one-2-4
lrwxrwxrwx 1 root root 15 Sep 14 16:01 /dev/hackrf-one-2-4 ->
bus/usb/002/005

I got the same error as root too.

Don