Installing USRP drivers in raspberry pi 4

In order to install the USRP drivers in pi 4 with raspbian OS, we have to install the dependencies first 

sudo apt-get install autoconf automake build-essential ccache cmake cpufrequtils doxygen ethtool \
g++ git inetutils-tools libboost-all-dev libncurses5 libncurses5-dev libusb-1.0-0 libusb-1.0-0-dev \
libusb-dev python3-dev python3-mako python3-numpy python3-requests python3-scipy python3-setuptools \ python3-ruamel.yaml 

Clone the repository 


git clone https://github.com/EttusResearch/uhd.git

Installing the drivers


cd <uhd-repo-path>/host
mkdir build
cd build
cmake ../

This step is important


cmake -DCMAKE_CXX_FLAGS:STRING="-march=armv7-a -mfloat-abi=hard -mfpu=neon -mtune=cortex-a15 -Wno-psabi" -DCMAKE_C_FLAGS:STRING="-march=armv7-a -mfloat-abi=hard -mfpu=neon -mtune=cortex-a15 -Wno-psabi" -DCMAKE_ASM_FLAGS:STRING="-march=armv7-a -mfloat-abi=hard -mfpu=neon -mtune=cortex-a15 -g" ../

Now make & install the drivers


make
make test # This step is optional
sudo make install

We have to use this command in order for the changes to take place


sudo ldconfig

To download the image of the connected USRP


sudo /usr/local/lib/uhd/utils/uhd_images_downloader.py

sudo uhd_images_downloader

To detect a connected USRP device use the following command


sudo uhd_find_devices





by : 

V Abhishek Raj (vabhishekraj@idrbt.ac.in)

Project supported by 5G Use case lab - IDRBT




Comments

Popular Posts