Failed to open device : Insufficient permissions
Posted: Mon Aug 22, 2016 4:19 am
As I update the software, through
apt-get install bladerf
and the libraries I got this problem:
and@and-HP-250-G4-Notebook-PC:~$ bladeRF-cli -i
Failed to open device (first available): Insufficient permissions for the requested operation
these are the features:
ldd `which bladeRF-cli`
linux-vdso.so.1 => (0x00007ffced442000)
libbladeRF.so.1 => /usr/local/lib/libbladeRF.so.1 (0x00007fcccfc91000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fcccfa73000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fcccf76c000)
libtecla.so.1 => /usr/lib/libtecla.so.1 (0x00007fcccf548000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fcccf183000)
libusb-1.0.so.0 => /lib/x86_64-linux-gnu/libusb-1.0.so.0 (0x00007fcccef6a000)
/lib64/ld-linux-x86-64.so.2 (0x000055601ff6e000)
libudev.so.1 => /lib/x86_64-linux-gnu/libudev.so.1 (0x00007fccced59000)
libcgmanager.so.0 => /lib/x86_64-linux-gnu/libcgmanager.so.0 (0x00007fccceb3e000)
libnih.so.1 => /lib/x86_64-linux-gnu/libnih.so.1 (0x00007fccce925000)
libnih-dbus.so.1 => /lib/x86_64-linux-gnu/libnih-dbus.so.1 (0x00007fccce71b000)
libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007fccce4d6000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fccce2cd000)
and@and-HP-250-G4-Notebook-PC:~$ bladeRF-cli -p
Backend: libusb
Serial: c36781bf545973547fdfed05e6edd3a7
USB Bus: 2
USB Address: 2
and@and-HP-250-G4-Notebook-PC:~$ bladeRF-cli -v verbose
[VERBOSE @ libusb.c:541] Using libusb version: 1.0.20.11004
[VERBOSE @ libusb.c:422] Found a bladeRF (idx=2)
[VERBOSE @ libusb.c:484] USB port reset succeeded for bladeRF c36781bf545973547fdfed05e6edd3a7
[VERBOSE @ capabilities.c:45] Capability mask before FPGA load: 0x0000000700000000
[VERBOSE @ usb.c:112] Changing to USB alt setting 0
[VERBOSE @ usb.c:112] Changing to USB alt setting 2
[VERBOSE @ usb.c:112] Changing to USB alt setting 3
[VERBOSE @ usb.c:112] Changing to USB alt setting 2
[VERBOSE @ usb.c:112] Changing to USB alt setting 3
[DEBUG @ config.c:80] Loading FPGA from: /usr/share/Nuand/bladeRF/hostedx40.rbf
Failed to open device (first available): Insufficient permissions for the requested operation
I had to "sudo" in order to work:
and@and-HP-250-G4-Notebook-PC:~$ sudo bladeRF-cli -i
[sudo] password for and:
bladeRF> info
Serial #: c36781bf545973547fdfed05e6edd3a7
VCTCXO DAC calibration: 0x9004
FPGA size: 40 KLE
FPGA loaded: yes
USB bus: 2
USB address: 2
USB speed: SuperSpeed
Backend: libusb
Instance: 0
bladeRF> version
bladeRF-cli version: 1.4.0-2016.06-1-ppatrusty
libbladeRF version: 1.7.2-2016.06-1-ppatrusty
Firmware version: 2.0.0
FPGA version: 0.6.0
bladeRF>
Previous installation of libbladerf, fx3 and libusb (1.0.17) that didn't happen
how can I get it to work without "sudo"?
Thanks
Andrea
apt-get install bladerf
and the libraries I got this problem:
and@and-HP-250-G4-Notebook-PC:~$ bladeRF-cli -i
Failed to open device (first available): Insufficient permissions for the requested operation
these are the features:
ldd `which bladeRF-cli`
linux-vdso.so.1 => (0x00007ffced442000)
libbladeRF.so.1 => /usr/local/lib/libbladeRF.so.1 (0x00007fcccfc91000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fcccfa73000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fcccf76c000)
libtecla.so.1 => /usr/lib/libtecla.so.1 (0x00007fcccf548000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fcccf183000)
libusb-1.0.so.0 => /lib/x86_64-linux-gnu/libusb-1.0.so.0 (0x00007fcccef6a000)
/lib64/ld-linux-x86-64.so.2 (0x000055601ff6e000)
libudev.so.1 => /lib/x86_64-linux-gnu/libudev.so.1 (0x00007fccced59000)
libcgmanager.so.0 => /lib/x86_64-linux-gnu/libcgmanager.so.0 (0x00007fccceb3e000)
libnih.so.1 => /lib/x86_64-linux-gnu/libnih.so.1 (0x00007fccce925000)
libnih-dbus.so.1 => /lib/x86_64-linux-gnu/libnih-dbus.so.1 (0x00007fccce71b000)
libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007fccce4d6000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fccce2cd000)
and@and-HP-250-G4-Notebook-PC:~$ bladeRF-cli -p
Backend: libusb
Serial: c36781bf545973547fdfed05e6edd3a7
USB Bus: 2
USB Address: 2
and@and-HP-250-G4-Notebook-PC:~$ bladeRF-cli -v verbose
[VERBOSE @ libusb.c:541] Using libusb version: 1.0.20.11004
[VERBOSE @ libusb.c:422] Found a bladeRF (idx=2)
[VERBOSE @ libusb.c:484] USB port reset succeeded for bladeRF c36781bf545973547fdfed05e6edd3a7
[VERBOSE @ capabilities.c:45] Capability mask before FPGA load: 0x0000000700000000
[VERBOSE @ usb.c:112] Changing to USB alt setting 0
[VERBOSE @ usb.c:112] Changing to USB alt setting 2
[VERBOSE @ usb.c:112] Changing to USB alt setting 3
[VERBOSE @ usb.c:112] Changing to USB alt setting 2
[VERBOSE @ usb.c:112] Changing to USB alt setting 3
[DEBUG @ config.c:80] Loading FPGA from: /usr/share/Nuand/bladeRF/hostedx40.rbf
Failed to open device (first available): Insufficient permissions for the requested operation
I had to "sudo" in order to work:
and@and-HP-250-G4-Notebook-PC:~$ sudo bladeRF-cli -i
[sudo] password for and:
bladeRF> info
Serial #: c36781bf545973547fdfed05e6edd3a7
VCTCXO DAC calibration: 0x9004
FPGA size: 40 KLE
FPGA loaded: yes
USB bus: 2
USB address: 2
USB speed: SuperSpeed
Backend: libusb
Instance: 0
bladeRF> version
bladeRF-cli version: 1.4.0-2016.06-1-ppatrusty
libbladeRF version: 1.7.2-2016.06-1-ppatrusty
Firmware version: 2.0.0
FPGA version: 0.6.0
bladeRF>
Previous installation of libbladerf, fx3 and libusb (1.0.17) that didn't happen
how can I get it to work without "sudo"?
Thanks
Andrea