From 0e15970367e928446bd1dcc9c27561e064160165 Mon Sep 17 00:00:00 2001 From: Chipster Date: Mon, 2 Oct 2023 04:40:53 -0500 Subject: [PATCH] Contains the following changes (WPSD back to upstream): - Updated FW installation scripts to woek with newer aarch64 boards (Rpi4/5/etc.) - Updated readme to mention M17 support, and proper FW installation script syntax - FW installation scripts now use actual and new hosted compiled binaries per K16ZUM & G4KLX requests --- README.md | 34 ++++++++++++++------------- scripts/install_fw_custom.sh | 12 +++++++--- scripts/install_fw_d2rg_mmdvmhs.sh | 26 ++++++++++---------- scripts/install_fw_dualband.sh | 29 ++++++++++------------- scripts/install_fw_duplex.sh | 28 ++++++++++------------ scripts/install_fw_duplex_gpio.sh | 29 ++++++++++------------- scripts/install_fw_duplex_gpio_opi.sh | 31 ++++++++++-------------- scripts/install_fw_duplex_usb.sh | 28 ++++++++++------------ scripts/install_fw_gen_gpio.sh | 28 ++++++++++------------ scripts/install_fw_hsdualhat-12mhz.sh | 28 ++++++++++------------ scripts/install_fw_hsdualhat.sh | 26 ++++++++++---------- scripts/install_fw_hshat-12mhz.sh | 30 +++++++++++------------ scripts/install_fw_hshat.sh | 26 ++++++++++---------- scripts/install_fw_librekit.sh | 28 ++++++++++------------ scripts/install_fw_lonestar_usb.sh | 26 ++++++++++---------- scripts/install_fw_nanodv_npi.sh | 28 ++++++++++------------ scripts/install_fw_nanodv_usb.sh | 27 ++++++++++----------- scripts/install_fw_nanohs.sh | 26 ++++++++++---------- scripts/install_fw_rpi.sh | 26 ++++++++++---------- scripts/install_fw_skybridge_rpi.sh | 30 +++++++++++------------ scripts/install_fw_usb.sh | 26 ++++++++++---------- version.h | 2 +- 22 files changed, 267 insertions(+), 307 deletions(-) mode change 100644 => 100755 scripts/install_fw_duplex_gpio_opi.sh diff --git a/README.md b/README.md index ad55656..c83626d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Introduction -This is the source code of ZUMspot/MMDVM_HS firmware for personal hotspots (ADF7021 version of the MMDVM firmware), based on Jonathan G4KLX's [MMDVM](https://github.com/g4klx/MMDVM) software. This firmware supports D-Star, DMR, System Fusion, P25 and NXDN digital voice modes and POCSAG 1200 pager protocol. +This is the source code of ZUMspot/MMDVM_HS firmware for personal hotspots (ADF7021 version of the MMDVM firmware), based on Jonathan G4KLX's [MMDVM](https://github.com/g4klx/MMDVM) software. This firmware supports D-Star, DMR, System Fusion, P25, NXDN & M17 digital voice modes and POCSAG 1200 pager protocol. This software is intended to be run on STM32F103 microcontroller. Also, Arduino with 3.3 V I/O (Arduino Due and Zero) and Teensy (3.1, 3.2, 3.5 or 3.6) are supported. You can build this code using Arduino IDE with Roger Clark's [STM32duino](https://github.com/rogerclarkmelbourne/Arduino_STM32/tree/ZUMspot) package, or using command line tools with ARM GCC tools. The preferred method under Windows is using STM32duino, and under Linux or macOS (command line) is using [STM32F10X_Lib](https://github.com/juribeparada/STM32F10X_Lib). @@ -10,10 +10,10 @@ This software is licenced under the GPL v2 and is intended for amateur and educa # Features -- Supported modes: D-Star, DMR, Yaesu Fusion, P25 Phase 1 and NXDN +- Supported modes: D-Star, DMR, Yaesu Fusion, P25 Phase 1, NXDN and M17 - Other modes: POCSAG 1200 - Automatic mode detection (scanning) -- G4KLX software suite: [MMDVMHost](https://github.com/g4klx/MMDVMHost), [ircDDBGateway](https://github.com/g4klx/ircDDBGateway), [YSFGateway](https://github.com/g4klx/YSFClients), [P25Gateway](https://github.com/g4klx/P25Clients), [DMRGateway](https://github.com/g4klx/DMRGateway), [NXDNGateway](https://github.com/g4klx/NXDNClients), +- G4KLX software suite: [MMDVMHost](https://github.com/g4klx/MMDVMHost), [ircDDBGateway](https://github.com/g4klx/ircDDBGateway), [YSFGateway](https://github.com/g4klx/YSFClients), [P25Gateway](https://github.com/g4klx/P25Clients), [DMRGateway](https://github.com/g4klx/DMRGateway), [NXDNGateway](https://github.com/g4klx/NXDNClients), [M17Gateway](https://github.com/g4klx/M17Gateway), [DAPNETGateway](https://github.com/g4klx/DAPNETGateway) and [MMDVMCal](https://github.com/g4klx/MMDVMCal) - Bands: 144, 220, 430 and 900 MHz (VHF requires external inductor) - Status LEDs (PTT, COR and digital modes) @@ -93,21 +93,22 @@ Please see [BUILD.md](BUILD.md) for more details, and also [MMDVM](https://group Please check the latest firmware [here](https://github.com/juribeparada/MMDVM_HS/releases). -### Pi-Star binary firmware installation +### WPSD & Pi-Star binary firmware installation -You could use some pi-star commands under SSH console: +WPSD & pi-star commands in an SSH console: -- sudo pistar-zumspotflash rpi: ZUMspot RPi board -- sudo pistar-zumspotflash rpi_duplex: ZUMSpot duplex board conected to GPIO -- sudo pistar-zumspotflash usb: ZUMspot USB dongle -- sudo pistar-zumspotflash libre: ZUMspot Libre Kit or generic MMDVM_HS board with USB -- sudo pistar-mmdvmhshatflash hs_hat: MMDVM_HS_Hat board (14.7456MHz TCXO) -- sudo pistar-mmdvmhshatflash hs_dual_hat: HS_DUAL_HAT board (14.7456MHz TCXO) -- sudo pistar-mmdvmhshatflash hs_hat-12mhz: MMDVM_HS_Hat board (12.288MHz TCXO) -- sudo pistar-mmdvmhshatflash hs_dual_hat-12mhz: HS_DUAL_HAT board (12.288MHz TCXO) -- sudo pistar-nanohsflash nano_hs: Nano hotSPOT board -- sudo pistar-nanodvflash pi: NanoDV NPi board -- sudo pistar-nanodvflash usb: NanoDV USB board +- `sudo pistar-zumspotflash rpi`: ZUMspot RPi board +- `sudo pistar-zumspotflash rpi_duplex`: ZUMSpot duplex board conected to GPIO +- `sudo pistar-zumspotflash usb`: ZUMspot USB dongle +- `sudo pistar-zumspotflash libre`: ZUMspot Libre Kit or generic MMDVM_HS board with USB +- `sudo pistar-mmdvmhshatflash hs_hat`: MMDVM_HS_Hat board (14.7456MHz TCXO) +- `sudo pistar-mmdvmhshatflash hs_dual_hat`: HS_DUAL_HAT board (14.7456MHz TCXO) +- `sudo pistar-mmdvmhshatflash hs_hat-12mhz`: MMDVM_HS_Hat board (12.288MHz TCXO) +- `sudo pistar-mmdvmhshatflash hs_dual_hat-12mhz`: HS_DUAL_HAT board (12.288MHz TCXO) +- `sudo pistar-nanohsflash nano_hs`: Nano hotSPOT board +- `sudo pistar-nanodvflash pi`: NanoDV NPi board +- `sudo pistar-nanodvflash usb`: NanoDV USB board +- `sudo pistar-skybridgeflash skybridge`: BridgeCom SkyBridge GPIO Hotspot board ### Windows @@ -305,6 +306,7 @@ and enable: #define ENABLE_SCAN_MODE #define USE_ALTERNATE_NXDN_LEDS #define USE_ALTERNATE_POCSAG_LEDS + #define USE_ALTERNATE_M17_LEDS Build the firmware: diff --git a/scripts/install_fw_custom.sh b/scripts/install_fw_custom.sh index 2c4f5bc..93feff1 100755 --- a/scripts/install_fw_custom.sh +++ b/scripts/install_fw_custom.sh @@ -37,7 +37,7 @@ fi # Download STM32F10X_Lib (only for binary tools) if [ ! -d "./STM32F10X_Lib/utils" ]; then - git clone https://github.com/juribeparada/STM32F10X_Lib + env GIT_HTTP_CONNECT_TIMEOUT="10" env GIT_HTTP_USER_AGENT="WPSD Modem FW Update Invocation" git clone https://wpsd-swd.w0chp.net/WPSD-SWD/STM32F10X_Lib.git &> /dev/null fi # Configure vars depending on OS @@ -49,14 +49,20 @@ if [ $(uname -s) == "Linux" ]; then DFU_UTIL="./STM32F10X_Lib/utils/linux64/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/linux64/st-flash" STM32FLASH="./STM32F10X_Lib/utils/linux64/stm32flash" + elif [ $(uname -m) == "aarch64" ] ; then + echo "Linux 64-bit ARM (aarch64) detected" + DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" + DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" + ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" + STM32FLASH="./STM32F10X_Lib/utils/rpi32/stm32flash" elif [ $(uname -m) == "armv7l" ]; then - echo "Raspberry Pi 3 detected" + echo "Linux ARM (armv7l) detected" DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" STM32FLASH="./STM32F10X_Lib/utils/rpi32/stm32flash" elif [ $(uname -m) == "armv6l" ]; then - echo "Raspberry Pi 2 or Pi Zero W detected" + echo "Linux ARM (armv6l) detected" DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" diff --git a/scripts/install_fw_d2rg_mmdvmhs.sh b/scripts/install_fw_d2rg_mmdvmhs.sh index 4651d8c..7359234 100755 --- a/scripts/install_fw_d2rg_mmdvmhs.sh +++ b/scripts/install_fw_d2rg_mmdvmhs.sh @@ -17,26 +17,18 @@ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # Configure latest version -FW_VERSION="v1.5.2" +FW_VERSION="v1.6.1" -# Configure beta version -FW_VERSION_BETA="v1.5.1b" - # Firmware filename FW_FILENAME="d2rg_mmdvm_hs.bin" # Download latest firmware -if [ $1 = "beta" ]; then - echo "Downloading beta firmware..." - curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION_BETA/$FW_FILENAME -else - echo "Downloading latest firmware (stable)..." - curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/$FW_FILENAME -fi +echo "Downloading firmware..." +curl -s -A "WPSD Modem FW Update Invocation" -OL https://wpsd-swd.w0chp.net/WPSD-SWD/MMDVM_HS-Firmware_Latest-Compiled/raw/tag/$FW_VERSION/$FW_FILENAME # Download STM32F10X_Lib (only for binary tools) if [ ! -d "./STM32F10X_Lib/utils" ]; then - git clone https://github.com/juribeparada/STM32F10X_Lib + env GIT_HTTP_CONNECT_TIMEOUT="10" env GIT_HTTP_USER_AGENT="WPSD Modem FW Update Invocation" git clone https://wpsd-swd.w0chp.net/WPSD-SWD/STM32F10X_Lib.git &> /dev/null fi # Configure vars depending on OS @@ -47,14 +39,20 @@ if [ $(uname -s) == "Linux" ]; then DFU_UTIL="./STM32F10X_Lib/utils/linux64/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/linux64/st-flash" STM32FLASH="./STM32F10X_Lib/utils/linux64/stm32flash" + elif [ $(uname -m) == "aarch64" ] ; then + echo "Linux 64-bit ARM (aarch64) detected" + DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" + DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" + ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" + STM32FLASH="./STM32F10X_Lib/utils/rpi32/stm32flash" elif [ $(uname -m) == "armv7l" ]; then - echo "Raspberry Pi 3 detected" + echo "Linux ARM (armv7l) detected" DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" STM32FLASH="./STM32F10X_Lib/utils/rpi32/stm32flash" elif [ $(uname -m) == "armv6l" ]; then - echo "Raspberry Pi 2 or Pi Zero W detected" + echo "Linux ARM (armv6l) detected" DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" diff --git a/scripts/install_fw_dualband.sh b/scripts/install_fw_dualband.sh index 7c50de0..bba375d 100755 --- a/scripts/install_fw_dualband.sh +++ b/scripts/install_fw_dualband.sh @@ -17,26 +17,15 @@ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # Configure latest version -FW_VERSION="v1.5.2" +FW_VERSION="v1.6.1" -# Configure beta version -FW_VERSION_BETA="v1.5.1b" - -# Firmware filename -FW_FILENAME="zumspot_dualband_fw.bin" - # Download latest firmware -if [ $1 = "beta" ]; then - echo "Downloading beta firmware..." - curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION_BETA/$FW_FILENAME -else - echo "Downloading latest firmware (stable)..." - curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/$FW_FILENAME -fi +echo "Downloading firmware..." +curl -s -A "WPSD Modem FW Update Invocation" -OL https://wpsd-swd.w0chp.net/WPSD-SWD/MMDVM_HS-Firmware_Latest-Compiled/raw/tag/$FW_VERSION/$FW_FILENAME # Download STM32F10X_Lib (only for binary tools) if [ ! -d "./STM32F10X_Lib/utils" ]; then - git clone https://github.com/juribeparada/STM32F10X_Lib + env GIT_HTTP_CONNECT_TIMEOUT="10" env GIT_HTTP_USER_AGENT="WPSD Modem FW Update Invocation" git clone https://wpsd-swd.w0chp.net/WPSD-SWD/STM32F10X_Lib.git &> /dev/null fi # Configure vars depending on OS @@ -47,14 +36,20 @@ if [ $(uname -s) == "Linux" ]; then DFU_UTIL="./STM32F10X_Lib/utils/linux64/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/linux64/st-flash" STM32FLASH="./STM32F10X_Lib/utils/linux64/stm32flash" + elif [ $(uname -m) == "aarch64" ] ; then + echo "Linux 64-bit ARM (aarch64) detected" + DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" + DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" + ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" + STM32FLASH="./STM32F10X_Lib/utils/rpi32/stm32flash" elif [ $(uname -m) == "armv7l" ]; then - echo "Raspberry Pi 3 detected" + echo "Linux ARM (armv7l) detected" DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" STM32FLASH="./STM32F10X_Lib/utils/rpi32/stm32flash" elif [ $(uname -m) == "armv6l" ]; then - echo "Raspberry Pi 2 or Pi Zero W detected" + echo "Linux ARM (armv6l) detected" DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" diff --git a/scripts/install_fw_duplex.sh b/scripts/install_fw_duplex.sh index 49b5ceb..68fe5f7 100755 --- a/scripts/install_fw_duplex.sh +++ b/scripts/install_fw_duplex.sh @@ -17,26 +17,18 @@ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # Configure latest version -FW_VERSION="v1.5.2" - -# Configure beta version -FW_VERSION_BETA="v1.5.1b" +FW_VERSION="v1.6.1" # Firmware filename FW_FILENAME="zumspot_duplex_fw.bin" - + # Download latest firmware -if [ $1 = "beta" ]; then - echo "Downloading beta firmware..." - curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION_BETA/$FW_FILENAME -else - echo "Downloading latest firmware (stable)..." - curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/$FW_FILENAME -fi +echo "Downloading firmware..." +curl -s -A "WPSD Modem FW Update Invocation" -OL https://wpsd-swd.w0chp.net/WPSD-SWD/MMDVM_HS-Firmware_Latest-Compiled/raw/tag/$FW_VERSION/$FW_FILENAME # Download STM32F10X_Lib (only for binary tools) if [ ! -d "./STM32F10X_Lib/utils" ]; then - git clone https://github.com/juribeparada/STM32F10X_Lib + env GIT_HTTP_CONNECT_TIMEOUT="10" env GIT_HTTP_USER_AGENT="WPSD Modem FW Update Invocation" git clone https://wpsd-swd.w0chp.net/WPSD-SWD/STM32F10X_Lib.git &> /dev/null fi # Configure vars depending on OS @@ -47,14 +39,20 @@ if [ $(uname -s) == "Linux" ]; then DFU_UTIL="./STM32F10X_Lib/utils/linux64/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/linux64/st-flash" STM32FLASH="./STM32F10X_Lib/utils/linux64/stm32flash" + elif [ $(uname -m) == "aarch64" ] ; then + echo "Linux 64-bit ARM (aarch64) detected" + DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" + DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" + ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" + STM32FLASH="./STM32F10X_Lib/utils/rpi32/stm32flash" elif [ $(uname -m) == "armv7l" ]; then - echo "Raspberry Pi 3 detected" + echo "Linux ARM (armv7l) detected" DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" STM32FLASH="./STM32F10X_Lib/utils/rpi32/stm32flash" elif [ $(uname -m) == "armv6l" ]; then - echo "Raspberry Pi 2 or Pi Zero W detected" + echo "Linux ARM (armv6l) detected" DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" diff --git a/scripts/install_fw_duplex_gpio.sh b/scripts/install_fw_duplex_gpio.sh index acb7ea8..d596e72 100755 --- a/scripts/install_fw_duplex_gpio.sh +++ b/scripts/install_fw_duplex_gpio.sh @@ -17,29 +17,18 @@ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # Configure latest version -FW_VERSION="v1.5.2" - -# Configure beta version -FW_VERSION_BETA="v1.5.1b" +FW_VERSION="v1.6.1" # Firmware filename FW_FILENAME="generic_duplex_gpio_fw.bin" # Download latest firmware -if [ $1 = "beta" ]; then - echo "Downloading beta firmware..." - curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION_BETA/$FW_FILENAME -else - echo "Downloading latest firmware (stable)..." - curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/$FW_FILENAME -fi - -# Download latest firmware for Generic Duplex GPIO -curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/ +echo "Downloading firmware..." +curl -s -A "WPSD Modem FW Update Invocation" -OL https://wpsd-swd.w0chp.net/WPSD-SWD/MMDVM_HS-Firmware_Latest-Compiled/raw/tag/$FW_VERSION/$FW_FILENAME # Download STM32F10X_Lib (only for binary tools) if [ ! -d "./STM32F10X_Lib/utils" ]; then - git clone https://github.com/juribeparada/STM32F10X_Lib + env GIT_HTTP_CONNECT_TIMEOUT="10" env GIT_HTTP_USER_AGENT="WPSD Modem FW Update Invocation" git clone https://wpsd-swd.w0chp.net/WPSD-SWD/STM32F10X_Lib.git &> /dev/null fi # Configure vars depending on OS @@ -50,14 +39,20 @@ if [ $(uname -s) == "Linux" ]; then DFU_UTIL="./STM32F10X_Lib/utils/linux64/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/linux64/st-flash" STM32FLASH="./STM32F10X_Lib/utils/linux64/stm32flash" + elif [ $(uname -m) == "aarch64" ] ; then + echo "Linux 64-bit ARM (aarch64) detected" + DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" + DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" + ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" + STM32FLASH="./STM32F10X_Lib/utils/rpi32/stm32flash" elif [ $(uname -m) == "armv7l" ]; then - echo "Raspberry Pi 3 detected" + echo "Linux ARM (armv7l) detected" DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" STM32FLASH="./STM32F10X_Lib/utils/rpi32/stm32flash" elif [ $(uname -m) == "armv6l" ]; then - echo "Raspberry Pi 2 or Pi Zero W detected" + echo "Linux ARM (armv6l) detected" DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" diff --git a/scripts/install_fw_duplex_gpio_opi.sh b/scripts/install_fw_duplex_gpio_opi.sh old mode 100644 new mode 100755 index 909fccd..30039d8 --- a/scripts/install_fw_duplex_gpio_opi.sh +++ b/scripts/install_fw_duplex_gpio_opi.sh @@ -17,29 +17,18 @@ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # Configure latest version -FW_VERSION="v1.5.2" - -# Configure beta version -FW_VERSION_BETA="v1.5.1b" +FW_VERSION="v1.6.1" # Firmware filename FW_FILENAME="generic_duplex_gpio_fw.bin" - -# Download latest firmware -if [ $1 = "beta" ]; then - echo "Downloading beta firmware..." - curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION_BETA/$FW_FILENAME -else - echo "Downloading latest firmware (stable)..." - curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/$FW_FILENAME -fi -# Download latest firmware for Generic Duplex GPIO -curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/ +# Download latest firmware +echo "Downloading firmware..." +curl -s -A "WPSD Modem FW Update Invocation" -OL https://wpsd-swd.w0chp.net/WPSD-SWD/MMDVM_HS-Firmware_Latest-Compiled/raw/tag/$FW_VERSION/$FW_FILENAME # Download STM32F10X_Lib (only for binary tools) if [ ! -d "./STM32F10X_Lib/utils" ]; then - git clone https://github.com/juribeparada/STM32F10X_Lib + env GIT_HTTP_CONNECT_TIMEOUT="10" env GIT_HTTP_USER_AGENT="WPSD Modem FW Update Invocation" git clone https://wpsd-swd.w0chp.net/WPSD-SWD/STM32F10X_Lib.git &> /dev/null fi # Configure vars depending on OS @@ -50,14 +39,20 @@ if [ $(uname -s) == "Linux" ]; then DFU_UTIL="./STM32F10X_Lib/utils/linux64/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/linux64/st-flash" STM32FLASH="./STM32F10X_Lib/utils/linux64/stm32flash" + elif [ $(uname -m) == "aarch64" ] ; then + echo "Linux 64-bit ARM (aarch64) detected" + DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" + DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" + ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" + STM32FLASH="./STM32F10X_Lib/utils/rpi32/stm32flash" elif [ $(uname -m) == "armv7l" ]; then - echo "Raspberry Pi 3 detected" + echo "Linux ARM (armv7l) detected" DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" STM32FLASH="./STM32F10X_Lib/utils/rpi32/stm32flash" elif [ $(uname -m) == "armv6l" ]; then - echo "Raspberry Pi 2 or Pi Zero W detected" + echo "Linux ARM (armv6l) detected" DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" diff --git a/scripts/install_fw_duplex_usb.sh b/scripts/install_fw_duplex_usb.sh index 053c891..1e1d108 100755 --- a/scripts/install_fw_duplex_usb.sh +++ b/scripts/install_fw_duplex_usb.sh @@ -17,29 +17,21 @@ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # Configure latest version -FW_VERSION="v1.5.2" +FW_VERSION="v1.6.1" # Change USB-serial port name ONLY in macOS MAC_DEV_USB_SER="/dev/cu.usbmodem14401" -# Configure beta version -FW_VERSION_BETA="v1.5.1b" - # Firmware filename FW_FILENAME="generic_duplex_usb_fw.bin" - + # Download latest firmware -if [ $1 = "beta" ]; then - echo "Downloading beta firmware..." - curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION_BETA/$FW_FILENAME -else - echo "Downloading latest firmware (stable)..." - curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/$FW_FILENAME -fi +echo "Downloading firmware..." +curl -s -A "WPSD Modem FW Update Invocation" -OL https://wpsd-swd.w0chp.net/WPSD-SWD/MMDVM_HS-Firmware_Latest-Compiled/raw/tag/$FW_VERSION/$FW_FILENAME # Download STM32F10X_Lib (only for binary tools) if [ ! -d "./STM32F10X_Lib/utils" ]; then - git clone https://github.com/juribeparada/STM32F10X_Lib + env GIT_HTTP_CONNECT_TIMEOUT="10" env GIT_HTTP_USER_AGENT="WPSD Modem FW Update Invocation" git clone https://wpsd-swd.w0chp.net/WPSD-SWD/STM32F10X_Lib.git &> /dev/null fi # Configure vars depending on OS @@ -51,14 +43,20 @@ if [ $(uname -s) == "Linux" ]; then DFU_UTIL="./STM32F10X_Lib/utils/linux64/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/linux64/st-flash" STM32FLASH="./STM32F10X_Lib/utils/linux64/stm32flash" + elif [ $(uname -m) == "aarch64" ] ; then + echo "Linux 64-bit ARM (aarch64) detected" + DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" + DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" + ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" + STM32FLASH="./STM32F10X_Lib/utils/rpi32/stm32flash" elif [ $(uname -m) == "armv7l" ]; then - echo "Raspberry Pi 3 detected" + echo "Linux ARM (armv7l) detected" DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" STM32FLASH="./STM32F10X_Lib/utils/rpi32/stm32flash" elif [ $(uname -m) == "armv6l" ]; then - echo "Raspberry Pi 2 or Pi Zero W detected" + echo "Linux ARM (armv6l) detected" DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" diff --git a/scripts/install_fw_gen_gpio.sh b/scripts/install_fw_gen_gpio.sh index 2faa0e1..e83ea93 100755 --- a/scripts/install_fw_gen_gpio.sh +++ b/scripts/install_fw_gen_gpio.sh @@ -17,26 +17,18 @@ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # Configure latest version -FW_VERSION="v1.5.2" - -# Configure beta version -FW_VERSION_BETA="v1.5.1b" +FW_VERSION="v1.6.1" # Firmware filename FW_FILENAME="generic_gpio_fw.bin" - + # Download latest firmware -if [ $1 = "beta" ]; then - echo "Downloading beta firmware..." - curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION_BETA/$FW_FILENAME -else - echo "Downloading latest firmware (stable)..." - curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/$FW_FILENAME -fi +echo "Downloading firmware..." +curl -s -A "WPSD Modem FW Update Invocation" -OL https://wpsd-swd.w0chp.net/WPSD-SWD/MMDVM_HS-Firmware_Latest-Compiled/raw/tag/$FW_VERSION/$FW_FILENAME # Download STM32F10X_Lib (only for binary tools) if [ ! -d "./STM32F10X_Lib/utils" ]; then - git clone https://github.com/juribeparada/STM32F10X_Lib + env GIT_HTTP_CONNECT_TIMEOUT="10" env GIT_HTTP_USER_AGENT="WPSD Modem FW Update Invocation" git clone https://wpsd-swd.w0chp.net/WPSD-SWD/STM32F10X_Lib.git &> /dev/null fi # Configure vars depending on OS @@ -47,14 +39,20 @@ if [ $(uname -s) == "Linux" ]; then DFU_UTIL="./STM32F10X_Lib/utils/linux64/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/linux64/st-flash" STM32FLASH="./STM32F10X_Lib/utils/linux64/stm32flash" + elif [ $(uname -m) == "aarch64" ] ; then + echo "Linux 64-bit ARM (aarch64) detected" + DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" + DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" + ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" + STM32FLASH="./STM32F10X_Lib/utils/rpi32/stm32flash" elif [ $(uname -m) == "armv7l" ]; then - echo "Raspberry Pi 3 detected" + echo "Linux ARM (armv7l) detected" DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" STM32FLASH="./STM32F10X_Lib/utils/rpi32/stm32flash" elif [ $(uname -m) == "armv6l" ]; then - echo "Raspberry Pi 2 or Pi Zero W detected" + echo "Linux ARM (armv6l) detected" DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" diff --git a/scripts/install_fw_hsdualhat-12mhz.sh b/scripts/install_fw_hsdualhat-12mhz.sh index 18b3977..795ad4c 100755 --- a/scripts/install_fw_hsdualhat-12mhz.sh +++ b/scripts/install_fw_hsdualhat-12mhz.sh @@ -17,26 +17,18 @@ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # Configure latest version -FW_VERSION="v1.5.2" - -# Configure beta version -FW_VERSION_BETA="v1.5.1b" +FW_VERSION="v1.6.1" # Firmware filename FW_FILENAME="mmdvm_hs_dual_hat_fw-12mhz.bin" - + # Download latest firmware -if [ $1 = "beta" ]; then - echo "Downloading beta firmware..." - curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION_BETA/$FW_FILENAME -else - echo "Downloading latest firmware (stable)..." - curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/$FW_FILENAME -fi +echo "Downloading firmware..." +curl -s -A "WPSD Modem FW Update Invocation" -OL https://wpsd-swd.w0chp.net/WPSD-SWD/MMDVM_HS-Firmware_Latest-Compiled/raw/tag/$FW_VERSION/$FW_FILENAME # Download STM32F10X_Lib (only for binary tools) if [ ! -d "./STM32F10X_Lib/utils" ]; then - git clone https://github.com/juribeparada/STM32F10X_Lib + env GIT_HTTP_CONNECT_TIMEOUT="10" env GIT_HTTP_USER_AGENT="WPSD Modem FW Update Invocation" git clone https://wpsd-swd.w0chp.net/WPSD-SWD/STM32F10X_Lib.git &> /dev/null fi # Configure vars depending on OS @@ -47,14 +39,20 @@ if [ $(uname -s) == "Linux" ]; then DFU_UTIL="./STM32F10X_Lib/utils/linux64/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/linux64/st-flash" STM32FLASH="./STM32F10X_Lib/utils/linux64/stm32flash" + elif [ $(uname -m) == "aarch64" ] ; then + echo "Linux 64-bit ARM (aarch64) detected" + DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" + DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" + ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" + STM32FLASH="./STM32F10X_Lib/utils/rpi32/stm32flash" elif [ $(uname -m) == "armv7l" ]; then - echo "Raspberry Pi 3 detected" + echo "Linux ARM (armv7l) detected" DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" STM32FLASH="./STM32F10X_Lib/utils/rpi32/stm32flash" elif [ $(uname -m) == "armv6l" ]; then - echo "Raspberry Pi 2 or Pi Zero W detected" + echo "Linux ARM (armv6l) detected" DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" diff --git a/scripts/install_fw_hsdualhat.sh b/scripts/install_fw_hsdualhat.sh index 29c12aa..ebb54a2 100755 --- a/scripts/install_fw_hsdualhat.sh +++ b/scripts/install_fw_hsdualhat.sh @@ -17,26 +17,18 @@ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # Configure latest version -FW_VERSION="v1.5.2" - -# Configure beta version -FW_VERSION_BETA="v1.5.1b" +FW_VERSION="v1.6.1" # Firmware filename FW_FILENAME="mmdvm_hs_dual_hat_fw.bin" # Download latest firmware -if [ $1 = "beta" ]; then - echo "Downloading beta firmware..." - curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION_BETA/$FW_FILENAME -else - echo "Downloading latest firmware (stable)..." - curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/$FW_FILENAME -fi +echo "Downloading firmware..." +curl -s -A "WPSD Modem FW Update Invocation" -OL https://wpsd-swd.w0chp.net/WPSD-SWD/MMDVM_HS-Firmware_Latest-Compiled/raw/tag/$FW_VERSION/$FW_FILENAME # Download STM32F10X_Lib (only for binary tools) if [ ! -d "./STM32F10X_Lib/utils" ]; then - git clone https://github.com/juribeparada/STM32F10X_Lib + env GIT_HTTP_CONNECT_TIMEOUT="10" env GIT_HTTP_USER_AGENT="WPSD Modem FW Update Invocation" git clone https://wpsd-swd.w0chp.net/WPSD-SWD/STM32F10X_Lib.git &> /dev/null fi # Configure vars depending on OS @@ -47,14 +39,20 @@ if [ $(uname -s) == "Linux" ]; then DFU_UTIL="./STM32F10X_Lib/utils/linux64/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/linux64/st-flash" STM32FLASH="./STM32F10X_Lib/utils/linux64/stm32flash" + elif [ $(uname -m) == "aarch64" ] ; then + echo "Linux 64-bit ARM (aarch64) detected" + DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" + DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" + ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" + STM32FLASH="./STM32F10X_Lib/utils/rpi32/stm32flash" elif [ $(uname -m) == "armv7l" ]; then - echo "Raspberry Pi 3 detected" + echo "Linux ARM (armv7l) detected" DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" STM32FLASH="./STM32F10X_Lib/utils/rpi32/stm32flash" elif [ $(uname -m) == "armv6l" ]; then - echo "Raspberry Pi 2 or Pi Zero W detected" + echo "Linux ARM (armv6l) detected" DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" diff --git a/scripts/install_fw_hshat-12mhz.sh b/scripts/install_fw_hshat-12mhz.sh index 82f0190..8ef6bff 100755 --- a/scripts/install_fw_hshat-12mhz.sh +++ b/scripts/install_fw_hshat-12mhz.sh @@ -17,26 +17,18 @@ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # Configure latest version -FW_VERSION="v1.5.2" - -# Configure beta version -FW_VERSION_BETA="v1.5.1b" +FW_VERSION="v1.6.1" # Firmware filename FW_FILENAME="mmdvm_hs_hat_fw-12mhz.bin" - -# Download latest firmware -if [ $1 = "beta" ]; then - echo "Downloading beta firmware..." - curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION_BETA/$FW_FILENAME -else - echo "Downloading latest firmware (stable)..." - curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/$FW_FILENAME -fi +# Download latest firmware +echo "Downloading firmware..." +curl -s -A "WPSD Modem FW Update Invocation" -OL https://wpsd-swd.w0chp.net/WPSD-SWD/MMDVM_HS-Firmware_Latest-Compiled/raw/tag/$FW_VERSION/$FW_FILENAME + # Download STM32F10X_Lib (only for binary tools) if [ ! -d "./STM32F10X_Lib/utils" ]; then - git clone https://github.com/juribeparada/STM32F10X_Lib + env GIT_HTTP_CONNECT_TIMEOUT="10" env GIT_HTTP_USER_AGENT="WPSD Modem FW Update Invocation" git clone https://wpsd-swd.w0chp.net/WPSD-SWD/STM32F10X_Lib.git &> /dev/null fi # Configure vars depending on OS @@ -47,14 +39,20 @@ if [ $(uname -s) == "Linux" ]; then DFU_UTIL="./STM32F10X_Lib/utils/linux64/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/linux64/st-flash" STM32FLASH="./STM32F10X_Lib/utils/linux64/stm32flash" + elif [ $(uname -m) == "aarch64" ] ; then + echo "Linux 64-bit ARM (aarch64) detected" + DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" + DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" + ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" + STM32FLASH="./STM32F10X_Lib/utils/rpi32/stm32flash" elif [ $(uname -m) == "armv7l" ]; then - echo "Raspberry Pi 3 detected" + echo "Linux ARM (armv7l) detected" DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" STM32FLASH="./STM32F10X_Lib/utils/rpi32/stm32flash" elif [ $(uname -m) == "armv6l" ]; then - echo "Raspberry Pi 2 or Pi Zero W detected" + echo "Linux ARM (armv6l) detected" DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" diff --git a/scripts/install_fw_hshat.sh b/scripts/install_fw_hshat.sh index 671940b..c6cc389 100755 --- a/scripts/install_fw_hshat.sh +++ b/scripts/install_fw_hshat.sh @@ -17,26 +17,18 @@ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # Configure latest version -FW_VERSION="v1.5.2" - -# Configure beta version -FW_VERSION_BETA="v1.5.1b" +FW_VERSION="v1.6.1" # Firmware filename FW_FILENAME="mmdvm_hs_hat_fw.bin" # Download latest firmware -if [ $1 = "beta" ]; then - echo "Downloading beta firmware..." - curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION_BETA/$FW_FILENAME -else - echo "Downloading latest firmware (stable)..." - curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/$FW_FILENAME -fi +echo "Downloading firmware..." +curl -s -A "WPSD Modem FW Update Invocation" -OL https://wpsd-swd.w0chp.net/WPSD-SWD/MMDVM_HS-Firmware_Latest-Compiled/raw/tag/$FW_VERSION/$FW_FILENAME # Download STM32F10X_Lib (only for binary tools) if [ ! -d "./STM32F10X_Lib/utils" ]; then - git clone https://github.com/juribeparada/STM32F10X_Lib + env GIT_HTTP_CONNECT_TIMEOUT="10" env GIT_HTTP_USER_AGENT="WPSD Modem FW Update Invocation" git clone https://wpsd-swd.w0chp.net/WPSD-SWD/STM32F10X_Lib.git &> /dev/null fi # Configure vars depending on OS @@ -47,14 +39,20 @@ if [ $(uname -s) == "Linux" ]; then DFU_UTIL="./STM32F10X_Lib/utils/linux64/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/linux64/st-flash" STM32FLASH="./STM32F10X_Lib/utils/linux64/stm32flash" + elif [ $(uname -m) == "aarch64" ] ; then + echo "Linux 64-bit ARM (aarch64) detected" + DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" + DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" + ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" + STM32FLASH="./STM32F10X_Lib/utils/rpi32/stm32flash" elif [ $(uname -m) == "armv7l" ]; then - echo "Raspberry Pi 3 detected" + echo "Linux ARM (armv7l) detected" DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" STM32FLASH="./STM32F10X_Lib/utils/rpi32/stm32flash" elif [ $(uname -m) == "armv6l" ]; then - echo "Raspberry Pi 2 or Pi Zero W detected" + echo "Linux ARM (armv6l) detected" DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" diff --git a/scripts/install_fw_librekit.sh b/scripts/install_fw_librekit.sh index 1298b10..71458fe 100755 --- a/scripts/install_fw_librekit.sh +++ b/scripts/install_fw_librekit.sh @@ -17,29 +17,21 @@ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # Configure latest version -FW_VERSION="v1.5.2" +FW_VERSION="v1.6.1" # Change USB-serial port name ONLY in macOS MAC_DEV_USB_SER="/dev/cu.usbmodem14401" -# Configure beta version -FW_VERSION_BETA="v1.5.1b" - # Firmware filename FW_FILENAME="zumspot_libre_fw.bin" - + # Download latest firmware -if [ $1 = "beta" ]; then - echo "Downloading beta firmware..." - curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION_BETA/$FW_FILENAME -else - echo "Downloading latest firmware (stable)..." - curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/$FW_FILENAME -fi +echo "Downloading firmware..." +curl -s -A "WPSD Modem FW Update Invocation" -OL https://wpsd-swd.w0chp.net/WPSD-SWD/MMDVM_HS-Firmware_Latest-Compiled/raw/tag/$FW_VERSION/$FW_FILENAME # Download STM32F10X_Lib (only for binary tools) if [ ! -d "./STM32F10X_Lib/utils" ]; then - git clone https://github.com/juribeparada/STM32F10X_Lib + env GIT_HTTP_CONNECT_TIMEOUT="10" env GIT_HTTP_USER_AGENT="WPSD Modem FW Update Invocation" git clone https://wpsd-swd.w0chp.net/WPSD-SWD/STM32F10X_Lib.git &> /dev/null fi # Configure vars depending on OS @@ -51,14 +43,20 @@ if [ $(uname -s) == "Linux" ]; then DFU_UTIL="./STM32F10X_Lib/utils/linux64/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/linux64/st-flash" STM32FLASH="./STM32F10X_Lib/utils/linux64/stm32flash" + elif [ $(uname -m) == "aarch64" ] ; then + echo "Linux 64-bit ARM (aarch64) detected" + DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" + DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" + ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" + STM32FLASH="./STM32F10X_Lib/utils/rpi32/stm32flash" elif [ $(uname -m) == "armv7l" ]; then - echo "Raspberry Pi 3 detected" + echo "Linux ARM (armv7l) detected" DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" STM32FLASH="./STM32F10X_Lib/utils/rpi32/stm32flash" elif [ $(uname -m) == "armv6l" ]; then - echo "Raspberry Pi 2 or Pi Zero W detected" + echo "Linux ARM (armv6l) detected" DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" diff --git a/scripts/install_fw_lonestar_usb.sh b/scripts/install_fw_lonestar_usb.sh index 4225916..4e8677d 100755 --- a/scripts/install_fw_lonestar_usb.sh +++ b/scripts/install_fw_lonestar_usb.sh @@ -17,29 +17,21 @@ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # Configure latest version -FW_VERSION="v1.6.0" +FW_VERSION="v1.6.1" # Change USB-serial port name ONLY in macOS MAC_DEV_USB_SER="/dev/cu.usbmodem14401" -# Configure beta version -FW_VERSION_BETA="v1.6.0b" - # Firmware filename FW_FILENAME="lonestar_usb_fw.bin" # Download latest firmware -if [ $1 = "beta" ]; then - echo "Downloading beta firmware..." - curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION_BETA/$FW_FILENAME -else - echo "Downloading latest firmware (stable)..." - curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/$FW_FILENAME -fi +echo "Downloading firmware..." +curl -s -A "WPSD Modem FW Update Invocation" -OL https://wpsd-swd.w0chp.net/WPSD-SWD/MMDVM_HS-Firmware_Latest-Compiled/raw/tag/$FW_VERSION/$FW_FILENAME # Download STM32F10X_Lib (only for binary tools) if [ ! -d "./STM32F10X_Lib/utils" ]; then - git clone https://github.com/juribeparada/STM32F10X_Lib + env GIT_HTTP_CONNECT_TIMEOUT="10" env GIT_HTTP_USER_AGENT="WPSD Modem FW Update Invocation" git clone https://wpsd-swd.w0chp.net/WPSD-SWD/STM32F10X_Lib.git &> /dev/null fi # Configure vars depending on OS @@ -51,14 +43,20 @@ if [ $(uname -s) == "Linux" ]; then DFU_UTIL="./STM32F10X_Lib/utils/linux64/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/linux64/st-flash" STM32FLASH="./STM32F10X_Lib/utils/linux64/stm32flash" + elif [ $(uname -m) == "aarch64" ] ; then + echo "Linux 64-bit ARM (aarch64) detected" + DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" + DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" + ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" + STM32FLASH="./STM32F10X_Lib/utils/rpi32/stm32flash" elif [ $(uname -m) == "armv7l" ]; then - echo "Raspberry Pi 3 detected" + echo "Linux ARM (armv7l) detected" DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" STM32FLASH="./STM32F10X_Lib/utils/rpi32/stm32flash" elif [ $(uname -m) == "armv6l" ]; then - echo "Raspberry Pi 2 or Pi Zero W detected" + echo "Linux ARM (armv6l) detected" DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" diff --git a/scripts/install_fw_nanodv_npi.sh b/scripts/install_fw_nanodv_npi.sh index aae6890..a94de2b 100755 --- a/scripts/install_fw_nanodv_npi.sh +++ b/scripts/install_fw_nanodv_npi.sh @@ -17,26 +17,18 @@ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # Configure latest version -FW_VERSION="v1.5.2" - -# Configure beta version -FW_VERSION_BETA="v1.5.1b" +FW_VERSION="v1.6.1" # Firmware filename FW_FILENAME="nanodv_npi_fw.bin" - + # Download latest firmware -if [ $1 = "beta" ]; then - echo "Downloading beta firmware..." - curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION_BETA/$FW_FILENAME -else - echo "Downloading latest firmware (stable)..." - curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/$FW_FILENAME -fi +echo "Downloading firmware..." +curl -s -A "WPSD Modem FW Update Invocation" -OL https://wpsd-swd.w0chp.net/WPSD-SWD/MMDVM_HS-Firmware_Latest-Compiled/raw/tag/$FW_VERSION/$FW_FILENAME # Download STM32F10X_Lib (only for binary tools) if [ ! -d "./STM32F10X_Lib/utils" ]; then - git clone https://github.com/juribeparada/STM32F10X_Lib + env GIT_HTTP_CONNECT_TIMEOUT="10" env GIT_HTTP_USER_AGENT="WPSD Modem FW Update Invocation" git clone https://wpsd-swd.w0chp.net/WPSD-SWD/STM32F10X_Lib.git &> /dev/null fi # Configure vars depending on OS @@ -47,14 +39,20 @@ if [ $(uname -s) == "Linux" ]; then DFU_UTIL="./STM32F10X_Lib/utils/linux64/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/linux64/st-flash" STM32FLASH="./STM32F10X_Lib/utils/linux64/stm32flash" + elif [ $(uname -m) == "aarch64" ] ; then + echo "Linux 64-bit ARM (aarch64) detected" + DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" + DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" + ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" + STM32FLASH="./STM32F10X_Lib/utils/rpi32/stm32flash" elif [ $(uname -m) == "armv7l" ]; then - echo "Raspberry Pi 3 detected" + echo "Linux ARM (armv7l) detected" DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" STM32FLASH="./STM32F10X_Lib/utils/rpi32/stm32flash" elif [ $(uname -m) == "armv6l" ]; then - echo "Raspberry Pi 2 or Pi Zero W detected" + echo "Linux ARM (armv6l) detected" DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" diff --git a/scripts/install_fw_nanodv_usb.sh b/scripts/install_fw_nanodv_usb.sh index d301bfc..971f578 100755 --- a/scripts/install_fw_nanodv_usb.sh +++ b/scripts/install_fw_nanodv_usb.sh @@ -17,29 +17,20 @@ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # Configure latest version -FW_VERSION="v1.5.2" +FW_VERSION="v1.6.1" # Change USB-serial port name ONLY in macOS MAC_DEV_USB_SER="/dev/cu.usbmodem14401" -# Configure beta version -FW_VERSION_BETA="v1.5.1b" - # Firmware filename FW_FILENAME="nanodv_usb_fw.bin" # Download latest firmware -if [ $1 = "beta" ]; then - echo "Downloading beta firmware..." - curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION_BETA/$FW_FILENAME -else - echo "Downloading latest firmware (stable)..." - curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/$FW_FILENAME -fi +echo "Downloading firmware..." +curl -s -A "WPSD Modem FW Update Invocation" -OL https://wpsd-swd.w0chp.net/WPSD-SWD/MMDVM_HS-Firmware_Latest-Compiled/raw/tag/$FW_VERSION/$FW_FILENAME -# Download STM32F10X_Lib (only for binary tools) if [ ! -d "./STM32F10X_Lib/utils" ]; then - git clone https://github.com/juribeparada/STM32F10X_Lib + env GIT_HTTP_CONNECT_TIMEOUT="10" env GIT_HTTP_USER_AGENT="WPSD Modem FW Update Invocation" git clone https://wpsd-swd.w0chp.net/WPSD-SWD/STM32F10X_Lib.git &> /dev/null fi # Configure vars depending on OS @@ -51,14 +42,20 @@ if [ $(uname -s) == "Linux" ]; then DFU_UTIL="./STM32F10X_Lib/utils/linux64/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/linux64/st-flash" STM32FLASH="./STM32F10X_Lib/utils/linux64/stm32flash" + elif [ $(uname -m) == "aarch64" ] ; then + echo "Linux 64-bit ARM (aarch64) detected" + DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" + DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" + ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" + STM32FLASH="./STM32F10X_Lib/utils/rpi32/stm32flash" elif [ $(uname -m) == "armv7l" ]; then - echo "Raspberry Pi 3 detected" + echo "Linux ARM (armv7l) detected" DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" STM32FLASH="./STM32F10X_Lib/utils/rpi32/stm32flash" elif [ $(uname -m) == "armv6l" ]; then - echo "Raspberry Pi 2 or Pi Zero W detected" + echo "Linux ARM (armv6l) detected" DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" diff --git a/scripts/install_fw_nanohs.sh b/scripts/install_fw_nanohs.sh index a8b72f7..4feefe8 100755 --- a/scripts/install_fw_nanohs.sh +++ b/scripts/install_fw_nanohs.sh @@ -28,26 +28,18 @@ if [ -f /etc/pistar-release ]; then fi # Configure latest version -FW_VERSION="v1.5.2" - -# Configure beta version -FW_VERSION_BETA="v1.5.1b" +FW_VERSION="v1.6.1" # Firmware filename FW_FILENAME="nano_hotspot_fw.bin" # Download latest firmware -if [ $1 = "beta" ]; then - echo "Downloading beta firmware..." - curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION_BETA/$FW_FILENAME -else - echo "Downloading latest firmware (stable)..." - curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/$FW_FILENAME -fi +echo "Downloading firmware..." +curl -s -A "WPSD Modem FW Update Invocation" -OL https://wpsd-swd.w0chp.net/WPSD-SWD/MMDVM_HS-Firmware_Latest-Compiled/raw/tag/$FW_VERSION/$FW_FILENAME # Download STM32F10X_Lib (only for binary tools) if [ ! -d "./STM32F10X_Lib/utils" ]; then - git clone https://github.com/juribeparada/STM32F10X_Lib + env GIT_HTTP_CONNECT_TIMEOUT="10" env GIT_HTTP_USER_AGENT="WPSD Modem FW Update Invocation" git clone https://wpsd-swd.w0chp.net/WPSD-SWD/STM32F10X_Lib.git &> /dev/null fi # Configure vars depending on OS @@ -58,14 +50,20 @@ if [ $(uname -s) == "Linux" ]; then DFU_UTIL="./STM32F10X_Lib/utils/linux64/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/linux64/st-flash" STM32FLASH="./STM32F10X_Lib/utils/linux64/stm32flash" + elif [ $(uname -m) == "aarch64" ] ; then + echo "Linux 64-bit ARM (aarch64) detected" + DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" + DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" + ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" + STM32FLASH="./STM32F10X_Lib/utils/rpi32/stm32flash" elif [ $(uname -m) == "armv7l" ]; then - echo "Raspberry Pi 3 detected" + echo "Linux ARM (armv7l) detected" DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" STM32FLASH="./STM32F10X_Lib/utils/rpi32/stm32flash" elif [ $(uname -m) == "armv6l" ]; then - echo "Raspberry Pi 2 or Pi Zero W detected" + echo "Linux ARM (armv6l) detected" DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" diff --git a/scripts/install_fw_rpi.sh b/scripts/install_fw_rpi.sh index 9965a25..88c80f4 100755 --- a/scripts/install_fw_rpi.sh +++ b/scripts/install_fw_rpi.sh @@ -17,26 +17,18 @@ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # Configure latest version -FW_VERSION="v1.5.2" - -# Configure beta version -FW_VERSION_BETA="v1.5.1b" +FW_VERSION="v1.6.1" # Firmware filename FW_FILENAME="zumspot_rpi_fw.bin" # Download latest firmware -if [ $1 = "beta" ]; then - echo "Downloading beta firmware..." - curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION_BETA/$FW_FILENAME -else - echo "Downloading latest firmware (stable)..." - curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/$FW_FILENAME -fi +echo "Downloading firmware..." +curl -s -A "WPSD Modem FW Update Invocation" -OL https://wpsd-swd.w0chp.net/WPSD-SWD/MMDVM_HS-Firmware_Latest-Compiled/raw/tag/$FW_VERSION/$FW_FILENAME # Download STM32F10X_Lib (only for binary tools) if [ ! -d "./STM32F10X_Lib/utils" ]; then - git clone https://github.com/juribeparada/STM32F10X_Lib + env GIT_HTTP_CONNECT_TIMEOUT="10" env GIT_HTTP_USER_AGENT="WPSD Modem FW Update Invocation" git clone https://wpsd-swd.w0chp.net/WPSD-SWD/STM32F10X_Lib.git &> /dev/null fi # Configure vars depending on OS @@ -48,13 +40,19 @@ if [ $(uname -s) == "Linux" ]; then ST_FLASH="./STM32F10X_Lib/utils/linux64/st-flash" STM32FLASH="./STM32F10X_Lib/utils/linux64/stm32flash" elif [ $(uname -m) == "armv7l" ]; then - echo "Raspberry Pi 3 detected" + echo "Linux ARM (armv7l) detected" DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" STM32FLASH="./STM32F10X_Lib/utils/rpi32/stm32flash" elif [ $(uname -m) == "armv6l" ]; then - echo "Raspberry Pi 2 or Pi Zero W detected" + echo "Linux ARM (armv6l) detected" + DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" + DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" + ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" + STM32FLASH="./STM32F10X_Lib/utils/rpi32/stm32flash" + elif [ $(uname -m) == "aarch64" ]; then + echo "Raspberry Pi 4 aarch64 detected" DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" diff --git a/scripts/install_fw_skybridge_rpi.sh b/scripts/install_fw_skybridge_rpi.sh index 50480ad..735a68b 100755 --- a/scripts/install_fw_skybridge_rpi.sh +++ b/scripts/install_fw_skybridge_rpi.sh @@ -17,26 +17,18 @@ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # Configure latest version -FW_VERSION="v1.5.2" - -# Configure beta version -FW_VERSION_BETA="v1.5.1b" +FW_VERSION="v1.6.1" # Firmware filename FW_FILENAME="skybridge_rpi_fw.bin" - -# Download latest firmware -if [ $1 = "beta" ]; then - echo "Downloading beta firmware..." - curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION_BETA/$FW_FILENAME -else - echo "Downloading latest firmware (stable)..." - curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/$FW_FILENAME -fi +# Download latest firmware +echo "Downloading firmware..." +curl -s -A "WPSD Modem FW Update Invocation" -OL https://wpsd-swd.w0chp.net/WPSD-SWD/MMDVM_HS-Firmware_Latest-Compiled/raw/tag/$FW_VERSION/$FW_FILENAME + # Download STM32F10X_Lib (only for binary tools) if [ ! -d "./STM32F10X_Lib/utils" ]; then - git clone https://github.com/juribeparada/STM32F10X_Lib + env GIT_HTTP_CONNECT_TIMEOUT="10" env GIT_HTTP_USER_AGENT="WPSD Modem FW Update Invocation" git clone https://wpsd-swd.w0chp.net/WPSD-SWD/STM32F10X_Lib.git &> /dev/null fi # Configure vars depending on OS @@ -48,13 +40,19 @@ if [ $(uname -s) == "Linux" ]; then ST_FLASH="./STM32F10X_Lib/utils/linux64/st-flash" STM32FLASH="./STM32F10X_Lib/utils/linux64/stm32flash" elif [ $(uname -m) == "armv7l" ]; then - echo "Raspberry Pi 3 detected" + echo "Linux ARM (armv7l) detected" DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" STM32FLASH="./STM32F10X_Lib/utils/rpi32/stm32flash" elif [ $(uname -m) == "armv6l" ]; then - echo "Raspberry Pi 2 or Pi Zero W detected" + echo "Linux ARM (armv6l) detected" + DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" + DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" + ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" + STM32FLASH="./STM32F10X_Lib/utils/rpi32/stm32flash" + elif [ $(uname -m) == "aarch64" ]; then + echo "Raspberry Pi 4 aarch64 detected" DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" diff --git a/scripts/install_fw_usb.sh b/scripts/install_fw_usb.sh index beca5d0..bfb640b 100755 --- a/scripts/install_fw_usb.sh +++ b/scripts/install_fw_usb.sh @@ -17,29 +17,21 @@ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # Configure latest version -FW_VERSION="v1.5.2" +FW_VERSION="v1.6.1" # Change USB-serial port name ONLY in macOS MAC_DEV_USB_SER="/dev/cu.usbmodem14401" -# Configure beta version -FW_VERSION_BETA="v1.5.1b" - # Firmware filename FW_FILENAME="zumspot_usb_fw.bin" # Download latest firmware -if [ $1 = "beta" ]; then - echo "Downloading beta firmware..." - curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION_BETA/$FW_FILENAME -else - echo "Downloading latest firmware (stable)..." - curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/$FW_FILENAME -fi +echo "Downloading firmware..." +curl -s -A "WPSD Modem FW Update Invocation" -OL https://wpsd-swd.w0chp.net/WPSD-SWD/MMDVM_HS-Firmware_Latest-Compiled/raw/tag/$FW_VERSION/$FW_FILENAME # Download STM32F10X_Lib (only for binary tools) if [ ! -d "./STM32F10X_Lib/utils" ]; then - git clone https://github.com/juribeparada/STM32F10X_Lib + env GIT_HTTP_CONNECT_TIMEOUT="10" env GIT_HTTP_USER_AGENT="WPSD Modem FW Update Invocation" git clone https://wpsd-swd.w0chp.net/WPSD-SWD/STM32F10X_Lib.git &> /dev/null fi # Configure vars depending on OS @@ -51,14 +43,20 @@ if [ $(uname -s) == "Linux" ]; then DFU_UTIL="./STM32F10X_Lib/utils/linux64/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/linux64/st-flash" STM32FLASH="./STM32F10X_Lib/utils/linux64/stm32flash" + elif [ $(uname -m) == "aarch64" ] ; then + echo "Linux 64-bit ARM (aarch64) detected" + DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" + DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" + ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" + STM32FLASH="./STM32F10X_Lib/utils/rpi32/stm32flash" elif [ $(uname -m) == "armv7l" ]; then - echo "Raspberry Pi 3 detected" + echo "Linux ARM (armv7l) detected" DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" STM32FLASH="./STM32F10X_Lib/utils/rpi32/stm32flash" elif [ $(uname -m) == "armv6l" ]; then - echo "Raspberry Pi 2 or Pi Zero W detected" + echo "Linux ARM (armv6l) detected" DFU_RST="./STM32F10X_Lib/utils/rpi32/upload-reset" DFU_UTIL="./STM32F10X_Lib/utils/rpi32/dfu-util" ST_FLASH="./STM32F10X_Lib/utils/rpi32/st-flash" diff --git a/version.h b/version.h index 4239a85..299b517 100644 --- a/version.h +++ b/version.h @@ -71,7 +71,7 @@ #define FW_VERSION "v" VER_MAJOR "." VER_MINOR "." VER_REV " " VERSION_DATE -#define DESCRIPTION BOARD_INFO "-" FW_VERSION " " TCXO_FREQ "MHz " RF_DUAL RF_CHIP " FW by CA6JAU" +#define DESCRIPTION BOARD_INFO "-" FW_VERSION " " TCXO_FREQ "MHz " RF_DUAL RF_CHIP " FW by CA6JAU, G4KLX, W0CHP." #if defined(MADEBYMAKEFILE) #include "GitVersion.h"