adm34 / arduino

Automatically exported from code.google.com/p/arduino
0 stars 0 forks source link

Software rev 0021 for 64bit linux is broken #428

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I already described the problem on the forum:
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1291760657

I'll re-post the information here, for better tracking:

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

I grabbed the avrdude and avrdude.conf files from the 64 bit version of the 
0018 release and that fixed the problem

Original issue reported on code.google.com by oafilip...@gmail.com on 8 Dec 2010 at 11:25

GoogleCodeExporter commented 9 years ago
Hey David, you made the 64-bit version of Arduino 0021 for Linux, right?  Are 
you sure its correct?

Original comment by dmel...@gmail.com on 9 Dec 2010 at 1:28

GoogleCodeExporter commented 9 years ago
yes, I have it running

/d

Original comment by dcuartie...@gmail.com on 9 Dec 2010 at 6:20

GoogleCodeExporter commented 9 years ago
Are you sure you are using the same build that the official site is pointing 
to? (http://files.arduino.cc/downloads/arduino-0021-2.tgz)

I did a md5sum comparison on the binaries available for download from 
arduino.cc and googlecode and it seems that the 32bit and 64bit versions from 
arduino.cc are identical:

> md5sum arduino-0021*
e3a6d834682b3694fc2f58ba7d5e24a1  arduino-0021-2.tgz-arduino.cc
e3a6d834682b3694fc2f58ba7d5e24a1  arduino-0021.tgz-arduino.cc
0f53873712b51774e96c0bdf987289dd  arduino-0021.tgz-googlecode

Another interesting thing: for whatever reason the 32bit linux binaries from 
arduino.cc and googlecode seem to be different.

Original comment by oafilip...@gmail.com on 10 Dec 2010 at 2:07

GoogleCodeExporter commented 9 years ago
Arduino 0022 has a good 64-bit version.

Original comment by dmel...@gmail.com on 14 May 2011 at 4:31