Advertisement
Guest User

Installing gnuradio, gr-osmosdr, rtlsdr, gqrx on Odroid C1

a guest
Dec 25th, 2014
2,280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.75 KB | None | 0 0
  1. # fixes perl LC_ error issue on odroid
  2. # the command: perl -e exit
  3. # will return errors until these lines are added to bashrc
  4.  
  5. echo "export LC_CTYPE=en_US.UTF-8" >> ~/.bashrc
  6. echo "export LC_ALL=en_US.UTF-8" >> ~/.bashrc
  7.  
  8.  
  9. sudo apt-get update && sudo apt-get upgrade
  10. sudo apt-get install git build-essential cmake libusb-1.0-0-dev
  11.  
  12. # rtl-sdr
  13. git clone git://git.osmocom.org/rtl-sdr.git
  14. cd rtl-sdr/
  15. mkdir build
  16. cd build/
  17. cmake ../ -DINSTALL_UDEV_RULES=ON
  18. make
  19. sudo make install
  20. sudo ldconfig
  21.  
  22. sudo apt-get install git build-essential cmake libusb-1.0-0-dev liblog4cpp5-dev libboost-dev libboost-system-dev libboost-thread-dev libboost-program-options-dev swig
  23.  
  24.  
  25. # create swap file on external drive
  26. # - don't use emmc or sd card, use external usb hard drive for the swap file
  27. # - this drive/path can be named anything and the paths below will change depending upon the label of the drive
  28.  
  29. cd /media/odroid/Seagate/
  30. dd if=/dev/zero of=/media/odroid/Seagate/c1swap bs=1M count=1024
  31. mkswap /media/odroid/Seagate/c1swap
  32. sudo swapon /media/odroid/Seagate/c1swap
  33.  
  34. # gnuradio
  35. git clone http://git.gnuradio.org/git/gnuradio.git
  36. cd gnuradio/
  37. mkdir build
  38. cd build/
  39. cmake -DCMAKE_C_FLAGS="-march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a9" -DCMAKE_ASM_FLAGS="-march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon" ../
  40. clear
  41. make -j1
  42. sudo make install
  43.  
  44. # gr-osmosdr
  45. git clone git://git.osmocom.org/gr-osmosdr
  46. cd gr-osmosdr/
  47. mkdir build
  48. cd build/
  49. cmake ../
  50. make
  51. sudo make install
  52. sudo ldconfig
  53.  
  54. # gqrx
  55. git clone https://github.com/csete/gqrx.git
  56. cd gqrx/
  57. mkdir build
  58. cd build/
  59. qmake ..
  60. make
  61. sudo make install
  62. ./gqrx
  63.  
  64. # turn off swap - ** SUPER IMPORTANT **
  65. sudo swapoff /media/odroid/Seagate/c1swap
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement