Raspberry Pi???

Add useful snippets of code or links to entire SDR projects.
Post Reply
rec
Posts: 3
Joined: Thu Mar 17, 2016 3:30 pm

Raspberry Pi???

Post by rec » Sun Mar 27, 2016 1:03 am

I tried running a program on my Raspberry Pi and it failed in libusb_open with error -3, which is access failed for insufficient permissions.

That's usually a failure to install a rules file in /etc/udev/rules.d where rules that enable support to usb devices are kept. There's a 66-mirics.rules file installed on my x86_64 linux box, but there wasn't any such on the Raspberry Pi. When I copied the file over to the Raspberry Pi, my program stopped failing in libusb_open.

The x86_64 linux API installer installs /etc/udev/rules.d/66-mirics.rules, but the arm raspberry pi installer doesn't install any such file.

-- rec -- ad5dz --
Last edited by rec on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

sdrplay
Posts: 978
Joined: Wed Jan 07, 2015 7:58 am

Re: Raspberry Pi???

Post by sdrplay » Sun Mar 27, 2016 6:02 am

You need the Raspberry Pi 2 & 3 driver which also does the udev install...

http://www.sdrplay.com/starthere.php or http://www.sdrplay.com/raspberrypi2.html

The Linux driver will not work on the Raspberry Pi 2/3

Best regards,

SDRplay Support
Last edited by sdrplay on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

rec
Posts: 3
Joined: Thu Mar 17, 2016 3:30 pm

Re: Raspberry Pi???

Post by rec » Sun Mar 27, 2016 2:38 pm

I did download and install SDRplay_RSP_MiricsAPI-1.9.2.RPi.run and it did not install any udev rules. That's how I got the error I reported in my first message. There is no udev rules file for the Mirics USB bridge in the Raspberry Pi API installer package.

To work around the problem for the time being one may copy /etc/udev/rules.d/66-mirics.rules from an Intel linux install into /etc/udev/rules.d on a Raspberry Pi.

I am telling you, for the second time, that the Raspberry Pi installer is defective. You should fix it.

-- rec -- ad5dz --
Last edited by rec on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

sdrplay
Posts: 978
Joined: Wed Jan 07, 2015 7:58 am

Re: Raspberry Pi???

Post by sdrplay » Sun Mar 27, 2016 7:37 pm

I thought the dev rules where in that package. If not, create it using sudo nano /etc/udev/rules.d/66-mirics.rules

and paste the following and then save the file

SUBSYSTEM=="usb" ATTR{idVendor}=="1df7" ATTR{idProduct}=="2500" MODE:="0666"

After that, type sudo service dev restart and disconnect the RSP (if connected) and reconnect again.

The dev rules will make it into a future release.

Best regards,

SDRplay Support
Last edited by sdrplay on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

n2cr
Posts: 5
Joined: Wed Jul 29, 2015 11:05 pm
Location: Morris Plains, NJ, USA

Re: Raspberry Pi???

Post by n2cr » Mon Mar 28, 2016 11:28 am

Would it be possible to get a 64-bit version of the Pi RSP shared library? I'm trying to build gr-osmosdr on my Odroid-C2 which is a 64-bit quad core ARMv8 and the 32-bit driver can't be linked with the rest of the source code which has been compiled for 64-bit.

Chris N2CR
Last edited by n2cr on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

sdrplay
Posts: 978
Joined: Wed Jan 07, 2015 7:58 am

Re: Raspberry Pi???

Post by sdrplay » Mon Mar 28, 2016 6:47 pm

I have an odroid device and it is on the list of platforms to support. I'll try to find some time to get it on there and tested.

Best regards,

SDRplay Support
Last edited by sdrplay on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

n2cr
Posts: 5
Joined: Wed Jul 29, 2015 11:05 pm
Location: Morris Plains, NJ, USA

Re: Raspberry Pi???

Post by n2cr » Thu Aug 04, 2016 11:17 pm

sdrplay wrote:I have an odroid device and it is on the list of platforms to support. I'll try to find some time to get it on there and tested.

Best regards,

SDRplay Support
Any updates on when this will be available? Would love to post its availability to the Odroid forums.
Last edited by n2cr on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

pachoduran
Posts: 10
Joined: Fri Jun 10, 2016 10:21 pm

Re: Raspberry Pi???

Post by pachoduran » Tue Aug 09, 2016 9:39 pm

Hi, i make this step by step for configure the raspberry pi with me SDRPLAY:

udo apt-get update
sudo apt-get upgrade

sudo apt-get install cmake

download api

chmod 755 SDRplay_RSP_MiricsAPI-RPi-1.95.2.run
./SDRplay_RSP_MiricsAPI-RPi-1.95.2.run

sudo nano /etc/udev/rules.d/66-mirics.rules

SUBSYSTEM=="usb",ENV{DEVTYPE}=="usb_device",ATTRS{idVendor}=="1df7",ATTRS{idProduct}=="2500",MODE="0666"

sudo service udev restart

sudo apt-get install libusb-1.0-0

sudo apt-get install libusb-1.0-0-dev

ldconfig -p | grep libusb

ldconfig -p | grep mirsdrapi

ldconfig -p | grep oapy
Last edited by pachoduran on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

jon
Posts: 433
Joined: Tue Jan 06, 2015 10:48 am

Re: Raspberry Pi???

Post by jon » Mon Jun 19, 2017 6:23 am

We now have an SD Card image you can download - see https://youtu.be/SRhcpya3LnU

Reason: No reason

Post Reply