This repository contains essential files and instructions for setting up the USRP B210 with custom firmware on Linux. Follow the steps below to install the required drivers and replace the default B210 image with the custom one from this repository.
- Ubuntu Linux or another Debian-based distribution
- A USRP B210 LibreSDR clone (XC7A100T+AD9361 ONLY)
- Git installed on your machine
First, you'll need to install the USRP Hardware Drivers (UHD) for your device.
Open a terminal and run the following commands:
$ sudo add-apt-repository ppa:ettusresearch/uhd
$ sudo apt update
$ sudo apt install libuhd-dev uhd-host
$ sudo apt install python3
Next, you need to download the UHD images used by the USRP devices. Run the following command to install the images:
sudo /usr/lib/uhd/utils/uhd_images_downloader.py
The images will be downloaded to: /opt/local/share/uhd/images
Replace the default B210 image in /opt/local/share/uhd/images with the custom image provided in this repository.
wget https://github.com/lmesserStep/LibreSDRB210/raw/main/usrp_b210_fpga.bin
cp usrp_b210_fpga.bin /opt/local/share/uhd/images
$ uhd_usrp_probe
[INFO] [UHD] Mac OS; Clang version 15.0.0 (clang-1500.1.0.2.5); Boost_107100; UHD_3.15.0.0-MacPorts-Release
[INFO] [B200] Detected Device: B210
[INFO] [B200] Loading FPGA image: /opt/local/share/uhd/images/usrp_b210_fpga.bin...
[INFO] [B200] Operating over USB 3.
[INFO] [B200] Detecting internal GPSDO....
[INFO] [GPS] No GPSDO found
[INFO] [B200] Initialize CODEC control...
[INFO] [B200] Initialize Radio control...
[INFO] [B200] Performing register loopback test...
[INFO] [B200] Register loopback test passed
[INFO] [B200] Performing register loopback test...
[INFO] [B200] Register loopback test passed
[INFO] [B200] Setting master clock rate selection to 'automatic'.
[INFO] [B200] Asking for clock rate 16.000000 MHz...
[INFO] [B200] Actually got clock rate 16.000000 MHz.
Any of the changes needed will require Vivado, this is a working bin. Please note, this has been tested on versions 4.0-7.0 UHD from Ettus Labs.