Skip to content

Commit b57874e

Browse files
artynetfacchinm
authored andcommitted
adding DFU mode UDEV rule for Arduino 101
1 parent 9363f16 commit b57874e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

build/linux/dist/arduino-linux-setup.sh

+15
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,19 @@ EOF
146146

147147
}
148148

149+
dfuarduino101rules (){
150+
151+
echo ""
152+
echo "# Arduino 101 in DFU Mode"
153+
echo ""
154+
155+
cat <<EOF
156+
SUBSYSTEM=="tty", ENV{ID_REVISION}=="8087", ENV{ID_MODEL_ID}=="0ab6", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1", ENV{ID_MM_CANDIDATE}="0"
157+
SUBSYSTEM=="usb", ATTR{idVendor}=="8087", ATTR{idProduct}=="0aba", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
158+
EOF
159+
160+
}
161+
149162
removemm () {
150163

151164
echo ""
@@ -196,6 +209,8 @@ else
196209

197210
dfustm32rules > $PWD/rulesgen/40-dfuse.rules
198211

212+
dfuarduino101rules > $PWD/rulesgen/99-arduino-101.rules
213+
199214
sudo mv $PWD/rulesgen/*.rules /etc/udev/rules.d/
200215

201216
rm -rf $PWD/rulesgen

0 commit comments

Comments
 (0)