A short write-up from chat.
First make sure the driver module is loaded, apparently this does not happen automatically:
Option 1: On the fly:
Option 2: To load the module at boot time:
sudo bash -c 'echo hoi >> /etc/modules Notice the double
>> is important.
- check if the module is loaded:
lsmod | grep cdc-acm && echo success || echo failed
You should be able to program the device using:
sudo avrdude -v -p t85 -c avrispmkII -P usb -U flash:w:src.hex
Check this question for more information: https://stackoverflow.com/questions/5412727/avrisp-mkii-doesnt-work-with-avrdude-in-linux
Not sure what the reason is for the error message you reported at this point:
avrdude: stk500v2_command(): command failed
avrdude: stk500v2_program_enable(): bad AVRISPmkII connection status: Target not detected
avrdude: initialization failed, rc=-1
Your to do list:
- Automatically load the cdc-acm module => Described above.
- Figure out what is wrong with your
udev rules, so you do not have to use
sudo for programming => check https://askubuntu.com/ for that.
- Figure out why the programmer doesn't respond. https://electronics.stackexchange.com/ is the right place. A picture of your setup will help. As it is a different error than you started with, I think a new question is justified.