User Tools

Site Tools


project:sdr:gnuradio-pi

GnuRadio and rtl-sdr on RaspberryPi

Building on RPi

  • 3 GB of space in / for build-dependencies
  • swap (linking takes up to 1 GB RAM)
  • build-space (prefeably over network or on USB HDD to avoid destroying SD card)
  • compilation takes ~24 hours

NBD server example:

/etc/nbd-server/config:
[generic]
[export]
    exportname = /dev/mapper/group-pishare
    port = 2001
    authfile = /etc/nbd-server/pi

/etc/nbd-server/allow:
192.168.0.203

mkfs.ext3 /dev/mapper/group-pishare
mount /dev/mapper/group-pishare /mnt
dd if=/dev/zero of=/mnt/swap bs=1M count=1500
mkswap /mnt/swap
umount /mnt

On RPi:

apt-get install nbd-client
modprobe nbd
nbd-client 192.168.0.23 2001 /dev/nbd0
mount /dev/nbd0 /mnt
swapon /mnt/swap

Use script build-gnuradio. When it fails, compile gnuradio with soft FPU:

cd gnuradio/build
cmake -Dhave_mfpu_neon=0 -DCMAKE_CXX_FLAGS:STRING="-march=armv6 -mfpu=vfp -mfloat-abi=hard" -DCMAKE_C_FLAGS:STRING="-march=armv6 -mfpu=vfp -mfloat-abi=hard" ../
make
sudo make install

Croscompilation: TODO

project/sdr/gnuradio-pi.txt · Last modified: 2012/10/27 22:22 by jenda