Add beta fw support for installer scripts

pull/111/head
Andy CA6JAU 6 years ago
parent 3c0c3abcc3
commit 98895e5939

@ -19,8 +19,20 @@
# Configure latest version # Configure latest version
FW_VERSION="v1.4.17" FW_VERSION="v1.4.17"
# Download latest firmware for D2RG MMDVM_HS # Configure beta version
curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/d2rg_mmdvm_hs.bin 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
# Download STM32F10X_Lib (only for binary tools) # Download STM32F10X_Lib (only for binary tools)
if [ ! -d "./STM32F10X_Lib/utils" ]; then if [ ! -d "./STM32F10X_Lib/utils" ]; then
@ -69,5 +81,5 @@ sudo killall MMDVMHost >/dev/null 2>&1
# Upload the firmware # Upload the firmware
# Note: /dev/ttySC0 should be enabled, see: https://github.com/bg3mdo/D2RG_MMDVM_HS_ambe_uart_service # Note: /dev/ttySC0 should be enabled, see: https://github.com/bg3mdo/D2RG_MMDVM_HS_ambe_uart_service
eval sudo $STM32FLASH -v -w d2rg_mmdvm_hs.bin -g 0x0 -R -i 23,-22,22:-23,22 /dev/ttySC0 eval sudo $STM32FLASH -v -w $FW_FILENAME -g 0x0 -R -i 23,-22,22:-23,22 /dev/ttySC0

@ -19,8 +19,20 @@
# Configure latest version # Configure latest version
FW_VERSION="v1.4.17" FW_VERSION="v1.4.17"
# Download latest firmware for ZUMspot Dualband (GPIO) # Configure beta version
curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/zumspot_dualband_fw.bin 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
# Download STM32F10X_Lib (only for binary tools) # Download STM32F10X_Lib (only for binary tools)
if [ ! -d "./STM32F10X_Lib/utils" ]; then if [ ! -d "./STM32F10X_Lib/utils" ]; then
@ -68,5 +80,5 @@ fi
sudo killall MMDVMHost >/dev/null 2>&1 sudo killall MMDVMHost >/dev/null 2>&1
# Upload the firmware # Upload the firmware
eval sudo $STM32FLASH -v -w zumspot_dualband_fw.bin -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0 eval sudo $STM32FLASH -v -w $FW_FILENAME -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0

@ -19,8 +19,20 @@
# Configure latest version # Configure latest version
FW_VERSION="v1.4.17" FW_VERSION="v1.4.17"
# Download latest firmware for ZUMspot Duplex (GPIO) # Configure beta version
curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/zumspot_duplex_fw.bin FW_VERSION_BETA="v1.5.1b"
# 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
# Download STM32F10X_Lib (only for binary tools) # Download STM32F10X_Lib (only for binary tools)
if [ ! -d "./STM32F10X_Lib/utils" ]; then if [ ! -d "./STM32F10X_Lib/utils" ]; then
@ -68,5 +80,5 @@ fi
sudo killall MMDVMHost >/dev/null 2>&1 sudo killall MMDVMHost >/dev/null 2>&1
# Upload the firmware # Upload the firmware
eval sudo $STM32FLASH -v -w zumspot_duplex_fw.bin -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0 eval sudo $STM32FLASH -v -w $FW_FILENAME -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0

@ -19,8 +19,23 @@
# Configure latest version # Configure latest version
FW_VERSION="v1.4.17" FW_VERSION="v1.4.17"
# Configure beta version
FW_VERSION_BETA="v1.5.1b"
# 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 # Download latest firmware for Generic Duplex GPIO
curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/generic_duplex_gpio_fw.bin curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/
# Download STM32F10X_Lib (only for binary tools) # Download STM32F10X_Lib (only for binary tools)
if [ ! -d "./STM32F10X_Lib/utils" ]; then if [ ! -d "./STM32F10X_Lib/utils" ]; then
@ -68,5 +83,5 @@ fi
sudo killall MMDVMHost >/dev/null 2>&1 sudo killall MMDVMHost >/dev/null 2>&1
# Upload the firmware # Upload the firmware
eval sudo $STM32FLASH -v -w generic_duplex_gpio_fw.bin -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0 eval sudo $STM32FLASH -v -w $FW_FILENAME -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0

@ -22,8 +22,20 @@ FW_VERSION="v1.4.17"
# Change USB-serial port name ONLY in macOS # Change USB-serial port name ONLY in macOS
MAC_DEV_USB_SER="/dev/cu.usbmodem14401" MAC_DEV_USB_SER="/dev/cu.usbmodem14401"
# Download latest firmware for Generic duplex USB boards # Configure beta version
curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/generic_duplex_usb_fw.bin 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
# Download STM32F10X_Lib (only for binary tools) # Download STM32F10X_Lib (only for binary tools)
if [ ! -d "./STM32F10X_Lib/utils" ]; then if [ ! -d "./STM32F10X_Lib/utils" ]; then
@ -76,7 +88,7 @@ sudo killall MMDVMHost >/dev/null 2>&1
eval sudo $DFU_RST $DEV_USB_SER 750 eval sudo $DFU_RST $DEV_USB_SER 750
# Upload the firmware # Upload the firmware
eval sudo $DFU_UTIL -D generic_duplex_usb_fw.bin -d 1eaf:0003 -a 2 -R -R eval sudo $DFU_UTIL -D $FW_FILENAME -d 1eaf:0003 -a 2 -R -R
echo echo
echo "Please RESET your MMDVM_HS board !" echo "Please RESET your MMDVM_HS board !"

@ -19,8 +19,20 @@
# Configure latest version # Configure latest version
FW_VERSION="v1.4.17" FW_VERSION="v1.4.17"
# Download latest firmware for Generic Simplex GPIO # Configure beta version
curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/generic_gpio_fw.bin FW_VERSION_BETA="v1.5.1b"
# 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
# Download STM32F10X_Lib (only for binary tools) # Download STM32F10X_Lib (only for binary tools)
if [ ! -d "./STM32F10X_Lib/utils" ]; then if [ ! -d "./STM32F10X_Lib/utils" ]; then
@ -68,5 +80,5 @@ fi
sudo killall MMDVMHost >/dev/null 2>&1 sudo killall MMDVMHost >/dev/null 2>&1
# Upload the firmware # Upload the firmware
eval sudo $STM32FLASH -v -w generic_gpio_fw.bin -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0 eval sudo $STM32FLASH -v -w $FW_FILENAME -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0

@ -19,8 +19,20 @@
# Configure latest version # Configure latest version
FW_VERSION="v1.4.17" FW_VERSION="v1.4.17"
# Download latest firmware for MMDVM_HS_Hat # Configure beta version
curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/mmdvm_hs_dual_hat_fw-12mhz.bin FW_VERSION_BETA="v1.5.1b"
# 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
# Download STM32F10X_Lib (only for binary tools) # Download STM32F10X_Lib (only for binary tools)
if [ ! -d "./STM32F10X_Lib/utils" ]; then if [ ! -d "./STM32F10X_Lib/utils" ]; then
@ -68,5 +80,5 @@ fi
sudo killall MMDVMHost >/dev/null 2>&1 sudo killall MMDVMHost >/dev/null 2>&1
# Upload the firmware # Upload the firmware
eval sudo $STM32FLASH -v -w mmdvm_hs_dual_hat_fw-12mhz.bin -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0 eval sudo $STM32FLASH -v -w $FW_FILENAME -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0

@ -19,8 +19,20 @@
# Configure latest version # Configure latest version
FW_VERSION="v1.4.17" FW_VERSION="v1.4.17"
# Download latest firmware for MMDVM_HS_Hat # Configure beta version
curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/mmdvm_hs_dual_hat_fw.bin FW_VERSION_BETA="v1.5.1b"
# 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
# Download STM32F10X_Lib (only for binary tools) # Download STM32F10X_Lib (only for binary tools)
if [ ! -d "./STM32F10X_Lib/utils" ]; then if [ ! -d "./STM32F10X_Lib/utils" ]; then
@ -68,5 +80,5 @@ fi
sudo killall MMDVMHost >/dev/null 2>&1 sudo killall MMDVMHost >/dev/null 2>&1
# Upload the firmware # Upload the firmware
eval sudo $STM32FLASH -v -w mmdvm_hs_dual_hat_fw.bin -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0 eval sudo $STM32FLASH -v -w $FW_FILENAME -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0

@ -19,8 +19,20 @@
# Configure latest version # Configure latest version
FW_VERSION="v1.4.17" FW_VERSION="v1.4.17"
# Download latest firmware for MMDVM_HS_Hat with 12.288 MHz TCXO # Configure beta version
curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/mmdvm_hs_hat_fw-12mhz.bin FW_VERSION_BETA="v1.5.1b"
# 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 STM32F10X_Lib (only for binary tools) # Download STM32F10X_Lib (only for binary tools)
if [ ! -d "./STM32F10X_Lib/utils" ]; then if [ ! -d "./STM32F10X_Lib/utils" ]; then
@ -68,5 +80,5 @@ fi
sudo killall MMDVMHost >/dev/null 2>&1 sudo killall MMDVMHost >/dev/null 2>&1
# Upload the firmware # Upload the firmware
eval sudo $STM32FLASH -v -w mmdvm_hs_hat_fw-12mhz.bin -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0 eval sudo $STM32FLASH -v -w $FW_FILENAME -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0

@ -19,8 +19,20 @@
# Configure latest version # Configure latest version
FW_VERSION="v1.4.17" FW_VERSION="v1.4.17"
# Download latest firmware for MMDVM_HS_Hat # Configure beta version
curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/mmdvm_hs_hat_fw.bin FW_VERSION_BETA="v1.5.1b"
# 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
# Download STM32F10X_Lib (only for binary tools) # Download STM32F10X_Lib (only for binary tools)
if [ ! -d "./STM32F10X_Lib/utils" ]; then if [ ! -d "./STM32F10X_Lib/utils" ]; then
@ -68,5 +80,5 @@ fi
sudo killall MMDVMHost >/dev/null 2>&1 sudo killall MMDVMHost >/dev/null 2>&1
# Upload the firmware # Upload the firmware
eval sudo $STM32FLASH -v -w mmdvm_hs_hat_fw.bin -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0 eval sudo $STM32FLASH -v -w $FW_FILENAME -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0

@ -22,8 +22,20 @@ FW_VERSION="v1.4.17"
# Change USB-serial port name ONLY in macOS # Change USB-serial port name ONLY in macOS
MAC_DEV_USB_SER="/dev/cu.usbmodem14401" MAC_DEV_USB_SER="/dev/cu.usbmodem14401"
# Download latest firmware for ZUMspot Libre Kit # Configure beta version
curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/zumspot_libre_fw.bin 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
# Download STM32F10X_Lib (only for binary tools) # Download STM32F10X_Lib (only for binary tools)
if [ ! -d "./STM32F10X_Lib/utils" ]; then if [ ! -d "./STM32F10X_Lib/utils" ]; then
@ -76,7 +88,7 @@ sudo killall MMDVMHost >/dev/null 2>&1
eval sudo $DFU_RST $DEV_USB_SER 750 eval sudo $DFU_RST $DEV_USB_SER 750
# Upload the firmware # Upload the firmware
eval sudo $DFU_UTIL -D zumspot_libre_fw.bin -d 1eaf:0003 -a 2 -R -R eval sudo $DFU_UTIL -D $FW_FILENAME -d 1eaf:0003 -a 2 -R -R
echo echo
echo "Please RESET your ZUMspot Libre Kit !" echo "Please RESET your ZUMspot Libre Kit !"

@ -19,8 +19,20 @@
# Configure latest version # Configure latest version
FW_VERSION="v1.4.17" FW_VERSION="v1.4.17"
# Download latest firmware for Nano DV # Configure beta version
curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/nanodv_npi_fw.bin FW_VERSION_BETA="v1.5.1b"
# 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
# Download STM32F10X_Lib (only for binary tools) # Download STM32F10X_Lib (only for binary tools)
if [ ! -d "./STM32F10X_Lib/utils" ]; then if [ ! -d "./STM32F10X_Lib/utils" ]; then
@ -68,5 +80,5 @@ fi
sudo killall MMDVMHost >/dev/null 2>&1 sudo killall MMDVMHost >/dev/null 2>&1
# Upload the firmware # Upload the firmware
eval sudo $STM32FLASH -v -w nanodv_npi_fw.bin -g 0x0 -R -i 66,-67,67:-66,67 /dev/ttyAMA0 eval sudo $STM32FLASH -v -w $FW_FILENAME -g 0x0 -R -i 66,-67,67:-66,67 /dev/ttyAMA0

