Updating the firmware
Install the tools
Windows
First install GNURadio Windows, and add the installation directory /bin to path.
Linux
apt install hackrf
Check the connection
Run hackrf_info. If information appears, it’s connected, and you can also see the current version number. As of now, the latest Release is hackrf-2021.03.1.
Download the Release
Update
After extracting, enter the firmware-bin directory.
#更新flashhackrf_spiflash -Rw hackrf_one_usb.binIf your hackrf_spiflash doesn’t have a -R option, just remove it; its only purpose is to reboot after writing the new firmware.
Many firmware update articles online are from 2017 and 2018 and require flashing both the flash and CPLD packages. But the latest version no longer needs the CPLD package, so you only need to flash a single file.
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)发行说明
Then run hackrf_info again, and you can see it has been updated to 2021.03.1.
Updating the software
First install the packages needed for compilation: sudo apt-get install build-essential cmake libusb-1.0-0-dev pkg-config libfftw3-dev.
Then enter the host directory
mkdir build&cd buildcmake ../ -DINSTALL_UDEV_RULES=ONmakesudo make installsudo ldconfig