http://openhpsdr.org/wiki/index.php?title=Special:NewPages&feed=atom&hidebots=1&hideredirs=1&limit=50&offset=&namespace=0&username=&tagfilter=HPSDRwiki - New pages [en]2024-03-29T09:46:34ZFrom HPSDRwikiMediaWiki 1.26.0http://openhpsdr.org/wiki/index.php?title=PiHPSDR_compile_rpi_osPiHPSDR compile rpi os2020-12-03T16:53:14Z<p>G0ORX: Created page with "== PiHPSDR - Setting up and compiling on Raspberry Pi OS 32 bit == === Install piHPSDR prerequisites === <pre>sudo apt install -y libfftw3-dev libgtk-3-dev libasound2-dev l..."</p>
<hr />
<div>== PiHPSDR - Setting up and compiling on Raspberry Pi OS 32 bit ==<br />
<br />
<br />
=== Install piHPSDR prerequisites ===<br />
<br />
<pre>sudo apt install -y libfftw3-dev libgtk-3-dev libasound2-dev libusb-1.0-0-dev libgpiod-dev libi2c-dev</pre><br />
<br />
===Fetch WDSP and piHPSDR source code from github ===<br />
<br />
I would recommend creating a directory '''github''' to download the source into:<br />
<br />
<pre>mkdir github</pre><br />
<pre>cd github</pre><br />
<br />
Download the source:<br />
<br />
<pre>git clone https://github.com/g0orx/wdsp.git</pre><br />
<br />
<pre>git clone https://github.com/g0orx/pihpsdr.git</pre><br />
<br />
=== Compile WDSP ===<br />
<br />
<pre>cd ~/github/wdsp</pre><br />
<pre>make clean</pre><br />
<pre>make -j4</pre><br />
<pre>sudo make install</pre><br />
<br />
Copy libwdsp.so to the pihpsdr install directory:<br />
<br />
<pre>cp libwdsp.so ~/github/pihpsdr/release/pihpsdr</pre><br />
<br />
=== Compile pihpsdr ===<br />
<br />
<pre>cd ~/github/pihpsdr</pre><br />
<pre>make clean</pre><br />
<pre>make -j4</pre><br />
<pre>make release</pre><br />
<br />
=== Install pihpsdr ===<br />
<br />
<pre>cd ~</pre><br />
<pre>tar xvf ~/github/pihpsdr/release/pihpsdr.tar</pre><br />
<pre>cd pihpsdr</pre><br />
<pre>sh ./install.sh</pre></div>G0ORXhttp://openhpsdr.org/wiki/index.php?title=PiHPSDR_compile_ubuntuPiHPSDR compile ubuntu2020-11-19T09:31:52Z<p>G0ORX: /* Setup gpio group */</p>
<hr />
<div><br />
== PiHPSDR - Setting up and compiling on Ubuntu 20.10 64 bit ==<br />
<br />
<br />
=== Install System Reqirements ===<br />
<br />
<pre>sudo apt install -y build-essential git</pre><br />
<br />
=== Install piHPSDR prerequisites ===<br />
<br />
<pre>sudo apt install -y libfftw3-dev libgtk-3-dev libasound2-dev libusb-1.0-0-dev libgpiod-dev libi2c-dev</pre><br />
<br />
=== Setup gpio group ===<br />
<br />
The GPIO devices are installed with root ownership. To be able to run as a user we create a '''gpio''' group that we can be a member of and also create a udev rule to create the gpio devices with a group id of '''gpio''' and set the permissions to read/write for the owner and group.<br />
<br />
<pre>sudo addgroup --system gpio</pre><br />
<pre>sudo adduser $USER gpio</pre><br />
<br />
=== Set gpio ownership and permissions on bootup ===<br />
<br />
Create /etc/udev/rules.d/90-gpio.rules with:<br />
<br />
<pre>KERNEL=="gpio*", OWNER="root", GROUP="gpio", MODE="660"</pre><br />
<br />
=== Disable SPI interface ===<br />
<br />
Edit /boot/firmware/config.txt and find the line with:<br />
<br />
<pre>dtparams=spi=on</pre><br />
<br />
and change to:<br />
<br />
<pre>dtparams=spi=off</pre><br />
<br />
=== Reboot system ===<br />
<br />
Reboot the system to have the gpio group and permissions changes and the SPI interface changes have effect.<br />
<br />
===Fetch WDSP and piHPSDR source code from github ===<br />
<br />
I would recommend creating a directory '''github''' to download the source into:<br />
<br />
<pre>mkdir github</pre><br />
<pre>cd github</pre><br />
<br />
Download the source:<br />
<br />
<pre>git clone https://github.com/g0orx/wdsp.git</pre><br />
<br />
<pre>git clone https://github.com/g0orx/pihpsdr.git</pre><br />
<br />
=== Compile WDSP ===<br />
<br />
<pre>cd ~/github/wdsp</pre><br />
<pre>make clean</pre><br />
<pre>make -j4</pre><br />
<pre>sudo make install</pre><br />
<br />
Copy libwdsp.so to the pihpsdr install directory:<br />
<br />
<pre>cp libwdsp.so ~/github/pihpsdr/release/pihpsdr</pre><br />
<br />
=== Compile pihpsdr ===<br />
<br />
<pre>cd ~/github/pihpsdr</pre><br />
<pre>make clean</pre><br />
<pre>make -j4</pre><br />
<pre>make release</pre><br />
<br />
=== Install pihpsdr ===<br />
<br />
<pre>cd ~</pre><br />
<pre>tar xvf ~/github/pihpsdr/release/pihpsdr.tar</pre><br />
<pre>cd pihpsdr</pre><br />
<pre>sh ./install.sh</pre></div>G0ORXhttp://openhpsdr.org/wiki/index.php?title=PiHPSDRPiHPSDR2020-11-19T08:54:52Z<p>G0ORX: </p>
<hr />
<div><br />
=== System Requirements ===<br />
<br />
PiHPSDR is software designed to run on the Raspberry Pi using the official 7 inch touch screen. It can be compiled to include support for Rotary Encoders and Push Buttons using the GPIO pins and/or the i2c interface.<br />
<br />
It can be compiled and run on most Linux and Apple Mac systems without using GPIO.<br />
<br />
It is recommended to use a Raspberry Pi 4 with 4GB or 8GB of memory if running Ubuntu 64bit OS. The 2GB version will work OK using the Raspberry Pi 32 bit OS.<br />
<br />
=== Compiling PiHPSDR ===<br />
<br />
[http://openhpsdr.org/wiki/index.php?title=PiHPSDR_compile_rpi_os Compiling on Raspberry Pi running RPi OS (32 bit)]<br />
<br />
[http://openhpsdr.org/wiki/index.php?title=PiHPSDR_compile_ubuntu Compiling on Raspberry Pi running Ubuntu 20.10 (64 bit)]<br />
<br />
=== Running PiHPSDR ===</div>G0ORX