Discussion:
[Hackrf-dev] Raspberry Pis and HackRFs
Roy
2017-02-12 14:21:08 UTC
Permalink
This is what I'm getting from my Raspberry Pis now:


RPi2 (seems to be working fine):

****@PiB2:~$ hackrf_info**
**hackrf_info version: git-0335f1a**
**libhackrf version: git-0335f1a (0.5)**
**Found HackRF**
**Index: 0**
**Serial number: 0000000000000000466c64c82c6925c7**
**Board ID Number: 2 (HackRF One)**
**Firmware Version: 2017.02.1 (API:1.02)**
**Part ID Number: 0xa000cb3c 0x00784f42**
**
**hackrf_sweep *(loads of data, I've only copied the last couple of
lines here)*:**
**
**2017-02-12, 22:08:26, 1665000000, 1670000000, 1000000.00, 20, -60.57,
-61.80, -64.34, -57.65, -59.38**
**2017-02-12, 22:08:26, 1675000000, 1680000000, 1000000.00, 20, -71.08,
-68.78, -68.09, -75.58, -64.67**
**^CCaught signal 2**
** 5.8 MiB / 0.435 sec = 13.3 MiB/second*

*Exiting...**
**Total time: 2.43565 s**
**2017-02-12, 22:08:26, 1680000000, 1685000000, 1000000.00, 20, -61.29,
-62.92, -67.43, -66.55, -66.68**
**2017-02-12, 22:08:26, 1690000000, 1695000000, 1000000.00, 20, -65.76,
-67.04, -67.14, -63.04, -61.22**
**hackrf_stop_rx() done**
**hackrf_close() done**
**hackrf_exit() done**
**fclose(fd) done**
**exit**
*****@PiB2:~$ *


The RPi3, which was working earlier, apart from hackrf_sweep:

****@raspberrypi3:~/hackrf/host/build $ hackrf_info**
**Found HackRF board.**
**Board ID Number: 2 (HackRF One)**
**Firmware Version: 2017.02.1**
**Part ID Number: 0xa000cb3c 0x004f4f5b**
**Serial Number: 0x00000000 0x00000000 0x14d463dc 0x0f5cafe1**
*****@raspberrypi3:~/hackrf/host/build $ hackrf_sweep**
**hackrf_sweep: symbol lookup error: hackrf_sweep: undefined symbol:
hackrf_open_by_serial*

So I rebooted and now I get this:

****@raspberrypi3:~/hackrf/host/build $ hackrf_info**
**hackrf_info version: git-0335f1a**
**hackrf_info: symbol lookup error: hackrf_info: undefined symbol:
hackrf_library_release*

Any ideas?

