Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED]Arduino 1.8.16 Permission denied

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
User avatar
whynot
Posts: 47
Joined: 2021-10-01 06:17
Has thanked: 13 times

[SOLVED]Arduino 1.8.16 Permission denied

#1 Post by whynot »

Hi Everyone
I have an issue installing Arduino 1.8.16. I did everything just like this Website "Installing Arduino IDE from the Official Website:"
https://linuxhint.com/install_arduino_ide_debian_10/
But I still have

Code: Select all

avrdude: Warning: cannot open USB device: Permission denied
this error
Last edited by whynot on 2021-10-18 10:15, edited 1 time in total.

User avatar
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

Re: Arduino 1.8.16 Permission denied

#2 Post by pylkko »

Over the years there have been many issues with Arduino on Linux (mainly because people instsall it from the site and not a repo, or the repo versions are horribly out of date). These are minor issues but have had difference resolutions in different setups and distributions. I believe that sometimes the issues is the user not being in the dialout group. So you need to manually add this. Another issues has been that at times Modem Manager, or some other software tries to take a hold of the USB-serial devices and you need to add to udev a rule that black lists the arduino device so that it is left alone.

EDIT: actually, they have put some notes about this on their page:
https://playground.arduino.cc/Linux/All/

User avatar
@ttila
Posts: 139
Joined: 2017-12-13 16:57
Has thanked: 2 times
Been thanked: 14 times

Re: Arduino 1.8.16 Permission denied

#3 Post by @ttila »

whynot wrote: 2021-10-04 11:26 Hi Everyone
I have an issue installing Arduino 1.8.16. I did everything just like this Website "Installing Arduino IDE from the Official Website:"
https://linuxhint.com/install_arduino_ide_debian_10/
But I still have

Code: Select all

avrdude: Warning: cannot open USB device: Permission denied
this error
Hi. I'm using with Bookworm Arduino-ide 2.0.0 beta11 without issues, just unzip and launch it. It is perfectly stable with the Raspberry Pi pico 2040 and Arduino Nano RP2040 support.

User avatar
craigevil
Posts: 5391
Joined: 2006-09-17 03:17
Location: heaven
Has thanked: 28 times
Been thanked: 39 times

Re: Arduino 1.8.16 Permission denied

#4 Post by craigevil »

I just download it, extract, then run the install script using sudo.
Works great.
Raspberry PI 400 Distro: Raspberry Pi OS Base: Debian Sid Kernel: 5.15.69-v8+ aarch64 DE: MATE Ram 4GB
Debian - "If you can't apt install something, it isn't useful or doesn't exist"
My Giant Sources.list

kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Re: Arduino 1.8.16 Permission denied

#5 Post by kedaha »

How about the bullseye-backports/arduino 2:1.8.16 version?
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

User avatar
@ttila
Posts: 139
Joined: 2017-12-13 16:57
Has thanked: 2 times
Been thanked: 14 times

Re: Arduino 1.8.16 Permission denied

#6 Post by @ttila »

craigevil wrote: 2021-10-04 19:26 I just download it, extract, then run the install script using sudo.
Works great.
You can run the arduino-ide binary file directly without install with the script.

User avatar
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

Re: Arduino 1.8.16 Permission denied

#7 Post by pylkko »

If I remember correct, the shell script just makes a desktop icon.
Also, IIRC you cannot have both verison 1 and 2 installed at the same time.

User avatar
whynot
Posts: 47
Joined: 2021-10-01 06:17
Has thanked: 13 times

Re: Arduino 1.8.16 Permission denied

#8 Post by whynot »

https://github.com/arduino/arduino-ide/ ... .0-beta.11
why do we need --no-sandbox parameter

Code: Select all

