Технический форум по робототехнике.
Requirements
You will need to install some programs to use Arduino under Linux (the way you do this depends on your distribution):
* sun's java runtime (JRE, package sun-java6-jre)
* 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-gcc (aka "gcc-avr"), version 4.3.2 or later
o Version 4.3.0 has a major bug which affects multiplication of long int's. This is the default version in Ubuntu Intrepid (8.10). Check using "avr-gcc --version" and upgrade if necessary.
o Versions prior to 4.3.0 do not support the ATmega328 (which comes on the Arduino Duemilanove). People running distributions like Hardy Heron (Ubuntu) or Etch (Debian) and previous will need to upgrade their version of avr-gcc.
* avr-libc
dim@dim-laptop:~$ sudo apt-get install avr-gcc-c++
[sudo] password for dim:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package avr-gcc-c
dim@dim-laptop:~$ lsusb
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 005: ID 044e:3012 Alps Electric Co., Ltd
Bus 003 Device 004: ID 044e:3013 Alps Electric Co., Ltd
Bus 003 Device 003: ID 044e:3010 Alps Electric Co., Ltd
Bus 003 Device 002: ID 044e:3011 Alps Electric Co., Ltd
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 05ca:1839 Ricoh Co., Ltd
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
dim@dim-laptop:~$ lsusb
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 007: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x Composite Device
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 005: ID 044e:3012 Alps Electric Co., Ltd
Bus 003 Device 004: ID 044e:3013 Alps Electric Co., Ltd
Bus 003 Device 003: ID 044e:3010 Alps Electric Co., Ltd
Bus 003 Device 002: ID 044e:3011 Alps Electric Co., Ltd
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 05ca:1839 Ricoh Co., Ltd
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
dim@dim-laptop:~$
http://www.etheus.net/CP210x_Linux_Driver писал(а):The CP210x driver is distributed with 2.6 series kernels >=2.6.12
dim@dim-laptop:~/Cp2102$ dmesg | tail
[25749.261269] CE: hpet increasing min_delta_ns to 22500 nsec
[28038.644298] usb 5-2: new full speed USB device using uhci_hcd and address 7
[28038.863427] usb 5-2: configuration #1 chosen from 1 choice
[28715.320362] r8169: eth0: link up
[28729.066293] r8169: eth0: link down
[28749.064321] r8169: eth0: link up
[28750.572717] r8169: eth0: link down
[28752.881224] r8169: eth0: link up
[28808.319091] r8169: eth0: link down
[28809.956450] r8169: eth0: link up
dim@dim-laptop:~/Cp2102$
andrey@debian:~/working/trunk/modules/Project$ ls /dev/tty*
/dev/tty /dev/tty14 /dev/tty20 /dev/tty27 /dev/tty33 /dev/tty4 /dev/tty46 /dev/tty52 /dev/tty59 /dev/tty8
/dev/tty0 /dev/tty15 /dev/tty21 /dev/tty28 /dev/tty34 /dev/tty40 /dev/tty47 /dev/tty53 /dev/tty6 /dev/tty9
/dev/tty1 /dev/tty16 /dev/tty22 /dev/tty29 /dev/tty35 /dev/tty41 /dev/tty48 /dev/tty54 /dev/tty60 /dev/ttyS0
/dev/tty10 /dev/tty17 /dev/tty23 /dev/tty3 /dev/tty36 /dev/tty42 /dev/tty49 /dev/tty55 /dev/tty61 /dev/ttyS1
/dev/tty11 /dev/tty18 /dev/tty24 /dev/tty30 /dev/tty37 /dev/tty43 /dev/tty5 /dev/tty56 /dev/tty62 /dev/ttyS2
/dev/tty12 /dev/tty19 /dev/tty25 /dev/tty31 /dev/tty38 /dev/tty44 /dev/tty50 /dev/tty57 /dev/tty63 /dev/ttyS3
/dev/tty13 /dev/tty2 /dev/tty26 /dev/tty32 /dev/tty39 /dev/tty45 /dev/tty51 /dev/tty58 /dev/tty7 /dev/ttyUSB0
andrey@debian:~/working/trunk/modules/Project$
dim@dim-laptop:~/cpp-lessons$ ls /dev/tty*
/dev/tty /dev/tty19 /dev/tty3 /dev/tty40 /dev/tty51 /dev/tty62
/dev/tty0 /dev/tty2 /dev/tty30 /dev/tty41 /dev/tty52 /dev/tty63
/dev/tty1 /dev/tty20 /dev/tty31 /dev/tty42 /dev/tty53 /dev/tty7
/dev/tty10 /dev/tty21 /dev/tty32 /dev/tty43 /dev/tty54 /dev/tty8
/dev/tty11 /dev/tty22 /dev/tty33 /dev/tty44 /dev/tty55 /dev/tty9
/dev/tty12 /dev/tty23 /dev/tty34 /dev/tty45 /dev/tty56 /dev/ttyS0
/dev/tty13 /dev/tty24 /dev/tty35 /dev/tty46 /dev/tty57 /dev/ttyS1
/dev/tty14 /dev/tty25 /dev/tty36 /dev/tty47 /dev/tty58 /dev/ttyS2
/dev/tty15 /dev/tty26 /dev/tty37 /dev/tty48 /dev/tty59 /dev/ttyS3
/dev/tty16 /dev/tty27 /dev/tty38 /dev/tty49 /dev/tty6
/dev/tty17 /dev/tty28 /dev/tty39 /dev/tty5 /dev/tty60
/dev/tty18 /dev/tty29 /dev/tty4 /dev/tty50 /dev/tty61
dim@dim-laptop:~/cpp-lessons$
dim@dim-laptop:~/Cp2102$ sudo modprobe cp2101
[sudo] password for dim:
FATAL: Module cp2101 not found.
dim@dim-laptop:~/Cp2102$
dim@dim-laptop:~$ sudo modprobe cp210x
[sudo] password for dim:
FATAL: Module cp210x not found.
dim@dim-laptop:~$ sudo modprobe cp2102
FATAL: Module cp2102 not found.
dim@dim-laptop:~$
Linux dim-laptop 2.6.32.10 #0 SMP San Apr 4 16:18:28 MSD 2010