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!). 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

    or via serial port

Setup laptop

  1. Setup GNU Radio Companion
    cd ~
    git clone https://github.com/pavel-demin/red-pitaya-notes
    
  2. 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
    
  3. 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

Leave a Comment