Roy
Martin Müller
2017-02-12 15:46:08 UTC
Permalink
I seem to have the same issue. If I run "ldd /usr/local/bin/hackrf_info"
I can see that it is linked to "/usr/lib64/libhackrf.so.0" which for me
points to "/usr/lib64/libhackrf.so.0 -> libhackrf.so.0.4.0" (found out
using "ls -l /usr/lib64/libhackrf.so.0" but I guess it should be
"/usr/local/lib/libhackrf.so.0.5.0" although I've removed hackrf-tools
and libhackrf from my package manager.

I had to manually remove "/usr/lib64/libhackrf.so.0.4.0" and
/usr/lib64/libhackrf.so.0" which links to it and reinstall the
hackrf_tools to make it work. Note: I had to completely remove the build
folder and restart from there as the CMake step seems to determine the
library paths. Just using "make clean" and "make install" etc. did not help.

My guess is that the old library is a leftover from a prior version
which didn't get overwritten because the path prefix changed for me.

Martin
Post by Roy
**hackrf_info version: git-0335f1a**
hackrf_library_release*
Any ideas?
Roy
Dominic Spill
2017-02-12 16:23:29 UTC
Permalink
Post by Roy
Found HackRF board.
Board ID Number: 2 (HackRF One)
Firmware Version: 2017.02.1
Part ID Number: 0xa000cb3c 0x004f4f5b
Serial Number: 0x00000000 0x00000000 0x14d463dc 0x0f5cafe1
hackrf_open_by_serial
Post by Roy
hackrf_info version: git-0335f1a
hackrf_library_release

This is picking up an older copy of libhackrf, possibly the previous
install, possibly one from a package manager.

As Martin suggested, using "ldd /usr/local/bin/hackrf_info" should show you
which version is installed, this error message would suggest that it's
picking up 0.4 rather than 0.5.
Rustu Yucel
2017-02-12 18:51:44 UTC
Permalink
I have an error as " hackrf sweep: undefined symbol: hackrf_init_sweep " and no sweep function of course
What should be done?
Sent from my iPhone
Post by Roy
Found HackRF board.
Board ID Number: 2 (HackRF One)
Firmware Version: 2017.02.1
Part ID Number: 0xa000cb3c 0x004f4f5b
Serial Number: 0x00000000 0x00000000 0x14d463dc 0x0f5cafe1
hackrf_sweep: symbol lookup error: hackrf_sweep: undefined symbol: hackrf_open_by_serial
hackrf_info version: git-0335f1a
hackrf_info: symbol lookup error: hackrf_info: undefined symbol: hackrf_library_release
This is picking up an older copy of libhackrf, possibly the previous install, possibly one from a package manager.
As Martin suggested, using "ldd /usr/local/bin/hackrf_info" should show you which version is installed, this error message would suggest that it's picking up 0.4 rather than 0.5.
_______________________________________________
HackRF-dev mailing list
https://pairlist9.pair.net/mailman/listinfo/hackrf-dev
Dominic Spill
2017-02-13 18:30:03 UTC
Permalink
Post by Rustu Yucel
I have an error as " hackrf sweep: undefined symbol: hackrf_init_sweep "
and no sweep function of course
Post by Rustu Yucel
What should be done?
This sounds like the same problem, you have two copies of libhackrf
installed. I recommend removing all copies of libhackrf and them
re-running the "make install" step of the installation.

Dominic
Post by Rustu Yucel
Post by Roy
Found HackRF board.
Board ID Number: 2 (HackRF One)
Firmware Version: 2017.02.1
Part ID Number: 0xa000cb3c 0x004f4f5b
Serial Number: 0x00000000 0x00000000 0x14d463dc 0x0f5cafe1
hackrf_sweep: symbol lookup error: hackrf_sweep: undefined symbol: hackrf_open_by_serial
hackrf_info version: git-0335f1a
hackrf_info: symbol lookup error: hackrf_info: undefined symbol: hackrf_library_release
This is picking up an older copy of libhackrf, possibly the previous
install, possibly one from a package manager.
Post by Rustu Yucel
As Martin suggested, using "ldd /usr/local/bin/hackrf_info" should show
you which version is installed, this error message would suggest that it's
picking up 0.4 rather than 0.5.
Post by Rustu Yucel
_______________________________________________
HackRF-dev mailing list
https://pairlist9.pair.net/mailman/listinfo/hackrf-dev
Rustu Yucel
2017-02-14 19:38:32 UTC
Permalink
Hi, today I uninstall/re-install Ubuntu and reinstall hackrf spiflash and
cpldjtag and here is hackrf_info outcome:
hackrf_info version: 2017.02.1
libhackrf version: 2017.02.1 (0.5)
Found HackRF
Index: 0
Serial number: 0000000000000000909864c828721dcf
Board ID Number: 2 (HackRF One)
Firmware Version: 2017.02.1 (API:1.02)
Part ID Number: 0xa000cb3c 0x005e435a

And still I can not run hackrf_transfer mode in OS Ubuntu. Here is one
outcome:

hackrf_transfer -r /dev/null
call hackrf_set_sample_rate(10000000 Hz/10.000 MHz)
call hackrf_set_freq(900000000 Hz/900.000 MHz)
Stop with Ctrl-C
0.3 MiB / 1.000 sec = 0.3 MiB/second

Exiting... hackrf_is_streaming() result: streaming terminated (-1004)
Total time: 1.00015 s
hackrf_stop_rx() done
hackrf_close() done
hackrf_exit() done
fclose(fd) done
exit

What should I do?
Post by Rustu Yucel
Post by Rustu Yucel
I have an error as " hackrf sweep: undefined symbol: hackrf_init_sweep "
and no sweep function of course
Post by Rustu Yucel
What should be done?
This sounds like the same problem, you have two copies of libhackrf
installed. I recommend removing all copies of libhackrf and them
re-running the "make install" step of the installation.
Dominic
Post by Rustu Yucel
Post by Roy
Found HackRF board.
Board ID Number: 2 (HackRF One)
Firmware Version: 2017.02.1
Part ID Number: 0xa000cb3c 0x004f4f5b
Serial Number: 0x00000000 0x00000000 0x14d463dc 0x0f5cafe1
hackrf_open_by_serial
Post by Rustu Yucel
Post by Roy
hackrf_info version: git-0335f1a
hackrf_library_release
Post by Rustu Yucel
This is picking up an older copy of libhackrf, possibly the previous
install, possibly one from a package manager.
Post by Rustu Yucel
As Martin suggested, using "ldd /usr/local/bin/hackrf_info" should show
you which version is installed, this error message would suggest that it's
picking up 0.4 rather than 0.5.
Post by Rustu Yucel
_______________________________________________
HackRF-dev mailing list
https://pairlist9.pair.net/mailman/listinfo/hackrf-dev
Dominic Spill
2017-02-14 21:11:54 UTC
Permalink
Post by Rustu Yucel
Hi, today I uninstall/re-install Ubuntu and reinstall hackrf spiflash and
hackrf_info version: 2017.02.1
libhackrf version: 2017.02.1 (0.5)
Found HackRF
Index: 0
Serial number: 0000000000000000909864c828721dcf
Board ID Number: 2 (HackRF One)
Firmware Version: 2017.02.1 (API:1.02)
Part ID Number: 0xa000cb3c 0x005e435a
And still I can not run hackrf_transfer mode in OS Ubuntu. Here is one
hackrf_transfer -r /dev/null
call hackrf_set_sample_rate(10000000 Hz/10.000 MHz)
call hackrf_set_freq(900000000 Hz/900.000 MHz)
Stop with Ctrl-C
0.3 MiB / 1.000 sec = 0.3 MiB/second
As I mentioned yesterday, this data rate is very low, it looks like there
is a USB problem. What hardware is this running on?
Post by Rustu Yucel
Post by Dominic Spill
Post by Rustu Yucel
I have an error as " hackrf sweep: undefined symbol: hackrf_init_sweep
" and no sweep function of course
Post by Rustu Yucel
Post by Dominic Spill
Post by Rustu Yucel
What should be done?
This sounds like the same problem, you have two copies of libhackrf
installed. I recommend removing all copies of libhackrf and them
re-running the "make install" step of the installation.
Post by Rustu Yucel
Post by Dominic Spill
Dominic
Post by Rustu Yucel
Post by Roy
Found HackRF board.
Board ID Number: 2 (HackRF One)
Firmware Version: 2017.02.1
Part ID Number: 0xa000cb3c 0x004f4f5b
Serial Number: 0x00000000 0x00000000 0x14d463dc 0x0f5cafe1
hackrf_sweep: symbol lookup error: hackrf_sweep: undefined symbol: hackrf_open_by_serial
hackrf_info version: git-0335f1a
hackrf_info: symbol lookup error: hackrf_info: undefined symbol: hackrf_library_release
This is picking up an older copy of libhackrf, possibly the previous
install, possibly one from a package manager.
Post by Rustu Yucel
Post by Dominic Spill
Post by Rustu Yucel
As Martin suggested, using "ldd /usr/local/bin/hackrf_info" should
show you which version is installed, this error message would suggest that
it's picking up 0.4 rather than 0.5.
Post by Rustu Yucel
Post by Dominic Spill
Post by Rustu Yucel
_______________________________________________
HackRF-dev mailing list
https://pairlist9.pair.net/mailman/listinfo/hackrf-dev
Loading...