arduino / toolchain-avr

The AVR toolchain used by the Arduino IDE
144 stars 48 forks source link

Avrdude on Linux64 is compiled whitout libusb #23

Closed ffissore closed 9 years ago

ffissore commented 9 years ago

From @eni23 on April 9, 2015 20:5

arduino: 1.6.3 release from arduino-website os: debian wheezy amd64

the avrdude-binary is not compiled with libusb, which means no usb-serial adapters are supported. since most arduino-boards depend on usb-communication this is a quite big impact. workaround: compile avrdude 6.0.1 on your own and replace broken binary's

Copied from original issue: arduino/Arduino#2952

ffissore commented 9 years ago

From @mschlenker on April 10, 2015 6:57

USB serial adapters usually are supported by the linux kernels drivers, not userland drivers. Those userland drivers are usually just needed for more exotic programmers.

Could you please post the USB IDs of the USB serial adapter (lsusb output) and the kernel version you are using (uname -a). Then after plugging in the usb serial adapter take a look at the last lines in the out put of dmesg.

ffissore commented 9 years ago

From @matthijskooijman on April 10, 2015 7:15

Agreed that libusb isn't needed for usb-serial adapaters, but not having libusb is still a problem for non-serial programmers like the JTAGICE3 and some others.

ffissore commented 9 years ago

I've checked the logs, and indeed since we switched to static compiling, avrdude is not linking to libusb anymore. Problem is without static, gcc fails with a missing LTO plugin.

eni23 commented 9 years ago

u i was a little bit in a hurry i meant isp programmers and not uart-adapters. but anyway, it should be possible to compile it static with libusb..

tdicola commented 9 years ago

If it helps, here's a similar issue I raised about this where USBtinyISP programming (for boards like Trinket, Gemma, or the real USBtinyISP programmer) doesn't work because of the static link missing libusb issue: https://github.com/arduino/toolchain-avr/issues/22

larsemil commented 9 years ago

Yes. programming Gemma is not possible with 1.6.3.

avrdude was compiled without usb support.

I am more then happy to compile myself, if I know what to change to get libusb to work again.

ffissore commented 9 years ago

Working on this atm

ffissore commented 9 years ago

Tag https://github.com/arduino/toolchain-avr/releases/tag/avr-gcc-4.8.1-avrdude-6.0.1-arduino4 should fix it

ffissore commented 9 years ago

Sent too early: an updated toolchain will be soon released

matthijskooijman commented 9 years ago

What Arduino IDE will this upodated toolchain be released in? 1.6.4 I presume?

ffissore commented 9 years ago

Thanks to boards manager, we are going to release a 1.6.4 avr core very soon. May be even tomorrow CET morning

ffissore commented 9 years ago

1.6.4 core and tools (with libusb fix) available through boards manager

shimanyi commented 9 years ago

@ffissore Any quick fixes on this? I am embarrassingly new in this, I get the error mentioned /bin/avrdude: not found but I can't get any fixes on this. Please give me pointers. I just need to upload from sublime.

Thanks

ffissore commented 9 years ago

@shimanyi your issue has nothing to do with this one. This is about missing support to libusb. Your issue is about a non existent /bin/avrdude

shimanyi commented 9 years ago

@ffissore Thanks for the feedback, how do I get around that though?

ffissore commented 9 years ago

I don't know. It's an issue with stino

shimanyi commented 9 years ago

Ok, thanks. Will keep looking.