Raspberry Pi 2 Help

131 views
Skip to first unread message

River Collins

unread,
Feb 9, 2017, 6:01:23 PM2/9/17
to Gqrx SDR
Hey I have a rtl-sdr on my raspberry pi 2. I followed the guide here to get it working. I can get gqrx to run but when I press "Start DSP" it errors out with the error "Illegal instruction". What am I doing wrong?

Thanks!

Jon Riley

unread,
Apr 10, 2017, 8:33:09 AM4/10/17
to Gqrx SDR
I have a RPi2 and similarly follow the instructions carefully to load and setup the gqrx library for RPi2 but unable to run the binary due to illegal instruction; 
./run_gqrx.sh: line 18:  1678 Illegal instruction     gqrx $1 $2
This is not apparently dependent on the receiver since mine is found (via lsusb, and also matched in /etc/udev/rules.d/rtl-sdr.rules entry).     Most probably this was an error in make/compilation from the source (they moved on to RPi3 and forgot to recompile using for RPi2 libraries for the instruction set), but we may never know unless they wake up and revisit the compilation from source.
I guess the option is there to purchase an RPi3 and see if that works with the RPi3 download. 

David Ranch

unread,
Apr 10, 2017, 10:48:51 AM4/10/17
to Gqrx SDR

Whenever you see "illegal instruction" errors, it's almost always because you installed the wrong package.  There are TWO packages posted for Gqrx:  RPIv2 and RPIv3

   http://gqrx.dk/download/gqrx-sdr-for-the-raspberry-pi

Are you 100% sure you downloaded the Rpi v2 version?

--David
KI6ZHD

Alexandru Csete

unread,
Apr 10, 2017, 4:15:54 PM4/10/17
to gq...@googlegroups.com
The step-by-step instructions are just an example using the RPI3
packages. So if you blindly copy & paste everything then you will end
up with the RPI3 package.

Alex
> --
> You received this message because you are subscribed to the Google Groups
> "Gqrx SDR" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to gqrx+uns...@googlegroups.com.
> To post to this group, send email to gq...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/gqrx/1137c841-f128-4f7f-9ebf-f1d231b776f6%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.

Jon Riley

unread,
Apr 11, 2017, 2:09:01 AM4/11/17
to Gqrx SDR
I prepared my Pi2 with sudo apt-get update and sudo apt-get upgrade and installed the co-reqs, then downloaded the Pi2 version tar.xz (linked below).  I expanded it and then ran install script checked env vars set, and rules added.    I checked my lsusb to confirm my radio is recognised with vendor:product codes matched in rules... checked and re-checked, even tried to redo again with the version via wget (same error) before I posted.  I am not convinced that I am infallible, but very confident that (1) I used the version for Pi2 and (2) Installed pre-reqs and according to posted instructions.    If there is a better way, then I am very willing to learn.  :) 

Alexandru Csete

unread,
Apr 11, 2017, 5:02:37 AM4/11/17
to gq...@googlegroups.com
I don't know what to say... I tried the binary that you linked to
yesterday on my PI2 and it just works. I also tried the one from
sourceforge just to be sure and that works also.

md5sum gqrx-2.6-rpi2-2.tar.xz
0582cebe5a75f7c712ec91add645282a gqrx-2.6-rpi2-2.tar.xz

This is just too weird.

Alex
> --
> You received this message because you are subscribed to the Google Groups
> "Gqrx SDR" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to gqrx+uns...@googlegroups.com.
> To post to this group, send email to gq...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/gqrx/a9703e5f-e3ba-40d3-b333-8b6520ddb58c%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages