bladerf error on ubuntu 16.04

Having issues with the site, hardware, source code, or any other issues?
Post Reply
raycop
Posts: 1
Joined: Fri Aug 11, 2017 1:18 am

bladerf error on ubuntu 16.04

Post by raycop »

I want to install bladerf x40 on ubuntu 16.04 with installation guide from https://github.com/Nuand/bladeRF/wiki/G ... ted:-Linux
But there is a problem when typing osmocom_fft -a bladerf=0 -s 2000000 -f 446000000 with this error below:
linux; GNU C++ version 5.3.1 20151219; Boost_105800; UHD_003.009.002-0-unknown

gr-osmosdr 0.1.4 (0.1.4) gnuradio 3.7.9
built-in source types: file osmosdr fcd rtl rtl_tcp uhd miri hackrf bladerf rfspace airspy redpitaya
Opening nuand bladeRF with device identifier string: "*:instance=0"
[ERROR @ file_ops.c:119] file_read_buffer: could not open /usr/share/Nuand/bladeRF/hostedx40.rbf: Permission denied

FATAL: [bladeRF source] Failed to open bladeRF device *:instance=0

Trying to fill up 1 missing channel(s) with null source(s).
This is being done to prevent the application from crashing
due to gnuradio bug #528.

Source has no sample rates (wrong device arguments?).

This problem happen when the BladeRF device is plugged. I've already upgrade and update via sudo apt-get and upgrade driver via sudo ubuntu-drivers autoinstall.On instalation process on https://github.com/Nuand/bladeRF/wiki/G ... ted:-Linux there is a step I can't install:

Add GNU Radio to linker path and executable path

If you would like GNU Radio to be available in PATH for all uses, create a new file called /etc/profile.d/gnuradio.sh:

sudo vi /etc/profile.d/gnuradio.sh

Otherwise, if you would like GNU Radio executables to only be in your path, update your shell's runtime-config file, such as ~/.bashrc.

Put the following into it:

#!/bin/bash

# Add GNU Radio binaries to the search path
GNURADIO_PATH=/opt/gnuradio-3.7.9.2
export PATH=$PATH:$GNURADIO_PATH/bin

# Add GNU Radio python libraries to python search path
if [ $PYTHONPATH ]; then
export PYTHONPATH=$PYTHONPATH:$GNURADIO_PATH/lib/python2.7/dist-packages
else
export PYTHONPATH=$GNURADIO_PATH/lib/python2.7/dist-packages
fi

Note: Be sure to update GNURADIO_PATH if you deviated from gnuradio-3.7.9.2

Note: If you're on a non-Debian based distro, you might need to replace "dist-packages" with "site-packages".

Again, with your favorite text editor, create a new file called `/etc/ld.so.conf.d/gnuradio.conf`:

sudo vi /etc/ld.so.conf.d/gnuradio.conf

Put this in the new file:

/opt/gnuradio-3.7.9.2/lib

Note: on some 64 bit systems, you might need a lib64 directory in this file as well.

Update your library cache again

$ sudo ldconfig -v | grep gnuradio

You should see something akin to the following:

/opt/gnuradio-3.7.9.2/lib:
libgnuradio-analog-3.7.9.2.so.0.0.0 -> libgnuradio-analog.so
libgnuradio-trellis-3.7.9.2.so.0.0.0 -> libgnuradio-trellis.so
libgnuradio-fft-3.7.9.2.so.0.0.0 -> libgnuradio-fft.so
libgnuradio-fec-3.7.9.2.so.0.0.0 -> libgnuradio-fec.so
libgnuradio-qtgui-3.7.9.2.so.0.0.0 -> libgnuradio-qtgui.so
libgnuradio-channels-3.7.9.2.so.0.0.0 -> libgnuradio-channels.so
libgnuradio-wavelet-3.7.9.2.so.0.0.0 -> libgnuradio-wavelet.so
libgnuradio-pmt-3.7.9.2.so.0.0.0 -> libgnuradio-pmt.so
libgnuradio-atsc-3.7.9.2.so.0.0.0 -> libgnuradio-atsc.so
libgnuradio-video-sdl-3.7.9.2.so.0.0.0 -> libgnuradio-video-sdl.so
libgnuradio-vocoder-3.7.9.2.so.0.0.0 -> libgnuradio-vocoder.so
libgnuradio-fcd-3.7.9.2.so.0.0.0 -> libgnuradio-fcd.so
libgnuradio-zeromq-3.7.9.2.so.0.0.0 -> libgnuradio-zeromq.so
libgnuradio-blocks-3.7.9.2.so.0.0.0 -> libgnuradio-blocks.so
libgnuradio-audio-3.7.9.2.so.0.0.0 -> libgnuradio-audio.so
libgnuradio-dtv-3.7.9.2.so.0.0.0 -> libgnuradio-dtv.so
libgnuradio-pager-3.7.9.2.so.0.0.0 -> libgnuradio-pager.so
libgnuradio-noaa-3.7.9.2.so.0.0.0 -> libgnuradio-noaa.so
libgnuradio-filter-3.7.9.2.so.0.0.0 -> libgnuradio-filter.so
libgnuradio-digital-3.7.9.2.so.0.0.0 -> libgnuradio-digital.so
libgnuradio-runtime-3.7.9.2.so.0.0.0 -> libgnuradio-runtime.so
Is this step take effect on "permission denied" error bladeRF?
And how I can solve "permission denied" error bladeRF on Ubuntu 16.04?Help
Thankyou
bglod
Posts: 201
Joined: Thu Jun 18, 2015 6:10 pm

Re: bladerf error on ubuntu 16.04

Post by bglod »

raycop, I moved this thread to a more appropriate forum. :)

Your problem is right here:
[ERROR @ file_ops.c:119] file_read_buffer: could not open /usr/share/Nuand/bladeRF/hostedx40.rbf: Permission denied
This means you need to check the ownership and permissions of that file and/or the directories leading up to that file versus your user account. For FPGA auto loading, I personally prefer the user's home directory (~/.config/Nuand/bladeRF/) because it's a little cleaner and gives the user a little more control over the files used. The path you are using (/usr/share) is intended to be a global path for multiple users.
Electrical Engineer
Nuand, LLC.
Post Reply