Arduino Playground - Linux
Arduino Playground - Linux
search
www.arduino.cc/playground/Learning/Linux 1/3
13/06/12 Arduino playground - Linux
edit SideBar avr-gcc-c++ (Else you will get this error: Cannot run program
"avr-g++":j ava.io.IOException:Error=2: No such file or directory)
avr-libc
Download the latest Arduino Linux distribution from the arduino dowload
section. Copy/extract these files to a directory (or your desktop) and Runthe
"arduino" script. Be sure that the full extracted directory location/name has
no spaces in the /location/name.
Included Dependencies
You should be able to use the versions of these programs that come with the
Arduino software download. If, however, they won't run on your computer,
you may need to compile the Arduino-specific versions of these programs for
yourself rather than using the standard packages from your distribution.
The avrdude that comes with Arduino was modified to ensure proper
functioning of the auto-reset of Arduino boards before upload (without which
the upload will fail). The source code to the Arduino version is available on
GitHub.
The RXTX that comes with Arduino was modified to support devices of the
form /dev/ttyACM*, which are used by the Arduino Uno and Mega 2560
boards (which use an ATmega8U2 instead of an FTDI chip for USB-serial
communication). Source code for the Arduino version is also available on
GitHub.
Other notes
To fix:
sudo sed i 's/XINERAMA/FAKEEXTN/g' /usr/lib/jvm/java6sun/jre/lib/amd64/motif21/libmawt.so
USB-Serial Devices
If you have more than one such device then some udev magic may help avoid
confusion.
Kernel Configuration
If you configured your own kernel, the driver is either under "Device Drivers
=> USB Support => USB Serial Converter Support => USB FTDI Single Port
Serial Driver" or "Device Drivers => USB Support => USB Modem (CDC
ACM) support". Select [Y], to have it "built in" to the kernel or [M] to have it
built as a module. Dmesg then should show the device like this:
ftdi_sio 22:1.0: FTDI USB Serial Device converter detected
www.arduino.cc/playground/Learning/Linux 2/3
13/06/12 Arduino playground - Linux
or like this:
cdc_acm 52:1.0: ttyACM0: USB ACM device
User Rights
Make sure you are in the tty group. On some distros you might need to create
an udev rule for the FTDI USB Serial Device converter.
This works only if you are using Arduino IDE older than 1.0, or you have
deleted the ./hardware/tools/avr folder
(The old instructions for installing Arduino on Linux are still available.)
Refer to Arduino BT - Ubuntu for the full guide. This guide section was
created in a new page by the author.
| Share
www.arduino.cc/playground/Learning/Linux 3/3