Arduino IDE

From Attie's Wiki
(Difference between revisions)
Jump to: navigation, search
m
m
Line 10: Line 10:
 
$ cd <path to arduino>/hardware/tools
 
$ cd <path to arduino>/hardware/tools
 
$ rm avrdude
 
$ rm avrdude
$ ln -s /usr/bin/avrdude
+
$ ln -s /usr/bin/avrdude ./avrdude2
 
</pre>
 
</pre>
 +
 +
Then put the following in <code>./avrdude</code> and give it execute permissions
 +
<source lang="bash">
 +
#!/bin/bash
 +
cla=$@
 +
while [ "$1" != "" ]; do
 +
  if [ "`echo $1|cut -b-2`" == "-P" ]; then
 +
    serprt=$(echo $1 | cut -b3-)
 +
    break
 +
  fi
 +
  shift
 +
done
 +
cd ~/Downloads/arduino-0018/hardware/tools
 +
stty hup -F $serprt
 +
./avrdude2 $cla
 +
</source>
  
 
See also:
 
See also:
 
http://www.arduino.cc/playground/Linux/Fedora
 
http://www.arduino.cc/playground/Linux/Fedora

Revision as of 00:49, 27 March 2010

To use the Arduino IDE on Fedora 12 you must do a few things:

$ yum install uisp avr-libc avr-gcc-c++ rxtx avrdude

$ cd <path to arduino>/lib 
$ rm librxtxSerial.so RXTXcomm.jar 
$ ln -s /usr/share/java/RXTXcomm.jar 
$ ln -s /usr/lib/rxtx/librxtxSerial.so
$ cd <path to arduino>/hardware/tools
$ rm avrdude
$ ln -s /usr/bin/avrdude ./avrdude2

Then put the following in ./avrdude and give it execute permissions

#!/bin/bash
cla=$@
while [ "$1" != "" ]; do
  if [ "`echo $1|cut -b-2`" == "-P" ]; then
    serprt=$(echo $1 | cut -b3-)
    break
  fi
  shift
done
cd ~/Downloads/arduino-0018/hardware/tools
stty hup -F $serprt
./avrdude2 $cla

See also: http://www.arduino.cc/playground/Linux/Fedora

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox