Difference between revisions of "PiHPSDR compile ubuntu"
From HPSDRwiki
(→Fetch WDSP and piHPSDR source code) |
(→Fetch WDSP and piHPSDR source code) |
||
| Line 38: | Line 38: | ||
Reboot the system to have the gpio group changes and the SPI interface changes have effect. | Reboot the system to have the gpio group changes and the SPI interface changes have effect. | ||
| − | ===Fetch WDSP and piHPSDR source code === | + | ===Fetch WDSP and piHPSDR source code from github === |
| + | |||
| + | I would recommend creating a directory '''github''' to download the source into: | ||
| + | |||
| + | <pre>mkdir github</pre> | ||
| + | <pre>cd github</pre> | ||
| + | |||
| + | Download the source: | ||
<pre>git clone https://github.com/g0orx/wdsp.git</pre> | <pre>git clone https://github.com/g0orx/wdsp.git</pre> | ||
<pre>git clone https://github.com/g0orx/pihpsdr.git</pre> | <pre>git clone https://github.com/g0orx/pihpsdr.git</pre> | ||
Revision as of 08:23, 3 December 2020
Contents
PiHPSDR - Setting up and compiling on Ubuntu 20.10 64 bit
Install System Reqirements
sudo apt install build-essential git
Install piHPSDR prerequisites
sudo apt install libfftw3-dev libgtk-3-dev libasound2-dev libusb-1.0-0-dev libgpiod-dev libi2c-dev
Setup gpio group
Installing libi2c-dev creates a group i2c but installing libgpiod-dev does not create the gpio group.
sudo addgroup --system gpio
sudo adduser $USER gpio
Set gpio ownership and permissions on bootup
Create /etc/udev/rules.d/90-gpio.rules with:
KERNEL=="gpio*", OWNER="root", GROUP="gpio", MODE="660"
Disable SPI interface
Edit /boot/firmware/config.txt and find the line with:
dtparams=spi=on
and change to:
dtparams=spi=off
Reboot system
Reboot the system to have the gpio group changes and the SPI interface changes have effect.
Fetch WDSP and piHPSDR source code from github
I would recommend creating a directory github to download the source into:
mkdir github
cd github
Download the source:
git clone https://github.com/g0orx/wdsp.git
git clone https://github.com/g0orx/pihpsdr.git