aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/faq_build.md8
-rw-r--r--docs/flashing_bootloadhid.md2
-rwxr-xr-xutil/activate_msys2.sh1
-rwxr-xr-xutil/activate_wsl.sh1
-rwxr-xr-xutil/linux_install.sh18
-rwxr-xr-xutil/macos_install.sh2
-rwxr-xr-xutil/win_shared_install.sh4
7 files changed, 34 insertions, 2 deletions
diff --git a/docs/faq_build.md b/docs/faq_build.md
index f11cb76aa..023eab01f 100644
--- a/docs/faq_build.md
+++ b/docs/faq_build.md
@@ -47,7 +47,7 @@ SUBSYSTEMS=="usb", ATTRS{idVendor}=="feed", MODE:="0666"
47SUBSYSTEMS=="usb", ATTRS{idVendor}=="1c11", MODE:="0666" 47SUBSYSTEMS=="usb", ATTRS{idVendor}=="1c11", MODE:="0666"
48``` 48```
49 49
50**/etc/udev/rules.d/55-catalina.rules:** 50**/etc/udev/rules.d/55-caterina.rules:**
51``` 51```
52# ModemManager should ignore the following devices 52# ModemManager should ignore the following devices
53ATTRS{idVendor}=="2a03", ENV{ID_MM_DEVICE_IGNORE}="1" 53ATTRS{idVendor}=="2a03", ENV{ID_MM_DEVICE_IGNORE}="1"
@@ -69,6 +69,12 @@ SUBSYSTEMS=="usb", ATTRS{idVendor}=="1eaf", ATTRS{idProduct}=="0003", MODE:="066
69SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE:="0666" 69SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE:="0666"
70``` 70```
71 71
72**/etc/udev/rules.d/57-bootloadhid.rules:**
73```
74# bootloadHID
75SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="05df", MODE:="0666"
76```
77
72### Serial device is not detected in bootloader mode on Linux 78### Serial device is not detected in bootloader mode on Linux
73Make sure your kernel has appropriate support for your device. If your device uses USB ACM, such as 79Make sure your kernel has appropriate support for your device. If your device uses USB ACM, such as
74Pro Micro (Atmega32u4), make sure to include `CONFIG_USB_ACM=y`. Other devices may require `USB_SERIAL` and any of its sub options. 80Pro Micro (Atmega32u4), make sure to include `CONFIG_USB_ACM=y`. Other devices may require `USB_SERIAL` and any of its sub options.
diff --git a/docs/flashing_bootloadhid.md b/docs/flashing_bootloadhid.md
index c51d8ce4b..731d92772 100644
--- a/docs/flashing_bootloadhid.md
+++ b/docs/flashing_bootloadhid.md
@@ -13,7 +13,7 @@ General flashing sequence:
13 13
14## bootloadHID Flashing Target 14## bootloadHID Flashing Target
15 15
16Using the QMK installation script, detailed [here](newbs_getting_started.md), the required bootloadHID tools should be automatically installed. 16?> Using the QMK installation script, detailed [here](newbs_getting_started.md), the required bootloadHID tools should be automatically installed.
17 17
18To flash via the command line, use the target `:bootloadHID` by executing the following command: 18To flash via the command line, use the target `:bootloadHID` by executing the following command:
19 19
diff --git a/util/activate_msys2.sh b/util/activate_msys2.sh
index 1ddffbaad..85d645e6d 100755
--- a/util/activate_msys2.sh
+++ b/util/activate_msys2.sh
@@ -5,6 +5,7 @@ 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
8 export PATH=$PATH:$util_dir/flip/bin 9 export PATH=$PATH:$util_dir/flip/bin
9 export PATH=$PATH:$util_dir/avr8-gnu-toolchain/bin 10 export PATH=$PATH:$util_dir/avr8-gnu-toolchain/bin
10 export PATH=$PATH:$util_dir/gcc-arm-none-eabi/bin 11 export PATH=$PATH:$util_dir/gcc-arm-none-eabi/bin
diff --git a/util/activate_wsl.sh b/util/activate_wsl.sh
index e2312b56d..cd88d2b65 100755
--- a/util/activate_wsl.sh
+++ b/util/activate_wsl.sh
@@ -7,6 +7,7 @@ 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
10 export BATCHISP=batchisp.exe 11 export BATCHISP=batchisp.exe
11} 12}
12 13
diff --git a/util/linux_install.sh b/util/linux_install.sh
index c54a80623..100a14a51 100755
--- a/util/linux_install.sh
+++ b/util/linux_install.sh
@@ -10,6 +10,17 @@ SOLUS_INFO="Your tools are now installed. To start using them, open new terminal
10 10
11util_dir=$(dirname "$0") 11util_dir=$(dirname "$0")
12 12
13# For those distros that do not package bootloadHID
14install_bootloadhid() {
15 wget https://www.obdev.at/downloads/vusb/bootloadHID.2012-12-08.tar.gz -O - | tar -xz -C /tmp
16 cd /tmp/bootloadHID.2012-12-08/commandline/
17 make
18 if [ $? == 0 ]; then
19 sudo cp bootloadHID /usr/local/bin
20 fi
21 cd -
22}
23
13if grep ID /etc/os-release | grep -qE "fedora"; then 24if grep ID /etc/os-release | grep -qE "fedora"; then
14 sudo dnf install \ 25 sudo dnf install \
15 arm-none-eabi-binutils-cs \ 26 arm-none-eabi-binutils-cs \
@@ -28,6 +39,7 @@ if grep ID /etc/os-release | grep -qE "fedora"; then
28 glibc-headers \ 39 glibc-headers \
29 kernel-devel \ 40 kernel-devel \
30 kernel-headers \ 41 kernel-headers \
42 libusb-devel \
31 make \ 43 make \
32 perl \ 44 perl \
33 python3 \ 45 python3 \
@@ -54,6 +66,7 @@ elif grep ID /etc/os-release | grep -qE 'debian|ubuntu'; then
54 gcc-avr \ 66 gcc-avr \
55 git \ 67 git \
56 libnewlib-arm-none-eabi \ 68 libnewlib-arm-none-eabi \
69 libusb-dev \
57 python3 \ 70 python3 \
58 unzip \ 71 unzip \
59 wget \ 72 wget \
@@ -70,12 +83,14 @@ elif grep ID /etc/os-release | grep -q 'arch\|manjaro'; then
70 avr-libc \ 83 avr-libc \
71 avr-gcc \ 84 avr-gcc \
72 base-devel \ 85 base-devel \
86 bootloadhid \
73 clang \ 87 clang \
74 dfu-programmer \ 88 dfu-programmer \
75 dfu-util \ 89 dfu-util \
76 diffutils \ 90 diffutils \
77 gcc \ 91 gcc \
78 git \ 92 git \
93 libusb-compat \
79 python \ 94 python \
80 python-pip \ 95 python-pip \
81 unzip \ 96 unzip \
@@ -138,6 +153,7 @@ elif grep ID /etc/os-release | grep -qE "opensuse|tumbleweed"; then
138 dfu-tool \ 153 dfu-tool \
139 dfu-programmer \ 154 dfu-programmer \
140 gcc \ 155 gcc \
156 libusb-devel \
141 python3 \ 157 python3 \
142 unzip \ 158 unzip \
143 wget \ 159 wget \
@@ -177,6 +193,7 @@ elif grep ID /etc/os-release | grep -q solus; then
177 avrdude \ 193 avrdude \
178 dfu-util \ 194 dfu-util \
179 dfu-programmer \ 195 dfu-programmer \
196 libusb-devel \
180 python3 \ 197 python3 \
181 git \ 198 git \
182 wget \ 199 wget \
@@ -214,4 +231,5 @@ else
214fi 231fi
215 232
216# Global install tasks 233# Global install tasks
234install_bootloadhid
217pip3 install --user -r ${util_dir}/../requirements.txt 235pip3 install --user -r ${util_dir}/../requirements.txt
diff --git a/util/macos_install.sh b/util/macos_install.sh
index f993003f0..76ec3355b 100755
--- a/util/macos_install.sh
+++ b/util/macos_install.sh
@@ -25,5 +25,7 @@ brew tap osx-cross/avr
25brew tap osx-cross/arm 25brew tap osx-cross/arm
26brew update 26brew update
27brew install avr-gcc@8 arm-gcc-bin dfu-programmer avrdude clang-format dfu-util python3 27brew install avr-gcc@8 arm-gcc-bin dfu-programmer avrdude clang-format dfu-util python3
28brew install --HEAD https://raw.githubusercontent.com/robertgzr/homebrew-tap/master/bootloadhid.rb
28brew link --force avr-gcc@8 29brew link --force avr-gcc@8
30
29pip3 install -r "${util_dir}/../requirements.txt" 31pip3 install -r "${util_dir}/../requirements.txt"
diff --git a/util/win_shared_install.sh b/util/win_shared_install.sh
index f8fc9308f..7ad000bfc 100755
--- a/util/win_shared_install.sh
+++ b/util/win_shared_install.sh
@@ -18,6 +18,10 @@ 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
21 echo "Installing Atmel Flip" 25 echo "Installing Atmel Flip"
22 wget 'http://ww1.microchip.com/downloads/en/DeviceDoc/Flip%20Installer%20-%203.4.7.112.exe' 26 wget 'http://ww1.microchip.com/downloads/en/DeviceDoc/Flip%20Installer%20-%203.4.7.112.exe'
23 mv Flip\ Installer\ \-\ 3.4.7.112.exe FlipInstaller.exe 27 mv Flip\ Installer\ \-\ 3.4.7.112.exe FlipInstaller.exe