View previous topic :: View next topic |
Author |
Message |
bmeagle n00b
Joined: 30 Nov 2005 Posts: 56 Location: South Africa
|
Posted: Fri Sep 25, 2015 6:26 pm Post subject: [solved] arduino not getting a proper device name assigned |
|
|
I'm want to program my duemilanove arduino (forerunnor of the uno) but udev isn't assigning a device name in /dev
I have followed the following guides:
https://forums.gentoo.org/viewtopic-t-907860.html
https://wiki.gentoo.org/wiki/Arduino
http://playground.arduino.cc/linux/gentoo
I have even tried using a udev rule as mentioned in the gentoo arduino guide:
Code: | SUBSYSTEMS=="usb", ATTRS{product}=="FT232R USB UART", ATTRS{manufacturer}=="FTDI", NAME="ttyUSB%n", SYMLINK+="arduino" |
/dev/ttyUSBx isn't being created, in fact there are no /dev/ttyUSB devices created in /dev/
Before plugging the arduino ls /dev:
Code: | ashmem cpu hidraw2 loop2 mem port ram13 ram8 sda3 snd tty11 tty2 tty28 tty36 tty44 tty52 tty60 ttyS2 usbmon6 vcs4 vcsa11 vcsa9
autofs cpu_dma_latency hpet loop3 mqueue ppp ram14 ram9 sda5 sr0 tty12 tty20 tty29 tty37 tty45 tty53 tty61 ttyS3 usbmon7 vcs5 vcsa12 vga_arbiter
block cuse initctl loop4 network_latency ptmx ram15 random sda6 stderr tty13 tty21 tty3 tty38 tty46 tty54 tty62 urandom vcs vcs6 vcsa2 zero
bsg disk input loop5 network_throughput pts ram2 root sda7 stdin tty14 tty22 tty30 tty39 tty47 tty55 tty63 usbmon0 vcs1 vcs7 vcsa3
bus fd kmem loop6 null ram0 ram3 rtc sda8 stdout tty15 tty23 tty31 tty4 tty48 tty56 tty7 usbmon1 vcs10 vcs8 vcsa4
cdrom full kmsg loop7 nvidia0 ram1 ram4 rtc0 sg0 tty tty16 tty24 tty32 tty40 tty49 tty57 tty8 usbmon2 vcs11 vcs9 vcsa5
char fuse log loop-control nvidiactl ram10 ram5 sda sg1 tty0 tty17 tty25 tty33 tty41 tty5 tty58 tty9 usbmon3 vcs12 vcsa vcsa6
console hidraw0 loop0 mapper nvram ram11 ram6 sda1 shm tty1 tty18 tty26 tty34 tty42 tty50 tty59 ttyS0 usbmon4 vcs2 vcsa1 vcsa7
core hidraw1 loop1 mcelog oldmem ram12 ram7 sda2 snapshot tty10 tty19 tty27 tty35 tty43 tty51 tty6 ttyS1 usbmon5 vcs3 vcsa10 vcsa8 |
After plugging the arduino in only the symlink is created:
Code: | ls -hl /dev
total 0
lrwxrwxrwx 1 root root 15 Sep 25 20:17 arduino -> bus/usb/004/002
crw------- 1 root root 10, 61 Sep 25 19:54 ashmem
crw------- 1 root root 10, 235 Sep 25 19:54 autofs
drwxr-xr-x 2 root root 700 Sep 25 19:54 block
drwxr-xr-x 2 root root 80 Sep 25 19:54 bsg
drwxr-xr-x 3 root root 60 Sep 25 19:54 bus
lrwxrwxrwx 1 root root 3 Sep 25 19:54 cdrom -> sr0
drwxr-xr-x 2 root root 3.9K Sep 25 20:17 char
crw------- 1 root root 5, 1 Sep 25 19:55 console
lrwxrwxrwx 1 root root 11 Sep 25 19:54 core -> /proc/kcore
drwxr-xr-x 6 root root 140 Sep 25 19:54 cpu
crw------- 1 root root 10, 60 Sep 25 19:54 cpu_dma_latency
crw------- 1 root root 10, 62 Sep 25 19:54 cuse
drwxr-xr-x 5 root root 100 Sep 25 19:54 disk
lrwxrwxrwx 1 root root 13 Sep 25 19:54 fd -> /proc/self/fd
crw-rw-rw- 1 root root 1, 7 Sep 25 19:54 full
crw-rw-rw- 1 root root 10, 229 Sep 25 19:54 fuse
crw------- 1 root root 251, 0 Sep 25 19:54 hidraw0
crw------- 1 root root 251, 1 Sep 25 19:54 hidraw1
crw------- 1 root root 251, 2 Sep 25 19:54 hidraw2
crw------- 1 root root 10, 228 Sep 25 19:54 hpet
prw------- 1 root root 0 Sep 25 19:54 initctl
drwxr-xr-x 4 root root 540 Sep 25 19:54 input
crw-r----- 1 root kmem 1, 2 Sep 25 19:54 kmem
crw------- 1 root root 1, 11 Sep 25 19:54 kmsg
srw-rw-rw- 1 root root 0 Sep 25 19:55 log
brw-rw---- 1 root disk 7, 0 Sep 25 19:54 loop0
brw-rw---- 1 root disk 7, 1 Sep 25 19:54 loop1
brw-rw---- 1 root disk 7, 2 Sep 25 19:54 loop2
brw-rw---- 1 root disk 7, 3 Sep 25 19:54 loop3
brw-rw---- 1 root disk 7, 4 Sep 25 19:54 loop4
brw-rw---- 1 root disk 7, 5 Sep 25 19:54 loop5
brw-rw---- 1 root disk 7, 6 Sep 25 19:54 loop6
brw-rw---- 1 root disk 7, 7 Sep 25 19:54 loop7
crw-rw---- 1 root disk 10, 237 Sep 25 19:54 loop-control
drwxr-xr-x 2 root root 60 Sep 25 19:54 mapper
crw------- 1 root root 10, 227 Sep 25 19:54 mcelog
crw-r----- 1 root kmem 1, 1 Sep 25 19:54 mem
drwxrwxrwt 2 root root 40 Sep 25 19:54 mqueue
crw------- 1 root root 10, 59 Sep 25 19:54 network_latency
crw------- 1 root root 10, 58 Sep 25 19:54 network_throughput
crw-rw-rw- 1 root root 1, 3 Sep 25 19:54 null
crw-rw---- 1 root video 195, 0 Sep 25 19:54 nvidia0
crw-rw---- 1 root video 195, 255 Sep 25 19:54 nvidiactl
crw------- 1 root root 10, 144 Sep 25 19:54 nvram
crw------- 1 root root 1, 12 Sep 25 19:54 oldmem
crw-r----- 1 root kmem 1, 4 Sep 25 19:54 port
crw------- 1 root root 108, 0 Sep 25 19:54 ppp
crw-rw-rw- 1 root tty 5, 2 Sep 25 20:17 ptmx
drwxr-xr-x 2 root root 0 Sep 25 19:54 pts
brw-rw---- 1 root disk 1, 0 Sep 25 19:54 ram0
brw-rw---- 1 root disk 1, 1 Sep 25 19:54 ram1
brw-rw---- 1 root disk 1, 10 Sep 25 19:54 ram10
brw-rw---- 1 root disk 1, 11 Sep 25 19:54 ram11
brw-rw---- 1 root disk 1, 12 Sep 25 19:54 ram12
brw-rw---- 1 root disk 1, 13 Sep 25 19:54 ram13
brw-rw---- 1 root disk 1, 14 Sep 25 19:54 ram14
brw-rw---- 1 root disk 1, 15 Sep 25 19:54 ram15
brw-rw---- 1 root disk 1, 2 Sep 25 19:54 ram2
brw-rw---- 1 root disk 1, 3 Sep 25 19:54 ram3
brw-rw---- 1 root disk 1, 4 Sep 25 19:54 ram4
brw-rw---- 1 root disk 1, 5 Sep 25 19:54 ram5
brw-rw---- 1 root disk 1, 6 Sep 25 19:54 ram6
brw-rw---- 1 root disk 1, 7 Sep 25 19:54 ram7
brw-rw---- 1 root disk 1, 8 Sep 25 19:54 ram8
brw-rw---- 1 root disk 1, 9 Sep 25 19:54 ram9
crw-rw-rw- 1 root root 1, 8 Sep 25 19:54 random
lrwxrwxrwx 1 root root 4 Sep 25 19:54 root -> sda7
lrwxrwxrwx 1 root root 4 Sep 25 19:54 rtc -> rtc0
crw------- 1 root root 254, 0 Sep 25 19:54 rtc0
brw-rw---- 1 root disk 8, 0 Sep 25 19:54 sda
brw-rw---- 1 root disk 8, 1 Sep 25 19:54 sda1
brw-rw---- 1 root disk 8, 2 Sep 25 19:54 sda2
brw-rw---- 1 root disk 8, 3 Sep 25 19:54 sda3
brw-rw---- 1 root disk 8, 5 Sep 25 19:54 sda5
brw-rw---- 1 root disk 8, 6 Sep 25 19:54 sda6
brw-rw---- 1 root disk 8, 7 Sep 25 19:54 sda7
brw-rw---- 1 root disk 8, 8 Sep 25 19:54 sda8
crw-rw---- 1 root disk 21, 0 Sep 25 19:54 sg0
crw-rw----+ 1 root cdrom 21, 1 Sep 25 19:54 sg1
drwxrwxrwt 2 root root 100 Sep 25 20:07 shm
crw------- 1 root root 10, 231 Sep 25 19:54 snapshot
drwxr-xr-x 3 root root 320 Sep 25 19:54 snd
brw-rw----+ 1 root cdrom 11, 0 Sep 25 19:54 sr0
lrwxrwxrwx 1 root root 15 Sep 25 19:54 stderr -> /proc/self/fd/2
lrwxrwxrwx 1 root root 15 Sep 25 19:54 stdin -> /proc/self/fd/0
lrwxrwxrwx 1 root root 15 Sep 25 19:54 stdout -> /proc/self/fd/1
crw-rw-rw- 1 root tty 5, 0 Sep 25 19:54 tty
crw--w---- 1 root tty 4, 0 Sep 25 19:54 tty0
crw--w---- 1 root tty 4, 1 Sep 25 19:55 tty1
crw--w---- 1 root tty 4, 10 Sep 25 19:54 tty10
crw--w---- 1 root tty 4, 11 Sep 25 19:54 tty11
crw------- 1 root root 4, 12 Sep 25 20:17 tty12
crw--w---- 1 root tty 4, 13 Sep 25 19:54 tty13
crw--w---- 1 root tty 4, 14 Sep 25 19:54 tty14
crw--w---- 1 root tty 4, 15 Sep 25 19:54 tty15
crw--w---- 1 root tty 4, 16 Sep 25 19:54 tty16
|
Code: | lsusb
Protocol spec without prior Class and Subclass spec at line 17397
Bus 007 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 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 005: ID 0518:0001 EzKEY Corp. USB to PS2 Adaptor v1.09
Bus 001 Device 004: ID 046d:c404 Logitech, Inc. TrackMan Wheel
Bus 001 Device 003: ID 056a:00d3 Wacom Co., Ltd Bamboo Fun (CTH-661)
Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
aragorn rules.d #
|
dmesg output:
Code: | [ 1362.914049] usb 4-1: new full-speed USB device number 2 using ohci_hcd
[ 1362.977068] ohci_hcd 0000:00:12.1: GetStatus roothub.portstatus [0] = 0x00100103 PRSC PPS PES CCS
[ 1363.041057] usb 4-1: ep0 maxpacket = 8
[ 1363.053998] usb 4-1: default language 0x0409
[ 1363.063001] usb 4-1: udev 2, busnum 4, minor = 385
[ 1363.063028] usb 4-1: New USB device found, idVendor=0403, idProduct=6001
[ 1363.063035] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1363.063041] usb 4-1: Product: FT232R USB UART
[ 1363.063045] usb 4-1: Manufacturer: FTDI
[ 1363.063050] usb 4-1: SerialNumber: A8008Krs
[ 1363.063258] usb 4-1: usb_probe_device
[ 1363.063266] usb 4-1: configuration #1 chosen from 1 choice
[ 1363.065043] usb 4-1: adding 4-1:1.0 (config #1, interface 0)
[ 1363.069086] usbserial_generic 4-1:1.0: usb_probe_interface
[ 1363.069093] usbserial_generic 4-1:1.0: usb_probe_interface - got id
[ 1363.069165] drivers/usb/core/inode.c: creating file '002'
[ 1363.069212] hub 1-0:1.0: state 7 ports 6 chg 0000 evt 0010
[ 1363.069226] hub 4-0:1.0: state 7 ports 3 chg 0000 evt 0002 |
/var/log/messages
Code: | Sep 25 20:17:33 aragorn kernel: [ 1363.063258] usb 4-1: usb_probe_device
Sep 25 20:17:33 aragorn kernel: [ 1363.063266] usb 4-1: configuration #1 chosen from 1 choice
Sep 25 20:17:33 aragorn kernel: [ 1363.065043] usb 4-1: adding 4-1:1.0 (config #1, interface 0)
Sep 25 20:17:33 aragorn kernel: [ 1363.069086] usbserial_generic 4-1:1.0: usb_probe_interface
Sep 25 20:17:33 aragorn kernel: [ 1363.069093] usbserial_generic 4-1:1.0: usb_probe_interface - got id
Sep 25 20:17:33 aragorn kernel: [ 1363.069165] drivers/usb/core/inode.c: creating file '002'
Sep 25 20:17:33 aragorn kernel: [ 1363.069212] hub 1-0:1.0: state 7 ports 6 chg 0000 evt 0010
Sep 25 20:17:33 aragorn kernel: [ 1363.069226] hub 4-0:1.0: state 7 ports 3 chg 0000 evt 0002
Sep 25 20:17:33 aragorn mtp-probe: checking bus 4, device 2: "/sys/devices/pci0000:00/0000:00:12.1/usb4/4-1"
Sep 25 20:17:33 aragorn mtp-probe: bus: 4, device: 2 was not an MTP device
|
emerge --info
Code: | Portage 2.2.20.1 (python 2.7.9-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.7.3, glibc-2.20-r2, 3.3.2-gentoo x86_64)
=================================================================
System uname: Linux-3.3.2-gentoo-x86_64-AMD_Phenom-tm-_II_X4_965_Processor-with-gentoo-2.2
KiB Mem: 12306872 total, 9721072 free
KiB Swap: 4200960 total, 4200960 free
Timestamp of repository gentoo: Sat, 19 Sep 2015 04:30:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.24 p1.4) 2.24
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash: 4.3_p39::gentoo
dev-java/java-config: 2.2.0::gentoo
dev-lang/perl: 5.20.2::gentoo
dev-lang/python: 2.7.9-r1::gentoo, 3.3.5-r1::gentoo, 3.4.1::gentoo
dev-util/cmake: 3.2.2::gentoo
dev-util/pkgconfig: 0.28-r2::gentoo
sys-apps/baselayout: 2.2::gentoo
sys-apps/openrc: 0.17::gentoo
sys-apps/sandbox: 2.6-r1::gentoo
sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo
sys-devel/automake: 1.4_p6-r1::gentoo, 1.9.6-r3::gentoo, 1.10.3::gentoo, 1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils: 2.24-r3::gentoo
sys-devel/gcc: 4.7.3-r1::gentoo, 4.8.4::gentoo
sys-devel/gcc-config: 1.7.3::gentoo
sys-devel/libtool: 2.4.6::gentoo
sys-devel/make: 4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc: 2.20-r2::gentoo
Repositories:
gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
benklop
location: /var/lib/layman/benklop
masters: gentoo
priority: 0
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=4"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.lecl.net/pub/gentoo/ http://ftp.fi.muni.cz/pub/linux/gentoo/ http://gentoo.mirror.dkm.cz/pub/gentoo/"
LANG="en_GB"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fortran gdbm gif glamor gpm gtk iconv ipv6 jpeg kde kipi lcms ldap libnotify mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pulseaudio python qt3support qt4 readline sdl seccomp session spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 3dnowext 3dnow" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="af en en_US en_GB en_ZA" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.3"
|
I have udev 216 installed.
I'm using mtp.
Have some other things on usb as well like a wacom tablet which all are working 100%
The arduino ide picks up ttyS0 but avrdude fails to communicate with the arduino which is working, green light on orange light blinking. I'm using a brand new usb cable as well.
Any ideas, is something missing in my kernel, udev or something else screwed up?
Thanx
Last edited by bmeagle on Sun Sep 27, 2015 6:28 pm; edited 1 time in total |
|
Back to top |
|
|
bmeagle n00b
Joined: 30 Nov 2005 Posts: 56 Location: South Africa
|
Posted: Sun Sep 27, 2015 6:26 pm Post subject: |
|
|
I've solved this.
Something was awry with my kernel config, what I don't know.
I installed a new kernel 4.0.5, which wouldn't boot my migrated config from the old kernel.
Did default config on the new kernel with a just the necessary changes for my hardware and all is well again.
ttyUSB0 appears, demo code running on my arduino! |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|