This repository contains host software (Linux/Windows) for HackRF, a project to
produce a low cost, open source software radio platform.
## How to build the host software on Linux:
### Prerequisites for Linux (Debian/Ubuntu):
`sudo apt-get install build-essential cmake libusb-1.0-0-dev pkg-config libfftw3-dev`
### Build host software on Linux:
```
mkdir host/build
cd host/build
cmake ..
make
sudo make install
sudo ldconfig
```
By default this will attempt to install an udev rule to `/etc/udev/rules.d` to
provide the `usb` or `plugdev` group access to HackRF. If your setup requires
the udev rule to be installed elsewhere you can modify the path with
`-DUDEV_RULES_PATH=/path/to/udev`.
Note: The udev rule is not installed by default for PyBOMBS installs as
they do not ususally get installed with root privileges.
## Clean CMake temporary files/dirs:
```
cd host/build
rm -rf *
```
## How to build host software on Windows:
### Prerequisites for Cygwin, MinGW, or Visual Studio:
* cmake-2.8.12.1 or later from http://www.cmake.org/cmake/resources/software.html
* libusbx-1.0.18 or later from http://sourceforge.net/projects/libusbx/files/latest/download?source=files
* fftw-3.3.5 or later from http://www.fftw.org/install/windows.html
* Install Windows driver for HackRF hardware or use Zadig see http://sourceforge.net/projects/libwdi/files/zadig
- If you want to use Zadig select HackRF USB device and just install/replace it with WinUSB driver.
>**Note for Windows build:**
You shall always execute hackrf-tools from Windows command shell and not from Cygwin or MinGW shell because on Cygwin/MinGW
Ctrl C is not managed correctly and especially for hackrf_transfer the Ctrl C(abort) will not stop correctly and will corrupt the file.
### For Cygwin:
```
mkdir host/build
cd host/build
cmake ../ -G "Unix Makefiles" -DCMAKE_LEGACY_CYGWIN_WIN32=1 -DLIBUSB_INCLUDE_DIR=/usr/local/include/libusb-1.0/
make
make install
```
### For MinGW:
```
mkdir host/build
cd host/build
cmake ../ -G "MSYS Makefiles" -DLIBUSB_INCLUDE_DIR=/usr/local/include/libusb-1.0/
make
make install
```
### For Visual Studio 2015 x64
Create library definition for MSVC to link to
`C:\fftw-3.3.5-dll64> lib /machine:x64 /def:libfftw3f-3.def`
```
c:\hackrf\host\build> cmake ../ -G "Visual Studio 14 2015 Win64" \
-DLIBUSB_INCLUDE_DIR=c:\libusb-1.0.21\libusb \
-DLIBUSB_LIBRARIES=c:\libusb-1.0.21\MS64\dll\lib\libusb-1.0.lib \
-DTHREADS_PTHREADS_INCLUDE_DIR=c:\pthreads-w32-2-9-1-release\Pre-built.2\include \
-DTHREADS_PTHREADS_WIN32_LIBRARY=c:\pthreads-w32-2-9-1-release\Pre-built.2\lib\x64\pthreadVC2.lib \
-DFFTW_INCLUDES=C:\fftw-3.3.5-dll64 \
-DFFTW_LIBRARIES=C:\fftw-3.3.5-dll64\libfftw3f-3.lib
```
CMake will produce a solution file named `HackRF.sln` and a series of
project files which can be built with msbuild as follows:
`c:\hackrf\host\build> msbuild HackRF.sln`
## How to build host the software on FreeBSD
You can use the binary package:
`# pkg install hackrf`
You can build and install from ports:
```
# cd /usr/ports/comms/hackrf
# make install
```
principal author: Michael Ossmann <mike@ossmann.com>
http://greatscottgadgets.com/hackrf/
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
hackrf工具包 (338个子文件)
jawbreaker.brd 1.07MB
jellybean.brd 648KB
lemondrop.brd 426KB
lollipop.brd 329KB
licorice.brd 317KB
bubblegum.brd 312KB
micro.c 72KB
hackrf.c 45KB
getopt.c 30KB
hackrf_transfer.c 30KB
hackrf_core.c 25KB
hackrf_sweep.c 20KB
usb.c 19KB
rf_path.c 15KB
hackrf_debug.c 14KB
sgpio.c 13KB
usb_standard_request.c 10KB
hackrf_spiflash.c 9KB
usb_api_transceiver.c 9KB
max2837.c 9KB
usb_queue.c 8KB
si5351c.c 7KB
rffc5071.c 7KB
usb_descriptor.c 7KB
hackrf_operacake.c 7KB
hackrf_usb.c 6KB
lenval.c 6KB
w25q80bv.c 6KB
operacake.c 6KB
max2871_regs.c 5KB
rffc5071_spi.c 5KB
max2871.c 5KB
hackrf_cpldjtag.c 5KB
usb_api_sweep.c 5KB
tuning.c 5KB
usb_api_register.c 4KB
hackrf_info.c 4KB
usb_api_spiflash.c 4KB
ports.c 3KB
usb_api_board_info.c 3KB
rom_iap.c 3KB
mixer.c 3KB
spi_ssp.c 3KB
max2837_target.c 3KB
cpld_jtag.c 3KB
sgpio_isr.c 3KB
usb_api_operacake.c 2KB
usb_request.c 2KB
max5864.c 2KB
w25q80bv_target.c 2KB
usb_api_cpld.c 2KB
fault_handler.c 2KB
usb_endpoint.c 2KB
gpdma.c 2KB
i2c_lpc.c 2KB
bitband.c 2KB
usb_device.c 2KB
max5864_target.c 1KB
gpio_lpc.c 1KB
streaming.c 1KB
spi_bus.c 1KB
i2c_bus.c 1KB
blinky.c 1KB
usb_bulk_buffer.c 952B
m0_sleep.c 849B
FindThreads.cmake 8KB
hackrf-common.cmake 7KB
toolchain-arm-cortex-m.cmake 2KB
dfu-util.cmake 2KB
FindLIBHACKRF.cmake 2KB
FindUSB1.cmake 1KB
m0_bin.s.cmake 860B
FindFFTW.cmake 795B
set_release.cmake 652B
marzipan.cmp 48KB
hackrf-one.cmp 48KB
neapolitan.cmp 48KB
jawbreaker.cmp 39KB
bubblegum.cmp 15KB
lollipop.cmp 13KB
lemondrop.cmp 12KB
jellybean.cmp 11KB
licorice.cmp 11KB
LNA915.cmp 3KB
COPYING 18KB
jawbreaker-bom.csv 20KB
hackrf-one-bom.csv 7KB
hackrf.dcm 339B
max2837_regs.def 16KB
rffc5071_regs.def 8KB
hackrf-one.drl 13KB
jawbreaker.drl 11KB
HackRF_One_Case.dxf 75KB
HackRF_One_Case_With_Button_CutOuts.dxf 34KB
fp-lib-table 224B
fp-lib-table 224B
fp-lib-table 224B
fp-lib-table 224B
hackrf-one-C4B.gbl 55KB
jawbreaker-Back.gbl 39KB
共 338 条
- 1
- 2
- 3
- 4
资源评论
- qq_201551292018-02-05不错的资源
- noriko8822022-12-25这是未编译的hackrf官方固件源码,里面没有DLL和EXE文件。
小鱼儿123456
- 粉丝: 0
- 资源: 13
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功