This PR adds a post_install.sh script consistent with the one for ArduinoCore-mbed. Using the same path for the script will simplify troubleshooting instructions. The new script also includes udev rules for Nano Every,
Changes in this PR
Replace scripts/create_udev_rule with post_install.sh (based on post_install.sh)
Use a simiilar structure (more readable)
Add udev rules for Nano Every
Change the name of the created file from 99-arduino-uno-wifi-rev2.rules to 60-arduino-megaAVR.rules.
Tests
Before running post_install.sh (missing udev rules)
UNO WiFi Rev2 ❌
Upload fails:
avrdude: usbdev_open(): cannot open device: Permission denied
avrdude: jtag3_open_common(): Did not find any device matching VID 0x03eb and PID list: 0x2145
Failed uploading: uploading error: exit status 1
Nano Every ❌
Upload fails:
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): timeout/error communicating with programmer (status -1)
Failed uploading: uploading error: exit status 1
After running post_install.sh (new udev rules added)
UNO WiFi Rev2 ✅
Upload successful, although on my system a "spurious" avrdude: usbdev_open(): WARNING: failed to set configuration 1: Device or resource busy warning is thrown. However, I get the same result with the rules set by scripts/create_udev_rule, so I believe its occurence is unaffected by this PR.
This PR adds a
post_install.sh
script consistent with the one for ArduinoCore-mbed. Using the same path for the script will simplify troubleshooting instructions. The new script also includes udev rules for Nano Every,Changes in this PR
scripts/create_udev_rule
withpost_install.sh
(based on post_install.sh)99-arduino-uno-wifi-rev2.rules
to60-arduino-megaAVR.rules
.Tests
Before running
post_install.sh
(missing udev rules)UNO WiFi Rev2 ❌
Upload fails:
Nano Every ❌
Upload fails:
After running
post_install.sh
(new udev rules added)UNO WiFi Rev2 ✅
Upload successful, although on my system a "spurious"
avrdude: usbdev_open(): WARNING: failed to set configuration 1: Device or resource busy
warning is thrown. However, I get the same result with the rules set byscripts/create_udev_rule
, so I believe its occurence is unaffected by this PR.Nano Every ✅
Upload successful.