Windows/Linux HackRF Firmware Update (2021.03.1)

更新固件

安装工具

Windows

先安装GNURadio Windows,添加安装目录/bin到path里面

Linux

apt install hackrf

检测是否连上

hackrf_info,如果出现了信息,就是连上了,同时可以看到现在的版本号。截止目前最新的Release是hackrf-2021.03.1

下载Release

https://github.com/mossmann/hackrf/releases

更新

解压后,进入firmware-bin目录下。

1
2
#更新flash
hackrf_spiflash -Rw hackrf_one_usb.bin

如果你的hackrf_spiflash里没有-R选项,那就去掉它,它的作用只是写入新的固件后重启而已

网上的很多更新固件的文章都是2017、2018年版的,需要刷flash盒cpld包。但是最新版不需要cpld包了,所以只需要刷进去一个文件就行了。

CPLD bitstreams are now included in and loaded automatically by the firmware. There is no longer a need to update the CPLD separately.
—Github Release(2021.03.1)发行说明

然后再执行hackrf_info,可以看到已经更新到2021.03.1了。

更新软件

先安装编译需要的软件sudo apt-get install build-essential cmake libusb-1.0-0-dev pkg-config libfftw3-dev
然后进入host目录中

1
2
3
4
5
mkdir build&cd build
cmake ../ -DINSTALL_UDEV_RULES=ON
make
sudo make install
sudo ldconfig

Updating Firmware

Installing Tools

Windows

First, install GNURadio for Windows, then add the installation directory’s /bin folder to your PATH.

Linux

apt install hackrf

Verifying Connection

Run hackrf_info. If information is displayed, the device is connected, and you can see the current version number. As of now, the latest Release is hackrf-2021.03.1.

Downloading Release

https://github.com/mossmann/hackrf/releases

Updating

After extracting, navigate to the firmware-bin directory.

1
2
# Update flash
hackrf_spiflash -Rw hackrf_one_usb.bin

If the -R option is not available in your hackrf_spiflash, omit it. Its purpose is simply to reboot after writing the new firmware.

Many online tutorials for updating firmware are from 2017 or 2018, requiring flashing of both flash and cpld packages. However, the latest version no longer requires a separate CPLD package, so only one file needs to be flashed.

CPLD bitstreams are now included in and loaded automatically by the firmware. There is no longer a need to update the CPLD separately.
— Github Release (2021.03.1) Notes

Then run hackrf_info again; you should see the version updated to 2021.03.1.

Updating Software

First, install the necessary software for compilation: sudo apt-get install build-essential cmake libusb-1.0-0-dev pkg-config libfftw3-dev.
Then navigate to the host directory.

1
2
3
4
5
mkdir build & cd build
cmake ../ -DINSTALL_UDEV_RULES=ON
make
sudo make install
sudo ldconfig

Windows/Linux HackRF Firmware Update (2021.03.1)
https://tokisaki.top/blog/hackrf-upgrade-firmware/
作者
Tokisaki Galaxy
发布于
2021年7月23日
许可协议