Pages: [1]   Go Down
Author Topic: avrdude problem on Linux 64bit problem  (Read 1119 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I downloaded the 64bit version of the Arduino software for Linux and I wasn't able to upload the code to the Arduino Uno board.

The error given by the IDE was:
java.io.IOException: Cannot run program "<install_path>/arduino-0021/hardware/tools/avrdude": java.io.IOException: error=2, No such file or directory

I checked and the avrdude file mentioned in the Java exception exists and has the right permissions (a+rx). However, it seems like it's compiled for a 32bit OS as vs. to 64bit:

arduino-0021$ file hardware/tools/avrdude
hardware/tools/avrdude: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.2.0, not stripped

The stock version on my OS (Debian testing) is compiled for 64bit and seems to work fine (I was able to upload firmware to the flash using the command line):
arduino-0021$ file /usr/bin/avrdude
/usr/bin/avrdude: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped

--Tavi
Logged

Phoenix, Arizona USA
Offline Offline
Faraday Member
**
Karma: 36
Posts: 5519
Where's the beer?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Have you tried renaming the 32-bit one to something else, then making a symbolic link to the one in /usr/bin? Try that.
Logged

I will not respond to Arduino help PM's from random forum users; if you have such a question, start a new topic thread.

0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I already tried that and it does go a bit further. However I get this error instead:

avrdude: Yikes!  Invalid device signature.
         Double check connections and try again, or use -F to override
         this check.

According to one of the troubleshooting topics Arduino uses a customized version of avrdude.
http://www.arduino.cc/en/Guide/Troubleshooting#toc23

I could try to pass -F flag to avrdude but the command line is probably somewhere in the Java code.
Logged

Phoenix, Arizona USA
Offline Offline
Faraday Member
**
Karma: 36
Posts: 5519
Where's the beer?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

My only other suggestion would be to pull the avrdude from an older Arduino install for 64-bit, and try that. If that doesn't work, I could try to send you a copy of my avrdude (I only have 0019 setup, currently, though)...
Logged

I will not respond to Arduino help PM's from random forum users; if you have such a question, start a new topic thread.

0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I grabbed the avrdude and avrdude.conf files from the 64 bit version of the 0018 release and that fixed the problem. I'm able upload the firmware w/o issues.

In any case, the official release of the software should be fixed as well. Is there a way I can file a bug report to get that done?
Logged

Phoenix, Arizona USA
Offline Offline
Faraday Member
**
Karma: 36
Posts: 5519
Where's the beer?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I think you can try here: https://launchpad.net/arduino

Try here - I don't know what that is above...

http://www.arduino.cc/playground/Main/SuggestionsBugs
« Last Edit: December 08, 2010, 05:10:07 pm by keeper63@cox.net » Logged

I will not respond to Arduino help PM's from random forum users; if you have such a question, start a new topic thread.

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 9
Posts: 3538
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The bug list is here: http://code.google.com/p/arduino/issues/list
Logged

Pages: [1]   Go Up
Jump to: