Setup Red Pitaya for GNU Radio

Related: Red Pitaya Pulsed NMR image setup


Setup Red Pitaya

  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! Suppose the SD card is at /dev/mmcblk0:

    umount /dev/mmcblk0
    mkdosfs -F 32 -n GNURadio /dev/mmcblk0
    1. 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
  2. boot the Red Pitaya with this SD card.

  3. Connect to Red Pitaya via Ethernet using SSH (login/password root/root) using Avahi

    ssh root@redpitaya.local

    or via serial port

    Setup laptop

    1. Setup GNU Radio Companion
    cd ~
    git clone https://github.com/pavel-demin/red-pitaya-notes
  4. create a Bash script ~/rpgr to start GNU Radio Companion for Red Pitaya

    #!/bin/bash
    export GRC_BLOCKS_PATH=~/red-pitaya-notes/projects/sdr_transceiver/gnuradio
    gnuradio-companion
    1. make it executable with
    chmod +x ~/rpgr

setup projects

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.

Notes

Example GNU Radio code for Red Pitaya