install hackrf tools with
sudo apt install hackrf
hackrf can be identified with hackrf_info
Not necessary, but convenient to not have to use sudo all the time
Create file /etc/udev/rules.d/52-hackrf.rules with content
ATTR{idVendor}=="1d50", ATTR{idProduct}=="6089", SYMLINK+="hackrf-one-%k", MODE="660", GROUP="your_group_name_here"
IMPORTANT: swap out your_group_name_here with the name of the group you're part of (such as your username)
Firmware can be downloaded at https://github.com/sharebrained/portapack-hackrf/releases
Version 2018.01.1 can be found in attachments
Flash firmware over spi with
hackrf_spiflash -w firmware-bin/hackrf_one_usb.bin
Flash cpld with
hackrf_cpldjtag -x firmware/cpld/sgpio_if/default.xsvf
if firmware update with hackrf_spiflash fails for any reason, (or for some reason the firmware was never flashed) you'll have to use DFU mode to download the firmware on it
install dfu-util with
sudo apt install dfu-util
hold the DFU button (next to the reset button), plug the usb cable in, then release the DFU button
OR
hold the DFU button (next to the reset button), press the reset button, then release the DFU button
run lsusb and you should see
run dfu-util -l
Run the command
dfu-util --device 1fc9:000c --download firmware-bin/hackrf_one_usb.dfu --reset
continue with the original firmware flashing routine