Scripts to switch between PortaPack and HackRF firmwares.

Addresses issue #27.
This commit is contained in:
Jared Boone 2015-07-31 11:37:11 -07:00
parent 8eda862edc
commit faad4ea053
2 changed files with 22 additions and 0 deletions

11
host/bin/switch_to_hackrf Executable file
View File

@ -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

11
host/bin/switch_to_portapack Executable file
View File

@ -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