2009-03-17

Arduino Suse 10.3 installation

I had to reinstall SUSE Linux 10.3 in my Laptop and after installing the Operating System the first thing to install was the Arduino development IDE and the AVR cross toolchain.
If you have added Packman repositories just install the following packages, although most are in the Main OSS repositorie:
cross-avr-gcc
cross-avr-binutils
avr-libc
avrdude

The latter is a command line application that programs AVRs (and other micros), it is also useful if you program AVRs outside the Arduino environment.
The really important steps follow, as superuser do:
#chmod 777 /var/lock
#chmod 777 /dev/ttyUSB0

These are also useful when using minicom (/var/lock) and USB serial port to comunicate with RS232 computers (/dev/ttyUSB0).
These instructions were adapted from here, some of the steps are not necessary, others really important.


To use my AVRISP mk II in SUSE 10.3 I needed to change a udev rules to add the device as accessible to every use, I added the following line at the end of /etc/udev/rules.d/50-udev-default.rules :
# AVRISP mk II
SUBSYSTEM=="usb",SYSFS{idVendor}=="03eb",SYSFS{idProduct}=="2104",MODE="0666"
It turns out that it still doesn't work... when trying to use avrdude with the -P usb option it complaints that it was not compiled with USB support...
Uninstall avrdude (keep uisp, avrlibc needs one of them otherwise yast complains), download the sources then configure and install to /opt/cross..

# gunzip -c avrdude-5.8.tar.gz | tar xf -
# cd avrdude-5.8
# ./configure --prefix=/opt/cross
# make
# su
# make install

Test it connecting the AVRISP mk II to an Arduino with the command:
#avrdude -c avrispmkII -p m168 -P usb