在Debian下搭建HackRF环境
2016年4月18日
没有评论
今天,新买的HackRF到手了,新货到收当然是立刻要把玩一下,遂在此记录下搭建使用HackRF环境的过程,以便于自己以后查阅,也可以给需要的人查询
预先准备
我这里宿主机操作系统为Mac OS X EI Capitan,虚拟机软件使用的是Parallels Desktop 11,虚拟机配置为2 Core/2G RAM/64G HDD
使用的操作系统版本为debian-8.4.0-amd64,带有XFCE桌面图形环境,使用的是阿里云的软件源
具体的系统安装过程不再赘述
相关链接:
GNU Radio
https://github.com/gnuradio/gnuradio
GNU Radio VOLK Module
https://github.com/gnuradio/volk
HackRF 固件/驱动/其他程序
https://github.com/mossmann/hackrf
gr-osmosdr
https://github.com/osmocom/gr-osmosdr
gqrx 图形化工具
https://github.com/csete/gqrx
rtl-sdr 电视棒相关
https://github.com/osmocom/rtl-sdr
首先是更新源
1 2 |
apt-get update apt-get upgrade |
然后需要安装编译环境以及所需的依赖包,因为是编译安装,所以可能安装过程会比较慢,需要耐心等待^_^
1 |
apt-get -y install git build-essential cmake git-core autoconf automake libtool g++ python-dev swig pkg-config libfftw3-dev libboost1.55-all-dev libcppunit-dev libgsl0-dev libusb-dev sdcc libsdl1.2-dev python-wxgtk3.0 python-numpy python-cheetah python-lxml doxygen python-qt4 python-qwt5-qt4 libxi-dev libqt4-opengl-dev libqwt5-qt4-dev libfontconfig1-dev libxrender-dev libusb-1.0 |
建立工作文件夹,如下文不特别指明,则提到的工作文件夹均为/root/hackrf/install
1 2 |
mkdir -p /root/hackrf/install cd /root/hackrf/install |
然后从git源去拉取最新代码
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# gnuradio git clone https://github.com/gnuradio/gnuradio # gnuradio-volk-module git clone https://github.com/gnuradio/volk # hackrf git clone https://github.com/mossmann/hackrf # gr-osmosdr git clone https://github.com/osmocom/gr-osmosdr # gqrx git clone https://github.com/csete/gqrx # rtl-sdr git clone https://github.com/osmocom/rtl-sdr |
全部拉取完的文件夹列表应如下图
阅读全文…
分类: 软件无线电
近期评论