USBtiny programmer - avrdude - Operation not permitted

Chat about just about anything else

USBtiny programmer - avrdude - Operation not permitted

Postby chompey on Fri Nov 02, 2012 1:29 pm

Hello.

I am trying to program Atmel microcontroler with USBtiny programmer from Adafruit.
Everything is working for me but I can't manage to get proper rights for AVRDUDE upload utility to work with USBtiny.
I get this error message:

avrdude: error: usbtiny_transmit: error sending control message: Operation not permitted
avrdude: initialization failed, rc=-1


When I use sudo command to execute AVRDUDE, it works.
But it is not usable for me because I want to call this utility from IDE, so typing password everytime... can't be.

USBtiny device ID is:
Bus 002 Device 025: ID 1781:0c9f Multiple Vendors USBtiny

I added to folder etc/udev/rules.d file named 41-usbtiny.rules which contains line
SUBSYSTEM=="usb", ATTR{idProduct}=="0c9f", ATTRS{idVendor}=="1781", MODE="0666"

then commands
sudo chmod a+r /etc/udev/rules.d/41-usbtiny.rules
sudo restart udev

as this is solution adviced by Adafruit themselves for Ubuntu users.
But does not work for me.

I tried line
SUBSYSTEM=="usb", SYSFS{idVendor}=="1781", SYSFS{idProduct}=="0c9f", GROUP="adm", MODE="0666"
I tried to copy rules file to folder lib/udev/rules.d, as these were solutions that worked for somebody,
but not for me.

Can you please give me some hint?

Thank you very much, Chompey (Czech Republic)
chompey
Level 1
Level 1
 
Posts: 3
Joined: Fri Nov 02, 2012 1:05 pm

Linux Mint is funded by ads and donations.
 

Re: USBtiny programmer - avrdude - Operation not permitted

Postby DrHu on Fri Nov 02, 2012 2:48 pm

http://mightyohm.com/blog/2010/03/run-a ... in-ubuntu/
http://forums.adafruit.com/viewtopic.php?p=21579

There are probably other answers than these, simple search on the Internet
Last edited by DrHu on Thu Jan 03, 2013 5:25 pm, edited 1 time in total.
User avatar
DrHu
Level 16
Level 16
 
Posts: 6783
Joined: Wed Jun 17, 2009 8:20 pm

Re: USBtiny programmer - avrdude - Operation not permitted

Postby chompey on Sat Nov 03, 2012 6:10 pm

Thank you for your answer.

I tried everything MightyOhm.com advised, ie adding the file to etc/udev/rules.d, I tried GROUP admin, I tried GROUP myusername, I tried several priority levels, nothing worked for me :(

AVRDUDE 64 bit patch is included since version 5.5-2, my version is 5.11.1.

I am sorry if it looks like I did not try to find the answer myself.
I don't want to bother people, so I tried a lot first, I failed, so I had to ask.
I am not experienced user :(

Thank you, Chompey.
chompey
Level 1
Level 1
 
Posts: 3
Joined: Fri Nov 02, 2012 1:05 pm

Re: USBtiny programmer - avrdude - Operation not permitted

Postby robrob on Fri Dec 14, 2012 12:27 pm

Hello chompey!

If you don't have an answer to this question, here is my solution:

you have to replace the following
Code: Select all
SUBSYSTEM=="usb", SYSFS{idVendor}=="1781", SYSFS{idProduct}=="0c9f", GROUP="plugdev", MODE="0666"

by this
Code: Select all
SUBSYSTEM=="usb", ATTR{idVendor}=="1781", ATTR{idProduct}=="0c9f", GROUP="plugdev", MODE="0666"


Pay attention to the "ATTR" parameters - this is because in current udev the SYSFS is replaced by ATTR.
This should work with at least evry group you are - someone should give adafruit a hint...
robrob
Level 1
Level 1
 
Posts: 2
Joined: Fri Dec 14, 2012 12:10 pm

Re: USBtiny programmer - avrdude - Operation not permitted

Postby chompey on Tue Dec 25, 2012 5:53 pm

Dear robrob !

Sir, you are my savior.
Now it works perfectly.

Thank you very much!

Chompey.
chompey
Level 1
Level 1
 
Posts: 3
Joined: Fri Nov 02, 2012 1:05 pm

Re: USBtiny programmer - avrdude - Operation not permitted

Postby robrob on Thu Jan 10, 2013 7:18 am

No problem, I've fought with this problem 3/4 year, but finally I've won! ;)

But these are the big problems the OS community has to fight: slightly differences ends up in more or less bigger trouble. An overlapping time with both arguments in coexistence with some big red warnings at boot time should help to minimize such problems.
But I can not estimate, if it is as simple as it sounds :oops:
robrob
Level 1
Level 1
 
Posts: 2
Joined: Fri Dec 14, 2012 12:10 pm

Re: USBtiny programmer - avrdude - Operation not permitted

Postby Todinator on Tue Mar 18, 2014 12:07 am

I just ran into this problem also. I followed the instructions on this thread and it works! Thank you so much, I really appreciate it!
Todinator
Level 1
Level 1
 
Posts: 1
Joined: Mon Mar 17, 2014 11:58 pm

Re: USBtiny programmer - avrdude - Operation not permitted

Postby Pilosopong Tasyo on Tue Mar 18, 2014 12:31 am

Glad this thread also solved your issue. Let's leave this thread to rest in the annals of Linux Mint forum history. Thread locked as per §2.2 ¶2 of the Forum Rules, Guidelines, and Policy.
Image
o Give a man a fish and he will eat for a day. Teach him how to fish and he will eat for a lifetime!
o If an issue has been fixed, please edit your first post and add the word [SOLVED].
User avatar
Pilosopong Tasyo
Level 6
Level 6
 
Posts: 1137
Joined: Mon Jun 22, 2009 3:26 am
Location: Philippines

Linux Mint is funded by ads and donations.
 

Return to Open chat

Who is online

Users browsing this forum: No registered users and 6 guests