Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 04-30-2012, 06:00 PM   #1
Registered: Dec 2004
Location: USA
Distribution: Slackware 12, Slackware64 14.2
Posts: 236
Blog Entries: 1

Rep: Reputation: 55
Arduino MEGA 2560 REV3, Arduino IDE working software versions

I purchased an Arduino MEGA 2560 REV3 board and couldn't program it using slackware-current and the avr-* and Arduino IDE package versions from

I used the slackbuilds as a basis for newer version packages just by changing the version number in the .Slackbuild, downloading newer source from the site of the slackbuilds source link, and building my own package.

Here are the software versions that work for me:
1.) Slackware 13.37 upgraded to current as of 4/30/2012
2.) avr-binutils-2.22-i486-1_SBo (upgraded from slackbuilds version)
3.) avr-gcc-4.6.3-i486-1_SBo (upgraded from slackbuilds version)
4.) avr-libc-1.7.1-i486-1_SBo
5.) arduino-1.0-i486-2_SBo (I believe I used the slackbuilds source version)
I tried several combinations of various packages. Some worked, some did not.

Both an older (but web-recommended) 2.20 version and a newer version of avr-binutils worked, I chose the newer one. I do not believe that I tried the slackbuilds version of this package.

The big key to the whole thing seemed to be the avr-gcc version used. The slackbuilds 4.5.3 would not generate a program that could run on the 2560. There were so many versions of gcc that I simply chose one of the latest and hoped it worked. It did.

Arduino IDE 1.0 works well.

I had confirmed that I did not have a USB serial problem by writing code for the board on a Linux Mint 11 install, verifying that the code ran through the Arduino 0022 IDE Serial Monitor, and then successfully seeing the code running using the Arduino Serial Monitor under slackware even before slackware could compile working programs.

Two things to avoid:
1.) Do not attempt to connect the Arduino board through a USB hub. Timing errors were all I got in this case.
2.) Slackware doesn't automatically add or suggest adding users to the 'dialout' group. suggests some trickery with hal to create /dev/ttyACM0 with global r/w permissions. As root I added myself to the dialout group with 'usermod -a -G dialout james'. This seems to work as well.

I hope that this helps someone. I'll mark the thread as solved. (If I can figure out how to do so.)

EDIT: The version of avrdude that was included in the Arduino IDE 1.0 worked for me with no modifications to the boards.txt or conf files. You'll see a lot of such suggestions for the 2560, none of them helped me.

Last edited by jamesf; 04-30-2012 at 06:03 PM. Reason: clarification, additional info
Old 05-02-2012, 12:56 AM   #2
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295

Thank you for sharing. Off the Zero Reply List.

Kind regards,



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Arduino-Open Hardware and IDE Combo LXer Syndicated Linux News 0 12-21-2011 08:00 PM
LXer: Extend your Arduino LXer Syndicated Linux News 0 11-19-2010 06:40 AM
Arduino on Bluewhite64 - 13 DEA Bluewhite64 4 01-30-2010 02:42 AM
Arduino carbonfiber General 3 01-18-2010 01:05 PM
Trying to Program the Arduino oakmanor1 Linux - Newbie 2 07-02-2009 11:15 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:34 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration