Skip to content

Commit

Permalink
Add beta fw support for installer scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
juribeparada committed Dec 2, 2019
1 parent 3c0c3ab commit 98895e5
Show file tree
Hide file tree
Showing 16 changed files with 242 additions and 47 deletions.
18 changes: 15 additions & 3 deletions scripts/install_fw_d2rg_mmdvmhs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,20 @@
# Configure latest version
FW_VERSION="v1.4.17"

# Download latest firmware for D2RG MMDVM_HS
curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/d2rg_mmdvm_hs.bin
# 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

# Download STM32F10X_Lib (only for binary tools)
if [ ! -d "./STM32F10X_Lib/utils" ]; then
Expand Down Expand Up @@ -69,5 +81,5 @@ sudo killall MMDVMHost >/dev/null 2>&1

# Upload the firmware
# 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

18 changes: 15 additions & 3 deletions scripts/install_fw_dualband.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,21 @@

# Configure latest version
FW_VERSION="v1.4.17"

# Configure beta version
FW_VERSION_BETA="v1.5.1b"

# Firmware filename
FW_FILENAME="zumspot_dualband_fw.bin"

# Download latest firmware for ZUMspot Dualband (GPIO)
curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/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)
if [ ! -d "./STM32F10X_Lib/utils" ]; then
Expand Down Expand Up @@ -68,5 +80,5 @@ fi
sudo killall MMDVMHost >/dev/null 2>&1

# 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

18 changes: 15 additions & 3 deletions scripts/install_fw_duplex.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,21 @@

# Configure latest version
FW_VERSION="v1.4.17"

# Configure beta version
FW_VERSION_BETA="v1.5.1b"

# Firmware filename
FW_FILENAME="zumspot_duplex_fw.bin"

# Download latest firmware for ZUMspot Duplex (GPIO)
curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/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)
if [ ! -d "./STM32F10X_Lib/utils" ]; then
Expand Down Expand Up @@ -68,5 +80,5 @@ fi
sudo killall MMDVMHost >/dev/null 2>&1

# 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 changes: 17 additions & 2 deletions scripts/install_fw_duplex_gpio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,24 @@

# Configure latest version
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
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)
if [ ! -d "./STM32F10X_Lib/utils" ]; then
Expand Down Expand Up @@ -68,5 +83,5 @@ fi
sudo killall MMDVMHost >/dev/null 2>&1

# 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

18 changes: 15 additions & 3 deletions scripts/install_fw_duplex_usb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,21 @@ FW_VERSION="v1.4.17"

# 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 for Generic duplex USB boards
curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/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)
if [ ! -d "./STM32F10X_Lib/utils" ]; then
Expand Down Expand Up @@ -76,7 +88,7 @@ sudo killall MMDVMHost >/dev/null 2>&1
eval sudo $DFU_RST $DEV_USB_SER 750

# 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 "Please RESET your MMDVM_HS board !"
Expand Down
18 changes: 15 additions & 3 deletions scripts/install_fw_gen_gpio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,21 @@

# Configure latest version
FW_VERSION="v1.4.17"

# Configure beta version
FW_VERSION_BETA="v1.5.1b"

# Firmware filename
FW_FILENAME="generic_gpio_fw.bin"

# Download latest firmware for Generic Simplex GPIO
curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/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)
if [ ! -d "./STM32F10X_Lib/utils" ]; then
Expand Down Expand Up @@ -68,5 +80,5 @@ fi
sudo killall MMDVMHost >/dev/null 2>&1

# 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

18 changes: 15 additions & 3 deletions scripts/install_fw_hsdualhat-12mhz.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,21 @@

# Configure latest version
FW_VERSION="v1.4.17"

# Configure beta version
FW_VERSION_BETA="v1.5.1b"

# Firmware filename
FW_FILENAME="mmdvm_hs_dual_hat_fw-12mhz.bin"

# Download latest firmware for MMDVM_HS_Hat
curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/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)
if [ ! -d "./STM32F10X_Lib/utils" ]; then
Expand Down Expand Up @@ -68,5 +80,5 @@ fi
sudo killall MMDVMHost >/dev/null 2>&1

# 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

18 changes: 15 additions & 3 deletions scripts/install_fw_hsdualhat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,21 @@

# Configure latest version
FW_VERSION="v1.4.17"

# Configure beta version
FW_VERSION_BETA="v1.5.1b"

# Firmware filename
FW_FILENAME="mmdvm_hs_dual_hat_fw.bin"

# Download latest firmware for MMDVM_HS_Hat
curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/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)
if [ ! -d "./STM32F10X_Lib/utils" ]; then
Expand Down Expand Up @@ -68,5 +80,5 @@ fi
sudo killall MMDVMHost >/dev/null 2>&1

# 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

18 changes: 15 additions & 3 deletions scripts/install_fw_hshat-12mhz.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,21 @@

# Configure latest version
FW_VERSION="v1.4.17"

# Configure beta version
FW_VERSION_BETA="v1.5.1b"

# Firmware filename
FW_FILENAME="mmdvm_hs_hat_fw-12mhz.bin"

# Download latest firmware for MMDVM_HS_Hat with 12.288 MHz TCXO
curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/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)
if [ ! -d "./STM32F10X_Lib/utils" ]; then
Expand Down Expand Up @@ -68,5 +80,5 @@ fi
sudo killall MMDVMHost >/dev/null 2>&1

# 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

18 changes: 15 additions & 3 deletions scripts/install_fw_hshat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,21 @@

# Configure latest version
FW_VERSION="v1.4.17"

# Configure beta version
FW_VERSION_BETA="v1.5.1b"

# Firmware filename
FW_FILENAME="mmdvm_hs_hat_fw.bin"

# Download latest firmware for MMDVM_HS_Hat
curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/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)
if [ ! -d "./STM32F10X_Lib/utils" ]; then
Expand Down Expand Up @@ -68,5 +80,5 @@ fi
sudo killall MMDVMHost >/dev/null 2>&1

# 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

18 changes: 15 additions & 3 deletions scripts/install_fw_librekit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,21 @@ FW_VERSION="v1.4.17"

# 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 for ZUMspot Libre Kit
curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/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)
if [ ! -d "./STM32F10X_Lib/utils" ]; then
Expand Down Expand Up @@ -76,7 +88,7 @@ sudo killall MMDVMHost >/dev/null 2>&1
eval sudo $DFU_RST $DEV_USB_SER 750

# 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 "Please RESET your ZUMspot Libre Kit !"
Expand Down
18 changes: 15 additions & 3 deletions scripts/install_fw_nanodv_npi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,21 @@

# Configure latest version
FW_VERSION="v1.4.17"

# Configure beta version
FW_VERSION_BETA="v1.5.1b"

# Firmware filename
FW_FILENAME="nanodv_npi_fw.bin"

# Download latest firmware for Nano DV
curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/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)
if [ ! -d "./STM32F10X_Lib/utils" ]; then
Expand Down Expand Up @@ -68,5 +80,5 @@ fi
sudo killall MMDVMHost >/dev/null 2>&1

# 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

Loading

0 comments on commit 98895e5

Please sign in to comment.