~/Downloads/arduino-ide_2.0.0-beta.11_Linux_64bit$ sudo ./arduino-ide 
[6704:1007/163808.917406:FATAL:electron_main_delegate.cc(254)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
and same error

Code: Select all

Compilation complete.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00

How could we add bullseye-backports

Code: Select all

$ sudo cat /etc/apt/sources.list
deb http://deb.debian.org/debian/ bullseye main non-free contrib
deb-src http://deb.debian.org/debian/ bullseye main non-free contrib

deb http://security.debian.org/debian-security bullseye-security main non-free contrib
deb-src http://security.debian.org/debian-security bullseye-security main non-free contrib

# bullseye-updates, to get updates before a point release is made;
# see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports
deb http://deb.debian.org/debian/ bullseye-updates main non-free contrib
deb-src http://deb.debian.org/debian/ bullseye-updates main non-free contrib
If I try to add this line I get errors
deb http://deb.debian.org/debian bullseye-backports main contrib non-free

Code: Select all

....
...
W: Target DEP-11-icons (non-free/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:23 and /etc/apt/sources.list.d/bullseye-backports.list:2

User avatar
@ttila
Posts: 139
Joined: 2017-12-13 16:57
Has thanked: 2 times
Been thanked: 14 times

Re: Arduino 1.8.16 Permission denied

#9 Post by @ttila »

whynot wrote: 2021-10-07 15:05 https://github.com/arduino/arduino-ide/ ... .0-beta.11
why do we need --no-sandbox parameter

Code: Select all

~/Downloads/arduino-ide_2.0.0-beta.11_Linux_64bit$ sudo ./arduino-ide 
[6704:1007/163808.917406:FATAL:electron_main_delegate.cc(254)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
and same error
Why do you use it as root??

Code: Select all

Compilation complete.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00

Code: Select all

Sketch uses 5610 bytes (2%) of program storage space. Maximum is 253952 bytes.
Global variables use 324 bytes (3%) of dynamic memory, leaving 7868 bytes for local variables. Maximum is 8192 bytes.

--------------------------
Compilation complete.

--------------------------
upload complete.

Disconnect and reconnect to the usb port, now rechoosing /dev/ttyUSB0 instead of /dev/ttyS0

User avatar
whynot
Posts: 47
Joined: 2021-10-01 06:17
Has thanked: 13 times

Re: Arduino 1.8.16 Permission denied

#10 Post by whynot »

@ttila wrote: 2021-10-08 14:27
whynot wrote: 2021-10-07 15:05 https://github.com/arduino/arduino-ide/ ... .0-beta.11
why do we need --no-sandbox parameter

Code: Select all

~/Downloads/arduino-ide_2.0.0-beta.11_Linux_64bit$ sudo ./arduino-ide 
[6704:1007/163808.917406:FATAL:electron_main_delegate.cc(254)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
and same error
Why do you use it as root??

Code: Select all

Compilation complete.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00

Code: Select all

Sketch uses 5610 bytes (2%) of program storage space. Maximum is 253952 bytes.
Global variables use 324 bytes (3%) of dynamic memory, leaving 7868 bytes for local variables. Maximum is 8192 bytes.

--------------------------
Compilation complete.

--------------------------
upload complete.

Disconnect and reconnect to the usb port, now rechoosing /dev/ttyUSB0 instead of /dev/ttyS0
I ask myself same thing. Because with normal I couldn't make it work.And I thought I need a root privilege for udev service.I think I messed up.And some file attributes are changed :(

Code: Select all

whynot@Whynot:/etc/udev/rules.d$ ls -l /dev/ttyACM*
crw-rw---- 1 whynot dialout 166, 1 Oct  8 16:15 /dev/ttyACM1
whynot@Whynot:/etc/udev/rules.d$ ls -l /dev/ttyUSB*
crw-rw---- 1 whynot dialout 188, 0 Oct  8 16:16 /dev/ttyUSB0
lrwxrwxrwx 1 root root        15 Oct  8 16:16 /dev/ttyUSB1 -> bus/usb/004/008

Code: Select all

$ ls -l /etc/udev/rules.d/
total 20
-rw-r--r-- 1 root root  293 Oct  8 14:50 40-dfuse.rules
-rw-r--r-- 1 root root  170 Oct  8 14:50 90-extraacl.rules
-rw-r--r-- 1 root root  327 Oct  8 14:50 98-openocd.rules
-rw-r--r-- 1 root root 1398 Oct  8 16:10 99-arduino.rules
-rw-r--r-- 1 root root  416 Oct  8 14:50 avrisp.rules

Code: Select all

$ cat /etc/udev/rules.d/99-arduino.rules
# Arduino 101 in DFU Mode

SUBSYSTEM=="tty", ENV{ID_REVISION}=="8087", ENV{ID_MODEL_ID}=="0ab6", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1", ENV{ID_MM_CANDIDATE}="0"
SUBSYSTEM=="usb", ATTR{idVendor}=="8087", ATTR{idProduct}=="0aba", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"


# Arduino Mega 2560  Bus 001 Device 006: ID 2341:0010 Arduino SA Mega 2560 (CDC ACM)
# Arduino UNO Bus 001 Device 004: ID 2341:0043 Arduino SA Uno R3 (CDC ACM)
SUBSYSTEMS=="usb", ATTRS{idProduct}=="0043", ATTRS{idVendor}=="2341", SYMLINK+="ttyACM%n"
SUBSYSTEMS=="usb", ATTRS{idProduct}=="0010", ATTRS{idVendor}=="2341", SYMLINK+="ttyACM%n"

# FTI232  Bus 004 Device 003: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC
SUBSYSTEMS=="usb", ATTRS{idProduct}=="6001", ATTRS{idVendor}=="0403", SYMLINK+="ttyUSB%n" 


# CH350 Bus 004 Device 004: ID 1a86:7523 QinHeng Electronics CH340 serial converter
SUBSYSTEMS=="usb", ATTRS{idProduct}=="7523", ATTRS{idVendor}=="1a86", SYMLINK+="ttyUSB%n" 

# USBASP Bus 004 Device 005: ID 16c0:05dc Van Ooijen Technische Informatica shared ID for use with libusb
#SUBSYSTEMS=="usb", ATTRS{idProduct}=="05dc", ATTRS{idVendor}=="16c0", SYMLINK+="ttyUSB%n" 
# USBasp - USB programmer for Atmel AVR controllers
# Copy this file to /etc/udev/rules.d so

SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", SYSFS{idVendor}=="16c0", SYSFS{idProduct}=="05dc", MODE="0666"

Code: Select all

cat /etc/udev/rules.d/avrisp.rules 

# Adding AVRisp UDEV rules

SUBSYSTEM!="usb_device", ACTION!="add", GOTO="avrisp_end"
# Atmel Corp. JTAG ICE mkII
ATTR{idVendor}=="03eb", ATTRS{idProduct}=="2103", MODE="660", GROUP="dialout"
# Atmel Corp. AVRISP mkII
ATTR{idVendor}=="03eb", ATTRS{idProduct}=="2104", MODE="660", GROUP="dialout"
# Atmel Corp. Dragon
ATTR{idVendor}=="03eb", ATTRS{idProduct}=="2107", MODE="660", GROUP="dialout"

LABEL="avrisp_end"

Code: Select all

$ cat /etc/udev/rules.d/90-extraacl.rules 

# Setting serial port rules

KERNEL=="ttyUSB[0-9]*", TAG+="udev-acl", TAG+="uaccess", OWNER="whynot"
KERNEL=="ttyACM[0-9]*", TAG+="udev-acl", TAG+="uaccess", OWNER="whynot"

Actually I like old installation method but this time both ubuntu and debian didn't worked.

Code: Select all

$ sudo tar xvJf arduino-1.8.16-linux64.tar.xz -C /opt
$ sudo -E /opt/arduino-1.8.16/install.sh
....
...
..


$ ./arduino-linux-setup.sh whynot

******* Add User to dialout,tty, uucp, plugdev groups *******

groupadd: group 'plugdev' already exists
groupadd: group 'dialout' already exists

******* Removing modem manager *******

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libjim0.79 libmbim-glib4 libmbim-proxy libqmi-glib5 libqmi-proxy usb-modeswitch
  usb-modeswitch-data
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  modemmanager
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 4,598 kB disk space will be freed.
(Reading database ... 293285 files and directories currently installed.)
Removing modemmanager (1.14.12-0.2) ...
Created symlink /run/systemd/system/ModemManager.service → /dev/null.
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for dbus (1.12.20-2) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...

Restarting udev


*********** Please Reboot your system ************

User avatar
@ttila
Posts: 139
Joined: 2017-12-13 16:57
Has thanked: 2 times
Been thanked: 14 times

Re: Arduino 1.8.16 Permission denied

#11 Post by @ttila »

I setted up my arduino enviroment quite simply:
  • unzipped the sw without launching the install script;
  • make a rule for udev like this:

    Code: Select all

    SUBSYSTEM=="usb", ATTR{idVendor}=="1a86", ATTR{idProduct}=="7523", MODE="0666", GROUP="plugdev", SYMLINK+="arduino arduino_mega"
I do not need root to work.

User avatar
whynot
Posts: 47
Joined: 2021-10-01 06:17
Has thanked: 13 times

Re: Arduino 1.8.16 Permission denied

#12 Post by whynot »

Code: Select all

$ cat /etc/udev/rules.d/99-arduino.rules 
# Arduino 101 in DFU Mode

SUBSYSTEM=="tty", ENV{ID_REVISION}=="8087", ENV{ID_MODEL_ID}=="0ab6", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1", ENV{ID_MM_CANDIDATE}="0"
SUBSYSTEM=="usb", ATTR{idVendor}=="8087", ATTR{idProduct}=="0aba", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"


# Arduino Mega 2560  Bus 001 Device 006: ID 2341:0010 Arduino SA Mega 2560 (CDC ACM)
# Arduino UNO Bus 001 Device 004: ID 2341:0043 Arduino SA Uno R3 (CDC ACM)
SUBSYSTEMS=="usb", ATTRS{idProduct}=="0043", ATTRS{idVendor}=="2341", SYMLINK+="ttyACM%n"
SUBSYSTEMS=="usb", ATTRS{idProduct}=="0010", ATTRS{idVendor}=="2341", SYMLINK+="ttyACM%n"

# FTI232  Bus 004 Device 003: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC
SUBSYSTEMS=="usb", ATTRS{idProduct}=="6001", ATTRS{idVendor}=="0403", SYMLINK+="ttyUSB%n" 


# CH350 Bus 004 Device 004: ID 1a86:7523 QinHeng Electronics CH340 serial converter
SUBSYSTEMS=="usb", ATTRS{idProduct}=="7523", ATTRS{idVendor}=="1a86", SYMLINK+="ttyUSB%n" 

# USBASP Bus 004 Device 005: ID 16c0:05dc Van Ooijen Technische Informatica shared ID for use with libusb
#SUBSYSTEMS=="usb", ATTRS{idProduct}=="05dc", ATTRS{idVendor}=="16c0", SYMLINK+="ttyUSB%n" 
# USBasp - USB programmer for Atmel AVR controllers
# Copy this file to /etc/udev/rules.d so

SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", SYSFS{idVendor}=="16c0", SYSFS{idProduct}=="05dc", MODE="0666"
I'm going crazy right now why the hell doesn't work.To be sure I'm going to install working old backup ubuntu system again one more time.

User avatar
@ttila
Posts: 139
Joined: 2017-12-13 16:57
Has thanked: 2 times
Been thanked: 14 times

Re: Arduino 1.8.16 Permission denied

#13 Post by @ttila »

This is my udev rules file:

Code: Select all

#arduino UNO
SUBSYSTEM=="usb", ATTR{idVendor}=="2341", ATTR{idProduct}=="0043", MODE="0666", GROUP="plugdev", SYMLINK+="arduino arduino_uno"
#arduino MEGA 2560 pro
SUBSYSTEM=="usb", ATTR{idVendor}=="1a86", ATTR{idProduct}=="7523", MODE="0666", GROUP="plugdev", SYMLINK+="arduino arduino_mega"
#arduino Arduino SA Arduino Micro 3.3V - 5V
SUBSYSTEM=="usb", ATTR{idVendor}=="2341", ATTR{idProduct}=="8037", MODE="0666", GROUP="plugdev", SYMLINK+="arduino arduino_micro"
#arduino Arduino NodeMcu V3
SUBSYSTEM=="usb", ATTR{idVendor}=="1a86", ATTR{idProduct}=="7523", MODE="0666", GROUP="plugdev", SYMLINK+="arduino arduino_nodemcu"

User avatar
whynot
Posts: 47
Joined: 2021-10-01 06:17
Has thanked: 13 times

Re: Arduino 1.8.16 Permission denied

#14 Post by whynot »

Code: Select all

$ ls /etc/udev/rules.d/ -al
total 96
drwxr-xr-x 2 root root  4096 Okt  9 14:52 .
drwxr-xr-x 4 root root  4096 Okt  9 14:52 ..
-rw-rw-r-- 1 whynot whynot   293 Sep 14 13:41 40-dfuse.rules
-rw-r--r-- 1 root root 58549 Mai 31  2020 70-snap.snapd.rules
-rw-r--r-- 1 root root  2482 Jul 29 18:32 70-snap.snap-store.rules
-rw-r--r-- 1 root root   839 Jul 29 18:32 70-snap.vlc.rules
-rw-rw-r-- 1 whynot whynot   170 Sep 14 13:41 90-extraacl.rules
-rw-rw-r-- 1 whynot whynot   327 Sep 14 13:41 98-openocd.rules
-rw-rw-r-- 1 whynot whynot   275 Sep 14 13:41 99-arduino-101.rules
-rw-rw-r-- 1 whynot whynot   416 Sep 14 13:41 avrisp.rules


whynot	:~$ cat /etc/udev/rules.d/99-arduino-101.rules 

# Arduino 101 in DFU Mode

SUBSYSTEM=="tty", ENV{ID_REVISION}=="8087", ENV{ID_MODEL_ID}=="0ab6", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1", ENV{ID_MM_CANDIDATE}="0"
SUBSYSTEM=="usb", ATTR{idVendor}=="8087", ATTR{idProduct}=="0aba", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"

$ cat /etc/udev/rules.d/avrisp.rules 

# Adding AVRisp UDEV rules

SUBSYSTEM!="usb_device", ACTION!="add", GOTO="avrisp_end"
# Atmel Corp. JTAG ICE mkII
ATTR{idVendor}=="03eb", ATTRS{idProduct}=="2103", MODE="660", GROUP="dialout"
# Atmel Corp. AVRISP mkII
ATTR{idVendor}=="03eb", ATTRS{idProduct}=="2104", MODE="660", GROUP="dialout"
# Atmel Corp. Dragon
ATTR{idVendor}=="03eb", ATTRS{idProduct}=="2107", MODE="660", GROUP="dialout"

LABEL="avrisp_end"
$ cat /etc/udev/rules.d/
40-dfuse.rules            70-snap.vlc.rules         99-arduino-101.rules
70-snap.snapd.rules       90-extraacl.rules         avrisp.rules
70-snap.snap-store.rules  98-openocd.rules          
$ cat /etc/udev/rules.d/90-extraacl.rules 

# Setting serial port rules

KERNEL=="ttyUSB[0-9]*", TAG+="udev-acl", TAG+="uaccess", OWNER="whynot"
KERNEL=="ttyACM[0-9]*", TAG+="udev-acl", TAG+="uaccess", OWNER="whynot"


$ groups
whynot adm tty uucp dialout cdrom sudo dip plugdev lpadmin lxd sambashare
$ groups whynot 
whynot : whynot adm tty uucp dialout cdrom sudo dip plugdev lpadmin lxd sambashare


$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 21.04
Release:	21.04
Codename:	hirsute
Everything working just fine with this setup.I'm going to do same in Debian.

User avatar
whynot
Posts: 47
Joined: 2021-10-01 06:17
Has thanked: 13 times

Re: Arduino 1.8.16 Permission denied

#15 Post by whynot »

@ttila wrote: 2021-10-09 15:56 This is my udev rules file:

Code: Select all

#arduino UNO
SUBSYSTEM=="usb", ATTR{idVendor}=="2341", ATTR{idProduct}=="0043", MODE="0666", GROUP="plugdev", SYMLINK+="arduino arduino_uno"
#arduino MEGA 2560 pro
SUBSYSTEM=="usb", ATTR{idVendor}=="1a86", ATTR{idProduct}=="7523", MODE="0666", GROUP="plugdev", SYMLINK+="arduino arduino_mega"
#arduino Arduino SA Arduino Micro 3.3V - 5V
SUBSYSTEM=="usb", ATTR{idVendor}=="2341", ATTR{idProduct}=="8037", MODE="0666", GROUP="plugdev", SYMLINK+="arduino arduino_micro"
#arduino Arduino NodeMcu V3
SUBSYSTEM=="usb", ATTR{idVendor}=="1a86", ATTR{idProduct}=="7523", MODE="0666", GROUP="plugdev", SYMLINK+="arduino arduino_nodemcu"
I appreciate your answer. But those rules didn't work for me.
I solved USBASP but Arduino UNO USB doesn't work. It could be something else that causes the issue.

Code: Select all

$ cat /etc/udev/rules.d/60-objdev.rules 
SUBSYSTEM!="usb_device", ACTION!="add", GOTO="objdev_rules_end"
# USBasp
#SYSFS{idVendor}=="16c0", SYSFS{idProduct}=="05dc", GROUP="users", MODE="666"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="05dc", MODE="0666", SYMLINK+="USBasp"
LABEL="objdev_rules_end"

User avatar
whynot
Posts: 47
Joined: 2021-10-01 06:17
Has thanked: 13 times

Re: Arduino 1.8.16 Permission denied

#16 Post by whynot »

I think I solved the issue. I had a Chinese clone Usbasp that has no jp2 self-program jumper. I think that manipulates the Arduino Uno USB cable B connection. I figure it out when I brought a new working Arduino Uno. it was working with a USB B cable connection right after I tried with Usbasp and then It stops working now It can only be used with Usbasp.

User avatar
whynot
Posts: 47
Joined: 2021-10-01 06:17
Has thanked: 13 times

Re: [SOLVED]Arduino 1.8.16 Permission denied

#17 Post by whynot »

Ok I fixed all Arduino Unos like this https://www.youtube.com/watch?v=1tU7cAFwzig
and we don't need to add extra lines.

Code: Select all

whynot@Whynot:~$ ls /etc/udev/rules.d/ -la
total 32
drwxr-xr-x 2 root root 4096 Oct 20 15:09 .
drwxr-xr-x 4 root root 4096 Oct 20 13:09 ..
-rw-r--r-- 1 whynot whynot  293 Oct 20 15:07 40-dfuse.rules
-rw-r--r-- 1 root root  305 Oct 20 15:09 60-objdev.rules
-rw-r--r-- 1 whynot whynot  170 Oct 20 15:07 90-extraacl.rules
-rw-r--r-- 1 whynot whynot  327 Oct 20 15:07 98-openocd.rules
-rw-r--r-- 1 whynot whynot  275 Oct 20 15:07 99-arduino-101.rules
-rw-r--r-- 1 whynot whynot  416 Oct 20 15:07 avrisp.rules
whynot@Whynot:~$ cat /etc/udev/rules.d/60-objdev.rules 
SUBSYSTEM!="usb_device", ACTION!="add", GOTO="objdev_rules_end"
# USBasp
#SYSFS{idVendor}=="16c0", SYSFS{idProduct}=="05dc", GROUP="users", MODE="666"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="05dc", MODE="0666", SYMLINK+="USBasp"
LABEL="objdev_rules_end"

whynot@Whynot:~$ cat /etc/udev/rules.d/99-arduino-101.rules 

# Arduino 101 in DFU Mode

SUBSYSTEM=="tty", ENV{ID_REVISION}=="8087", ENV{ID_MODEL_ID}=="0ab6", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1", ENV{ID_MM_CANDIDATE}="0"
SUBSYSTEM=="usb", ATTR{idVendor}=="8087", ATTR{idProduct}=="0aba", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
whynot@Whynot:~$ cat /etc/udev/rules.d/98-openocd.rules 

# Adding Arduino M0/M0 Pro, Primo UDEV Rules for CMSIS-DAP port

ACTION!="add|change", GOTO="openocd_rules_end"
SUBSYSTEM!="usb|tty|hidraw", GOTO="openocd_rules_end"

#Please keep this list sorted by VID:PID

#CMSIS-DAP compatible adapters
ATTRS{product}=="*CMSIS-DAP*", MODE="664", GROUP="plugdev"

LABEL="openocd_rules_end"
whynot@Whynot:~$ cat /etc/udev/rules.d/90-extraacl.rules 

# Setting serial port rules

KERNEL=="ttyUSB[0-9]*", TAG+="udev-acl", TAG+="uaccess", OWNER="whynot"
KERNEL=="ttyACM[0-9]*", TAG+="udev-acl", TAG+="uaccess", OWNER="whynot"

Post Reply