InstallingGRFromSource on Raspberry Pi: Difference between revisions

From GNU Radio
Jump to navigation Jump to search
(Created page with "These instructions are under construction.")
 
(Major revision with references to other document pages.)
 
(17 intermediate revisions by 3 users not shown)
Line 1: Line 1:
These instructions are under construction.
<!-- InstallingGRFromSource_on_Raspberry_Pi -->
Note that there is a pre-built 32-bit SDR flavored Raspberry Pi OS distro, [https://github.com/luigifcruz/pisdr-image PiSDR] that includes GNU Radio and other SDR utilities.  Alternatively, you can install from source using the steps in the remainder of this page.
 
These instructions have been tested with the <q>Raspberry Pi OS (previously called Raspbian) (32-bit) with desktop and recommended software</q> on a Raspberry Pi 3B+. A 32GB microSD card is recommended.
 
== Set up a swap file ==
 
A swap file will improve the compile time greatly.
 
<pre>
sudo fallocate -l 2G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
</pre>
<p>To make the swap file permanent, add this line to /etc/fstab</p>
<pre>
/swapfile  none  swap  sw  0  0
</pre>
 
== Load prerequisites ==
 
Before building UHD and GNU Radio, you need to make sure that all the dependencies are installed. For Ubuntu 20.04 [[UbuntuInstall#Install_Dependencies|use this page]].
 
== Install UHD from source ==
 
<b>If you want to use GNU Radio with a USRP, you FIRST must clone and install UHD</b>.<br> Follow the instructions in [[Draft-AN-445#Building_and_installing_UHD_from_source_code|Install UHD from source]].
 
== Install GNU Radio ==
 
* For GNU Radio 3.9, 3.10, and the Main branch, click [https://wiki.gnuradio.org/index.php?title=LinuxInstall#Installing_Volk here].
* For GNU Radio 3.8, click [https://wiki.gnuradio.org/index.php?title=LinuxInstall#Installing_GNU_Radio_2 here].

Latest revision as of 02:02, 22 April 2023

Note that there is a pre-built 32-bit SDR flavored Raspberry Pi OS distro, PiSDR that includes GNU Radio and other SDR utilities. Alternatively, you can install from source using the steps in the remainder of this page.

These instructions have been tested with the Raspberry Pi OS (previously called Raspbian) (32-bit) with desktop and recommended software on a Raspberry Pi 3B+. A 32GB microSD card is recommended.

Set up a swap file

A swap file will improve the compile time greatly.

sudo fallocate -l 2G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile

To make the swap file permanent, add this line to /etc/fstab

/swapfile  none  swap  sw  0  0

Load prerequisites

Before building UHD and GNU Radio, you need to make sure that all the dependencies are installed. For Ubuntu 20.04 use this page.

Install UHD from source

If you want to use GNU Radio with a USRP, you FIRST must clone and install UHD.
Follow the instructions in Install UHD from source.

Install GNU Radio

  • For GNU Radio 3.9, 3.10, and the Main branch, click here.
  • For GNU Radio 3.8, click here.