diff options
author | Ryan <fauxpark@gmail.com> | 2020-07-17 03:01:34 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-16 18:01:34 +0100 |
commit | 19b70b2737517b08beebe28ad5b2d084c9f59bf3 (patch) | |
tree | 43aaf61f0b6de6a1c4b23a6297ae4d7c94726628 /util | |
parent | 61b64bb82a93c6d1441f07655a5e20b59a15fd29 (diff) | |
download | qmk_firmware-19b70b2737517b08beebe28ad5b2d084c9f59bf3.tar.gz qmk_firmware-19b70b2737517b08beebe28ad5b2d084c9f59bf3.zip |
MSYS2: Switch to bootloadHID package and bring back avrdude package (#9736)
* MSYS2: Switch to bootloadHID package and bring back avrdude package
* Update Zadig docs as well
Diffstat (limited to 'util')
-rwxr-xr-x | util/activate_msys2.sh | 1 | ||||
-rwxr-xr-x | util/activate_wsl.sh | 1 | ||||
-rw-r--r-- | util/drivers.txt | 2 | ||||
-rwxr-xr-x | util/msys2_install.sh | 5 | ||||
-rwxr-xr-x | util/win_shared_install.sh | 4 |
5 files changed, 2 insertions, 11 deletions
diff --git a/util/activate_msys2.sh b/util/activate_msys2.sh index 8741cc6b0..f6e19f99d 100755 --- a/util/activate_msys2.sh +++ b/util/activate_msys2.sh | |||
@@ -5,7 +5,6 @@ function export_variables { | |||
5 | export PATH=$PATH:$util_dir | 5 | export PATH=$PATH:$util_dir |
6 | export PATH=$PATH:$util_dir/dfu-programmer | 6 | export PATH=$PATH:$util_dir/dfu-programmer |
7 | export PATH=$PATH:$util_dir/dfu-util-0.9-win64 | 7 | export PATH=$PATH:$util_dir/dfu-util-0.9-win64 |
8 | export PATH=$PATH:$util_dir/bootloadHID.2012-12-08/commandline | ||
9 | export PATH=$PATH:$util_dir/avr8-gnu-toolchain/bin | 8 | export PATH=$PATH:$util_dir/avr8-gnu-toolchain/bin |
10 | export PATH=$PATH:$util_dir/gcc-arm-none-eabi/bin | 9 | export PATH=$PATH:$util_dir/gcc-arm-none-eabi/bin |
11 | } | 10 | } |
diff --git a/util/activate_wsl.sh b/util/activate_wsl.sh index 26a47187a..7f6f54731 100755 --- a/util/activate_wsl.sh +++ b/util/activate_wsl.sh | |||
@@ -7,7 +7,6 @@ function export_variables { | |||
7 | export DFU_PROGRAMMER=$download_dir/dfu-programmer/dfu-programmer.exe | 7 | export DFU_PROGRAMMER=$download_dir/dfu-programmer/dfu-programmer.exe |
8 | export DFU_UTIL=$download_dir/dfu-util-0.9-win64/dfu-util.exe | 8 | export DFU_UTIL=$download_dir/dfu-util-0.9-win64/dfu-util.exe |
9 | export TEENSY_LOADER_CLI=$download_dir/teensy_loader_cli.exe | 9 | export TEENSY_LOADER_CLI=$download_dir/teensy_loader_cli.exe |
10 | export BOOTLOADHID_PROGRAMMER=$download_dir/bootloadHID.2012-12-08/commandline/bootloadHID.exe | ||
11 | } | 10 | } |
12 | 11 | ||
13 | export_variables | 12 | export_variables |
diff --git a/util/drivers.txt b/util/drivers.txt index 71d99eaa9..c3c5e286b 100644 --- a/util/drivers.txt +++ b/util/drivers.txt | |||
@@ -4,7 +4,7 @@ | |||
4 | # Driver can be one of winusb,libusb,libusbk | 4 | # Driver can be one of winusb,libusb,libusbk |
5 | # Use Windows Powershell and type [guid]::NewGuid() to generate guids | 5 | # Use Windows Powershell and type [guid]::NewGuid() to generate guids |
6 | winusb,STM32 Bootloader,0483,DF11,6d98a87f-4ecf-464d-89ed-8c684d857a75 | 6 | winusb,STM32 Bootloader,0483,DF11,6d98a87f-4ecf-464d-89ed-8c684d857a75 |
7 | libusb,USBaspLoader,16C0,05DC,e69affdc-0ef0-427c-aefb-4e593c9d2724 | 7 | libusbk,USBaspLoader,16C0,05DC,e69affdc-0ef0-427c-aefb-4e593c9d2724 |
8 | winusb,Kiibohd DFU Bootloader,1C11,B007,aa5a3f86-b81e-4416-89ad-0c1ea1ed63af | 8 | winusb,Kiibohd DFU Bootloader,1C11,B007,aa5a3f86-b81e-4416-89ad-0c1ea1ed63af |
9 | libusb,ATmega16U2,03EB,2FEF,007274da-b75f-492e-a288-8fc0aff8339f | 9 | libusb,ATmega16U2,03EB,2FEF,007274da-b75f-492e-a288-8fc0aff8339f |
10 | libusb,ATmega32U2,03EB,2FF0,ddc2c572-cb6e-4f61-a6cc-1a5de941f063 | 10 | libusb,ATmega32U2,03EB,2FF0,ddc2c572-cb6e-4f61-a6cc-1a5de941f063 |
diff --git a/util/msys2_install.sh b/util/msys2_install.sh index 41200dc78..1b50bba70 100755 --- a/util/msys2_install.sh +++ b/util/msys2_install.sh | |||
@@ -20,10 +20,7 @@ function install_avr { | |||
20 | rm avr8-gnu-toolchain/bin/make.exe | 20 | rm avr8-gnu-toolchain/bin/make.exe |
21 | rm avr-gcc-8.3.0-x86-mingw.zip | 21 | rm avr-gcc-8.3.0-x86-mingw.zip |
22 | 22 | ||
23 | # FIXME: As of 2020-05-19, the MSYS2 avrdude cannot flash USBaspLoader devices, for some reason | 23 | pacman --needed --disable-download-timeout -S mingw-w64-x86_64-avrdude mingw-w64-x86_64-bootloadhid |
24 | # (warning: cannot set sck period) | ||
25 | # However, the avr-gcc toolchain above contains an avrdude which can, so let's just not install this for now | ||
26 | #pacman --needed --disable-download-timeout -S mingw-w64-x86_64-avrdude | ||
27 | } | 24 | } |
28 | 25 | ||
29 | function install_arm { | 26 | function install_arm { |
diff --git a/util/win_shared_install.sh b/util/win_shared_install.sh index 072ca47c8..17282bc94 100755 --- a/util/win_shared_install.sh +++ b/util/win_shared_install.sh | |||
@@ -18,10 +18,6 @@ function install_utils { | |||
18 | wget 'https://www.pjrc.com/teensy/teensy_loader_cli_windows.zip' | 18 | wget 'https://www.pjrc.com/teensy/teensy_loader_cli_windows.zip' |
19 | unzip teensy_loader_cli_windows.zip | 19 | unzip teensy_loader_cli_windows.zip |
20 | 20 | ||
21 | echo "Installing bootloadHID" | ||
22 | wget 'https://www.obdev.at/downloads/vusb/bootloadHID.2012-12-08.zip' | ||
23 | unzip bootloadHID.2012-12-08.zip | ||
24 | |||
25 | echo "Downloading the QMK driver installer" | 21 | echo "Downloading the QMK driver installer" |
26 | wget -qO- https://api.github.com/repos/qmk/qmk_driver_installer/releases | grep browser_download_url | head -n 1 | cut -d '"' -f 4 | wget -i - | 22 | wget -qO- https://api.github.com/repos/qmk/qmk_driver_installer/releases | grep browser_download_url | head -n 1 | cut -d '"' -f 4 | wget -i - |
27 | 23 | ||