Right ! Thanks for all your help. I did here below a little step by step how I managed to get it work.
Preface : Every line starting with 'tux@ubuntu:~$' ,means that this is a command excuted by the command line
Preface : Every reference to $HOME or /home/tux , can be changed to your own home directory.
1. Check if device is recognized by system
-connect usb device to system
tux@ubuntu~$ dmesg | tail | grep "FTDI USB Serial" | grep -c "now attached"
the result of this must be '1'
If it is 0 , then your device is not recognised.
You might then need to remove the package brltty.
tux@ubuntu~$ sudo apt-get remove brltty
- Prepare needed files ,and execute a little test
tux@ubuntu~$ cd $HOME
-install pre-requisites :
First the downloads out of the box :
tux@ubuntu~$ sudo apt-get install gcc-avr avr-libc unzip
Clean remove of standard avrdude if present on system :
tux@ubuntu~$ sudo apt-get remove --purge avrdude
Then install the avrdude ,from arduino itself :
tux@ubuntu~$ apt-get install gcc yum bison flex
tux@ubuntu~$ wget http://www.arduino.cc/files/avrdude-5.4-arduino-0010-src.tgz
tux@ubuntu~$ gunzip -c avrdude-5.4-arduino-0010-src.tgz | tar -xvf -
tux@ubuntu~$ cd ./avrdude-5.4-arduino-src
tux@ubuntu~$ ./configure
tux@ubuntu~$ make clean
tux@ubuntu~$ make
tux@ubuntu~$ sudo make install
-Download and unpack the core file in $HOME/arduino
tux@ubuntu~$ wget http://www.arduino.cc/en/uploads/Hacking/arduino-0007-core.zip
tux@ubuntu~$ unzip arduino-0007-core.zip
-Download and configure the Makefile
tux@ubuntu~$ mkdir $HOME/arduino_projects
tux@ubuntu~$ cd $HOME/arduino_projects
tux@ubuntu~$ wget http://www.arduino.cc/en/uploads/Hacking/Makefile
tux@ubuntu~$ cp -p $HOME/arduino_projects/Makefile $HOME/arduino_projects/Makefile.original
-Create you testproject file ,connect a led between GND and pin 13 :
tux@ubuntu~$ vi $HOME/arduino_projects/helloworld.cpp
And enter this :
#include <WProgram.h>
/* Blinking LED
-
-
turns on and off a light emitting diode(LED) connected to a digital
-
pin, in intervals of 2 seconds. Ideally we use pin 13 on the Arduino
-
board because it has a resistor attached to it, needing only an LED
-
Created 1 June 2005
-
copyleft 2005 DojoDave http://www.0j0.org
-
http://arduino.berlios.de
-
based on an orginal by H. Barragan for the Wiring i/o board
*/
int ledPin = 13; // LED connected to digital pin 13
void setup()
{
pinMode(ledPin, OUTPUT); // sets the digital pin as output
}
edit the Makefile and change these lines :
tux@ubuntu~$ vi $HOME/arduino_projects/Makefile
#<<== First the port on which to connect to ==>>#
#<<== This port can be found in the message log ==>>#
To know the port :
tux@ubuntu~$ dmesg | tail | grep "FTDI USB Serial" | sed 's/to/\;/g' | awk -F";" '{ print $2 }' | tail -1 | sed 's/ //g'
[edit]From : PORT = /dev/tty.usbserial*
To : PORT = /dev/ttyUSB0[/edit]
#<<== Then change the location to the core files ==>>#
[edit]From : ARDUINO = /Applications/arduino-0007/lib/targets/arduino
To : ARDUINO = /home/tux/arduino[/edit]
#<<== Specify project loaction ==>>#
[edit]From : TARGET = foo
To : TARGET = /home/tux/arduino_projects/helloworld[/edit]
#<<== Change this line ,depending of the version of you arduino ATMEL chip ==>>#
#<<== Out of the box ,the makefile is made for the ATMEGA8 , so I needed to change it to ATMEGA168 ==>>#
[edit]From : MCU = atmega8
To : MCU = atmega168[/edit]
#<<== I also needed to change this line ,which I think is due to version of the board ==>>#
[edit]From : AVRDUDE_PROGRAMMER = stk500
To : AVRDUDE_PROGRAMMER = stk500v1[/edit]
FINAL STEP
Now clean out the make ,perform a make ,and upload it.
tux@ubuntu~$ cd $HOME/arduino_projects
tux@ubuntu~$ make clean
tux@ubuntu~$ make
tux@ubuntu~$ make upload
Now wait a few seconds and the led should start to blink. (If not check if polarity of the connected led is ok)
And voila , pfwoeih ... not straight forward. But hey ; IT never is (luckely for us)