sdr-receiver-ecosystem.sh 915 B

123456789101112131415161718192021222324252627282930313233
  1. ecosystem=ecosystem-0.95-1-6deb253
  2. rm -rf ${ecosystem}-sdr-receiver
  3. test -f ${ecosystem}.zip || curl -O http://downloads.redpitaya.com/downloads/${ecosystem}.zip
  4. unzip -d ${ecosystem}-sdr-receiver ${ecosystem}.zip
  5. arm-linux-gnueabihf-gcc -static projects/sdr_receiver/server/sdr-receiver.c -lm -o ${ecosystem}-sdr-receiver/bin/sdr-receiver
  6. cp tmp/sdr_receiver.bit ${ecosystem}-sdr-receiver
  7. rm -f ${ecosystem}-sdr-receiver/u-boot.scr
  8. cp ${ecosystem}-sdr-receiver/u-boot.scr.buildroot ${ecosystem}-sdr-receiver/u-boot.scr
  9. cat <<- EOF_CAT >> ${ecosystem}-sdr-receiver/etc/network/config
  10. PATH=\$PATH:\$PATH_REDPITAYA/sbin:\$PATH_REDPITAYA/bin
  11. EOF_CAT
  12. cat <<- EOF_CAT >> ${ecosystem}-sdr-receiver/sbin/discovery.sh
  13. # start SDR receiver
  14. cat /opt/redpitaya/sdr_receiver.bit > /dev/xdevcfg
  15. /opt/redpitaya/bin/sdr-receiver &
  16. EOF_CAT
  17. cd ${ecosystem}-sdr-receiver
  18. zip -r ../${ecosystem}-sdr-receiver.zip .
  19. cd ..