Setup Red Pitaya for GNU Radio

Related: Red Pitaya Pulsed NMR image setup

Setup Red Pitaya GNU Radio image

  1. format a micro SD card to FAT32 (find the SD card device name from df – be sure you don’t overwrite your hard drive!). Let’s suppose you found your SD card at /dev/mmcblk0, then:

     umount /dev/mmcblk0
     mkdosfs -F 32 -n GNURadio /dev/mmcblk0        
    
  2. unzip Pavel Demins SD Card image to this SD card

     mount /dev/mmcblk0 /mnt/GNURadio
     unzip ecosystem-*-sdr-transceiver.zip -d /mnt/GNURadio
     umount /mnt/GNURadio
    
  3. boot the Red Pitaya with this SD card.
  4. Connect to Red Pitaya via Ethernet using SSH (login/password root/root) using Avahi

     ssh [email protected]
    

    or via serial port

Setup laptop with Red Pitaya GNU Radio module

cd ~
git clone https://github.com/pavel-demin/red-pitaya-notes

create a Bash script ~/rpgr used for starting GNU Radio Companion for Red Pitaya

#!/bin/bash
export GRC_BLOCKS_PATH=~/red-pitaya-notes/projects/sdr_transceiver/gnuradio
gnuradio-companion

and make it executable with

chmod +x ~/rpgr

For each Red Pitaya GRC project

Each directory where you have a GNU Radio Red Pitaya project must have a softlink to red_pitaya.py. In each of your GRC project code directories, do:

ln -s ~/red-pitaya-notes/projects/sdr_transceiver/gnuradio/red_pitaya.py .

This is because Red Pitaya is not yet an OOT (Out of Tree) module for GNU Radio.

Example GNU Radio code for Red Pitaya