@ -22,8 +22,20 @@ FW_VERSION="v1.4.17"
# Change USB-serial port name ONLY in macOS # Change USB-serial port name ONLY in macOS
MAC_DEV_USB_SER="/dev/cu.usbmodem14401" MAC_DEV_USB_SER="/dev/cu.usbmodem14401"
# Download latest firmware for ZUMspot USB # Configure beta version
curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/nanodv_usb_fw.bin 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
# Download STM32F10X_Lib (only for binary tools) # Download STM32F10X_Lib (only for binary tools)
if [ ! -d "./STM32F10X_Lib/utils" ]; then if [ ! -d "./STM32F10X_Lib/utils" ]; then
@ -76,7 +88,7 @@ sudo killall MMDVMHost >/dev/null 2>&1
eval sudo $DFU_RST $DEV_USB_SER 750 eval sudo $DFU_RST $DEV_USB_SER 750
# Upload the firmware # Upload the firmware
eval sudo $DFU_UTIL -D nanodv_usb_fw.bin -d 1eaf:0003 -a 2 -R -R eval sudo $DFU_UTIL -D $FW_FILENAME -d 1eaf:0003 -a 2 -R -R
echo echo
echo "Please RESET your Nano DV !" echo "Please RESET your Nano DV !"

@ -19,8 +19,20 @@
# Configure latest version # Configure latest version
FW_VERSION="v1.4.17" FW_VERSION="v1.4.17"
# Download latest firmware for Nano hotSPOT # Configure beta version
curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/nano_hotspot_fw.bin FW_VERSION_BETA="v1.5.1b"
# 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
# Download STM32F10X_Lib (only for binary tools) # Download STM32F10X_Lib (only for binary tools)
if [ ! -d "./STM32F10X_Lib/utils" ]; then if [ ! -d "./STM32F10X_Lib/utils" ]; then
@ -68,5 +80,5 @@ fi
sudo killall MMDVMHost >/dev/null 2>&1 sudo killall MMDVMHost >/dev/null 2>&1
# Upload the firmware # Upload the firmware
eval sudo $STM32FLASH -v -w nano_hotspot_fw.bin -g 0x0 -R -i 200,-3,3:-200,3 /dev/ttyAMA0 eval sudo $STM32FLASH -v -w $FW_FILENAME -g 0x0 -R -i 200,-3,3:-200,3 /dev/ttyAMA0

@ -19,8 +19,20 @@
# Configure latest version # Configure latest version
FW_VERSION="v1.4.17" FW_VERSION="v1.4.17"
# Download latest firmware for ZUMspot RPi (GPIO) # Configure beta version
curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/zumspot_rpi_fw.bin FW_VERSION_BETA="v1.5.1b"
# 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
# Download STM32F10X_Lib (only for binary tools) # Download STM32F10X_Lib (only for binary tools)
if [ ! -d "./STM32F10X_Lib/utils" ]; then if [ ! -d "./STM32F10X_Lib/utils" ]; then
@ -68,5 +80,5 @@ fi
sudo killall MMDVMHost >/dev/null 2>&1 sudo killall MMDVMHost >/dev/null 2>&1
# Upload the firmware # Upload the firmware
eval sudo $STM32FLASH -v -w zumspot_rpi_fw.bin -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0 eval sudo $STM32FLASH -v -w $FW_FILENAME -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0

@ -22,8 +22,20 @@ FW_VERSION="v1.4.17"
# Change USB-serial port name ONLY in macOS # Change USB-serial port name ONLY in macOS
MAC_DEV_USB_SER="/dev/cu.usbmodem14401" MAC_DEV_USB_SER="/dev/cu.usbmodem14401"
# Download latest firmware for ZUMspot USB # Configure beta version
curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/zumspot_usb_fw.bin 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
# Download STM32F10X_Lib (only for binary tools) # Download STM32F10X_Lib (only for binary tools)
if [ ! -d "./STM32F10X_Lib/utils" ]; then if [ ! -d "./STM32F10X_Lib/utils" ]; then
@ -76,7 +88,7 @@ sudo killall MMDVMHost >/dev/null 2>&1
eval sudo $DFU_RST $DEV_USB_SER 750 eval sudo $DFU_RST $DEV_USB_SER 750
# Upload the firmware # Upload the firmware
eval sudo $DFU_UTIL -D zumspot_usb_fw.bin -d 1eaf:0003 -a 2 -R -R eval sudo $DFU_UTIL -D $FW_FILENAME -d 1eaf:0003 -a 2 -R -R
echo echo
echo "Please RESET your ZUMspot !" echo "Please RESET your ZUMspot !"

Loading…
Cancel
Save

Powered by TurnKey Linux.