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
This commit is contained in:
parent
61b64bb82a
commit
19b70b2737
@ -23,7 +23,7 @@ Zadig will automatically detect the bootloader device. You may sometimes need to
|
|||||||
|
|
||||||
!> If Zadig lists one or more devices with the `HidUsb` driver, your keyboard is probably not in bootloader mode. The arrow will be colored orange and you will be asked to confirm modifying a system driver. **Do not** proceed if this is the case!
|
!> If Zadig lists one or more devices with the `HidUsb` driver, your keyboard is probably not in bootloader mode. The arrow will be colored orange and you will be asked to confirm modifying a system driver. **Do not** proceed if this is the case!
|
||||||
|
|
||||||
If the arrow appears green, select the driver, and click **Install Driver**. The `libusb-win32` driver will usually work for AVR, and `WinUSB` for ARM, but if you still cannot flash the board, try installing a different driver from the list. For flashing a USBaspLoader device via command line with msys2, the `libusbk` driver is recommended, otherwise `libusb-win32` will work fine if you are using QMK Toolbox for flashing.
|
If the arrow appears green, select the driver, and click **Install Driver**. The `libusb-win32` driver will usually work for AVR, and `WinUSB` for ARM, but if you still cannot flash the board, try installing a different driver from the list. USBAspLoader devices must use the `libusbK` driver.
|
||||||
|
|
||||||
![Zadig with a bootloader driver correctly installed](https://i.imgur.com/b8VgXzx.png)
|
![Zadig with a bootloader driver correctly installed](https://i.imgur.com/b8VgXzx.png)
|
||||||
|
|
||||||
|
@ -5,7 +5,6 @@ function export_variables {
|
|||||||
export PATH=$PATH:$util_dir
|
export PATH=$PATH:$util_dir
|
||||||
export PATH=$PATH:$util_dir/dfu-programmer
|
export PATH=$PATH:$util_dir/dfu-programmer
|
||||||
export PATH=$PATH:$util_dir/dfu-util-0.9-win64
|
export PATH=$PATH:$util_dir/dfu-util-0.9-win64
|
||||||
export PATH=$PATH:$util_dir/bootloadHID.2012-12-08/commandline
|
|
||||||
export PATH=$PATH:$util_dir/avr8-gnu-toolchain/bin
|
export PATH=$PATH:$util_dir/avr8-gnu-toolchain/bin
|
||||||
export PATH=$PATH:$util_dir/gcc-arm-none-eabi/bin
|
export PATH=$PATH:$util_dir/gcc-arm-none-eabi/bin
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,6 @@ function export_variables {
|
|||||||
export DFU_PROGRAMMER=$download_dir/dfu-programmer/dfu-programmer.exe
|
export DFU_PROGRAMMER=$download_dir/dfu-programmer/dfu-programmer.exe
|
||||||
export DFU_UTIL=$download_dir/dfu-util-0.9-win64/dfu-util.exe
|
export DFU_UTIL=$download_dir/dfu-util-0.9-win64/dfu-util.exe
|
||||||
export TEENSY_LOADER_CLI=$download_dir/teensy_loader_cli.exe
|
export TEENSY_LOADER_CLI=$download_dir/teensy_loader_cli.exe
|
||||||
export BOOTLOADHID_PROGRAMMER=$download_dir/bootloadHID.2012-12-08/commandline/bootloadHID.exe
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export_variables
|
export_variables
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# Driver can be one of winusb,libusb,libusbk
|
# Driver can be one of winusb,libusb,libusbk
|
||||||
# Use Windows Powershell and type [guid]::NewGuid() to generate guids
|
# Use Windows Powershell and type [guid]::NewGuid() to generate guids
|
||||||
winusb,STM32 Bootloader,0483,DF11,6d98a87f-4ecf-464d-89ed-8c684d857a75
|
winusb,STM32 Bootloader,0483,DF11,6d98a87f-4ecf-464d-89ed-8c684d857a75
|
||||||
libusb,USBaspLoader,16C0,05DC,e69affdc-0ef0-427c-aefb-4e593c9d2724
|
libusbk,USBaspLoader,16C0,05DC,e69affdc-0ef0-427c-aefb-4e593c9d2724
|
||||||
winusb,Kiibohd DFU Bootloader,1C11,B007,aa5a3f86-b81e-4416-89ad-0c1ea1ed63af
|
winusb,Kiibohd DFU Bootloader,1C11,B007,aa5a3f86-b81e-4416-89ad-0c1ea1ed63af
|
||||||
libusb,ATmega16U2,03EB,2FEF,007274da-b75f-492e-a288-8fc0aff8339f
|
libusb,ATmega16U2,03EB,2FEF,007274da-b75f-492e-a288-8fc0aff8339f
|
||||||
libusb,ATmega32U2,03EB,2FF0,ddc2c572-cb6e-4f61-a6cc-1a5de941f063
|
libusb,ATmega32U2,03EB,2FF0,ddc2c572-cb6e-4f61-a6cc-1a5de941f063
|
||||||
|
@ -20,10 +20,7 @@ function install_avr {
|
|||||||
rm avr8-gnu-toolchain/bin/make.exe
|
rm avr8-gnu-toolchain/bin/make.exe
|
||||||
rm avr-gcc-8.3.0-x86-mingw.zip
|
rm avr-gcc-8.3.0-x86-mingw.zip
|
||||||
|
|
||||||
# FIXME: As of 2020-05-19, the MSYS2 avrdude cannot flash USBaspLoader devices, for some reason
|
pacman --needed --disable-download-timeout -S mingw-w64-x86_64-avrdude mingw-w64-x86_64-bootloadhid
|
||||||
# (warning: cannot set sck period)
|
|
||||||
# However, the avr-gcc toolchain above contains an avrdude which can, so let's just not install this for now
|
|
||||||
#pacman --needed --disable-download-timeout -S mingw-w64-x86_64-avrdude
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function install_arm {
|
function install_arm {
|
||||||
|
@ -18,10 +18,6 @@ function install_utils {
|
|||||||
wget 'https://www.pjrc.com/teensy/teensy_loader_cli_windows.zip'
|
wget 'https://www.pjrc.com/teensy/teensy_loader_cli_windows.zip'
|
||||||
unzip teensy_loader_cli_windows.zip
|
unzip teensy_loader_cli_windows.zip
|
||||||
|
|
||||||
echo "Installing bootloadHID"
|
|
||||||
wget 'https://www.obdev.at/downloads/vusb/bootloadHID.2012-12-08.zip'
|
|
||||||
unzip bootloadHID.2012-12-08.zip
|
|
||||||
|
|
||||||
echo "Downloading the QMK driver installer"
|
echo "Downloading the QMK driver installer"
|
||||||
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 -
|
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 -
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user