Compare commits

..

13 commits

Author SHA1 Message Date
Bjoern Kerler
cef0076e1d
Merge pull request #591 from alltern/master
Some checks failed
Python application / build (push) Has been cancelled
Easier to install linux rules and confs and added blacklist qcserial as well as a libmtp blocker for the edl tool.
2024-10-12 15:09:12 +02:00
alltern
f752662edb
Update blacklist-qcserial.conf 2024-10-11 21:45:37 -04:00
alltern
fdba5b7ece
Update README.md 2024-10-09 22:48:16 -04:00
alltern
793ff4ea7a
Update install-linux-edl-drivers.sh 2024-10-09 22:37:39 -04:00
alltern
f4c4660150
Rename blacklist-qcserial to blacklist-qcserial.conf 2024-10-09 22:37:03 -04:00
alltern
0eaa6c31c7
Update README.md 2024-10-09 22:33:39 -04:00
alltern
2820a8cd91
Add files via upload 2024-10-09 22:32:05 -04:00
alltern
4a411595b4
Create blacklist-qcserial 2024-10-09 22:19:49 -04:00
alltern
4ddcfe5e67
Create 69-libmtp.rules 2024-10-09 22:18:48 -04:00
alltern
92f2a2afe7
Merge pull request #1 from alltern/alltern-patch-2
Add files via upload
2024-10-09 22:10:29 -04:00
alltern
41cabef97f
Add files via upload 2024-10-09 22:10:00 -04:00
alltern
b4c8a78ca9
Add files via upload 2024-10-09 22:06:41 -04:00
alltern
8e08afe5a0
Add files via upload
Update EDL UDEV rules.
2024-10-09 22:03:27 -04:00
5 changed files with 735 additions and 414 deletions

File diff suppressed because it is too large Load diff

42
Drivers/69-libmtp.rules Normal file
View file

@ -0,0 +1,42 @@
# UDEV-style hotplug map for libmtp
# Put this file in /etc/udev/rules.d
ACTION!="add", ACTION!="bind", GOTO="libmtp_rules_end"
ENV{MAJOR}!="?*", GOTO="libmtp_rules_end"
SUBSYSTEM=="usb", GOTO="libmtp_usb_rules"
GOTO="libmtp_rules_end"
LABEL="libmtp_usb_rules"
# If we have a hwdb entry for this device, act immediately!
ENV{ID_MTP_DEVICE}=="1", SYMLINK+="libmtp-%k", GOTO="libmtp_rules_end"
# Fall back to probing.
# Some sensitive devices we surely don't wanna probe
# Color instruments
ATTR{idVendor}=="0670", GOTO="libmtp_rules_end"
ATTR{idVendor}=="0765", GOTO="libmtp_rules_end"
ATTR{idVendor}=="085c", GOTO="libmtp_rules_end"
ATTR{idVendor}=="0971", GOTO="libmtp_rules_end"
# Canon scanners that look like MTP devices (PID 0x22nn)
ATTR{idVendor}=="04a9", ATTR{idProduct}=="22*", GOTO="libmtp_rules_end"
ATTR{idVendor}=="05c6", ATTR{idProduct}=="9008", GOTO="libmtp_rules_end"
# Canon digital camera (EOS 3D) that looks like MTP device (PID 0x3113)
ATTR{idVendor}=="04a9", ATTR{idProduct}=="3113", GOTO="libmtp_rules_end"
# Sensitive Atheros devices that look like MTP devices
ATTR{idVendor}=="0cf3", GOTO="libmtp_rules_end"
# Sensitive Atmel JTAG programmers
ATTR{idVendor}=="03eb", GOTO="libmtp_rules_end"
# Sensitive Philips device
ATTR{idVendor}=="0471", ATTR{idProduct}=="083f", GOTO="libmtp_rules_end"
# DUALi NFC readers
ATTR{idVendor}=="1db2", ATTR{idProduct}=="060*", GOTO="libmtp_rules_end"
# HP printers
ATTR{idVendor}=="03f0", ENV{ID_USB_INTERFACES}=="*:0701??:*|*:ffcc00:", GOTO="libmtp_rules_end"
# Printers
ENV{ID_USB_INTERFACES}=="*:0701??:*", GOTO="libmtp_rules_end"
# Autoprobe vendor-specific, communication and PTP devices
ENV{ID_MTP_DEVICE}!="1", ENV{MTP_NO_PROBE}!="1", ENV{COLOR_MEASUREMENT_DEVICE}!="1", ENV{ID_GPHOTO}!="1", ENV{libsane_matched}!="yes", ATTR{bDeviceClass}=="00|02|06|ef|ff", PROGRAM="/usr/lib/udev/mtp-probe /sys$env{DEVPATH} $attr{busnum} $attr{devnum}", RESULT=="1", SYMLINK+="libmtp-%k", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"
LABEL="libmtp_rules_end"

View file

@ -0,0 +1,2 @@
blacklist qcserial
blacklist cdc_acm

View file

@ -51,8 +51,8 @@ sudo apt purge ModemManager
git clone https://github.com/bkerler/edl.git
cd edl
git submodule update --init --recursive
sudo cp Drivers/51-edl.rules /etc/udev/rules.d
sudo cp Drivers/50-android.rules /etc/udev/rules.d
chmod +x ./install-linux-edl-drivers.sh
bash ./install-linux-edl-drivers.sh
python3 setup.py build
sudo python3 setup.py install
```

View file

@ -0,0 +1,13 @@
#!bin/bash
cd ./Drivers
sudo cp ./50-android.rules /etc/udev/rules.d/50-android.rules
sudo cp ./51-edl.rules /etc/udev/rules.d/51-edl.rules
sudo cp ./69-libmtp.rules /etc/udev/rules.d/69-libmtp.rules
sudo cp ./blacklist-qcserial.conf /etc/modprobe.d/blacklist-qcserial.conf
sudo udevadm control --reload-rules
sudo udevadm trigger
echo "Now rebuild your initramfs and reboot."