1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
Dependencies
============
make
avr-libc
binutils-avr
gcc-avr
avrdude
dfu-programmer
teensy_loader
udev example rules
==================
DFU programmable Boards:
------------------------
SUBSYSTEM=="usb", ACTION=="add", ATTR{idVendor}=="03eb", ATTR{idProduct}=="*", GROUP="plugdev", MODE:="0660"
Teensy Boards:
--------------
SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789]?", MODE:="0666"
KERNEL=="ttyACM*", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789]?", SYMLINK+="ttyUSB00%n", MODE:="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
Arduino Boards:
---------------
SUBSYSTEMS=="usb", KERNEL=="ttyUSB*", ATTRS{serial}=="A6008hTA", SYMLINK+="arduino", OWNER="equinox", GROUP="equinox"
Replace "A6008hTA" with the serial of your arduino board. You can obtain it
with the following command:
udevadm info --name /dev/ttyUSB0 --attribute-walk | grep ATTRs{serial}
(replace ttyUSB0 with the actual device your arduino uses)
Build
=====
Getting the source via subversion:
----------------------------------
svn co https://svn.spreadspace.org/avr/trunk avr
cd avr
build and flash blink example
-----------------------------
# cd blink
# make
# make program
# make run
|