From faad4ea053b611cffced165865c873bee34e3255 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Fri, 31 Jul 2015 11:37:11 -0700 Subject: [PATCH] Scripts to switch between PortaPack and HackRF firmwares. Addresses issue #27. --- host/bin/switch_to_hackrf | 11 +++++++++++ host/bin/switch_to_portapack | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100755 host/bin/switch_to_hackrf create mode 100755 host/bin/switch_to_portapack diff --git a/host/bin/switch_to_hackrf b/host/bin/switch_to_hackrf new file mode 100755 index 00000000..78f996ab --- /dev/null +++ b/host/bin/switch_to_hackrf @@ -0,0 +1,11 @@ +#!/bin/sh + +printf "Hold down the HackRF's DFU button (the button closest to the antenna jack)\n" +printf "then plug the HackRF into a USB port on your computer.\n\n" +printf "After the HackRF is plugged in, you may release the DFU button.\n" +printf "Press any key to continue or ^c to abort\n" +read + +dfu-util --device 1fc9:000c --download hackrf_one_usb_ram.dfu --reset +sleep 2s +hackrf_spiflash -w hackrf_one_usb_rom_to_ram.bin diff --git a/host/bin/switch_to_portapack b/host/bin/switch_to_portapack new file mode 100755 index 00000000..41ac8c54 --- /dev/null +++ b/host/bin/switch_to_portapack @@ -0,0 +1,11 @@ +#!/bin/sh + +printf "Hold down the HackRF's DFU button (the button closest to the antenna jack)\n" +printf "then plug the HackRF into a USB port on your computer.\n\n" +printf "After the HackRF is plugged in, you may release the DFU button.\n" +printf "Press any key to continue or ^c to abort\n" +read + +dfu-util --device 1fc9:000c --download hackrf_one_usb_ram.dfu --reset +sleep 2s +hackrf_spiflash -w portapack-h1-firmware.bin