View previous topic :: View next topic |
Author |
Message |
gjaffe n00b
Joined: 09 Jun 2005 Posts: 6
|
Posted: Thu Jun 09, 2005 3:03 am Post subject: Where are my USB special files? |
|
|
I just installed gentoo from the "Packages" cdrom (2005.0) with the 2.6.11-r3 kernel. I followed the directions for configuring the kernel for usb support, but I can't seem to find any usb special files in /dev.
I want to use jpilot to sync with my Treo 650 via usb. I thought I should use /dev/ttyUSB1 to link to /dev/pilot, but I don't have anything in /dev that starts with 'ttyUSB'. Nor do I have a /dev/usb subdirectory.
Can someone please tell me how I can get these special files (or which special file to use)?
Thanks,
Gary |
|
Back to top |
|
|
Sith_Happens Veteran
Joined: 15 Dec 2004 Posts: 1807 Location: The University of Maryland at College Park
|
Posted: Thu Jun 09, 2005 5:23 am Post subject: |
|
|
What's the tail end of dmesg look like when you plug it in? _________________ "That question was less stupid; though you asked it in a profoundly stupid way."
I'm the brains behind Jackass! | Tutorials: Shorewall |
|
Back to top |
|
|
gjaffe n00b
Joined: 09 Jun 2005 Posts: 6
|
Posted: Thu Jun 09, 2005 11:58 am Post subject: |
|
|
I get the following output from dmesg when I press the sync button on my Treo.
usb 2-1: new full speed USB device using uhci_hcd and address 3
While the Treo was trying to sync, lsusb said
Bus 002 Device 003: ID 0830:0061 Palm, Inc.
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 002: ID 047d:102d Kensington
Bus 001 Device 001: ID 0000:0000
I also have a Kinsington usb wheel mouse.
Also, while it's trying to sync, I still don't have a special file in /dev that starts with ttyUSB or a usb subdirectory.
Thanks,
Gary |
|
Back to top |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6067 Location: Removed by Neddy
|
Posted: Thu Jun 09, 2005 12:13 pm Post subject: |
|
|
do you have USB tty support compiled for your kernel? _________________
Quote: | Removed by Chiitoo |
|
|
Back to top |
|
|
gjaffe n00b
Joined: 09 Jun 2005 Posts: 6
|
Posted: Thu Jun 09, 2005 9:30 pm Post subject: |
|
|
Good point.
After recompiling my kernel with USB tty support I get the following from dmesg
usb 2-1: new full speed USB device using uhci_hcd and address 3
visor 2-1:1.0: Handspring Visor / Palm OS converter detected
usb 2-1: Handspring Visor / Palm OS converter now attached to ttyUSB0
usb 2-1: Handspring Visor / Palm OS converter now attached to ttyUSB1
which is more than I got before.
But I still don't have /dev/ttyUSB0 or /dev/ttyUSB1 in my /dev directory.
Any other thoughts?
Thanks,
Gary |
|
Back to top |
|
|
Sith_Happens Veteran
Joined: 15 Dec 2004 Posts: 1807 Location: The University of Maryland at College Park
|
Posted: Thu Jun 09, 2005 11:39 pm Post subject: |
|
|
Code: | ls -R /dev | grep ttyUSB0 | ? _________________ "That question was less stupid; though you asked it in a profoundly stupid way."
I'm the brains behind Jackass! | Tutorials: Shorewall |
|
Back to top |
|
|
Unther Apprentice
Joined: 20 Feb 2005 Posts: 163
|
Posted: Fri Jun 10, 2005 12:08 am Post subject: |
|
|
This would be a bit(?, or more) of a hack, but you could write a udev rule to attach the palm to whatever node you like (and know where to find). |
|
Back to top |
|
|
gjaffe n00b
Joined: 09 Jun 2005 Posts: 6
|
Posted: Fri Jun 10, 2005 2:28 am Post subject: |
|
|
Sith_Happens wrote: | Code: | ls -R /dev | grep ttyUSB0 | ? |
This produces no output.
The kernel seems to be aware of ttyUSB0 and ttyUSB1. Perhaps if someone could post the major and minor numbers for these 2 special files for kernel-2.6.11, I could try doing a mknod command to create these special files myself. |
|
Back to top |
|
|
gjaffe n00b
Joined: 09 Jun 2005 Posts: 6
|
Posted: Fri Jun 10, 2005 2:37 am Post subject: |
|
|
Unther wrote: | This would be a bit(?, or more) of a hack, but you could write a udev rule to attach the palm to whatever node you like (and know where to find). |
I tried placing the following line in a file called /etc/udev/rules.d/10-treo.rules and rebooting. But this had no effect.
KERNEL="ttyUSB[0-9]*", NAME="tts/USB%n", GROUP="tty", MODE="0600" |
|
Back to top |
|
|
frostschutz Advocate
Joined: 22 Feb 2005 Posts: 2977 Location: Germany
|
Posted: Fri Jun 24, 2005 9:18 pm Post subject: |
|
|
I have the same problem. Just reinstalled Gentoo -- USB devices (printer and scanner) get detected fine by the kernel, but do not turn up in /dev. In my old Gentoo, I had /dev/usb/scanner0 and /dev/usb/printer0 (or lp0, don't remember exactly), in new Gentoo, I don't have *anything* usb in /dev.
Udev is emerged and enabled according to the Gentoo udev guide. Hotplug and Coldplug are both emerged and rc-added and started at boot time. During bootup, they both give me '[OK]' messages.
Any clues what could be wrong? I don't remember doing any special extra configuration for USB devices on my old Gentoo.
EDIT: Following another thread, where udev rules were being ignored, I updated udev to 058. Didn't fix the problem unfortunately. |
|
Back to top |
|
|
Maedhros Bodhisattva
Joined: 14 Apr 2004 Posts: 5511 Location: Durham, UK
|
Posted: Fri Jun 24, 2005 9:58 pm Post subject: |
|
|
Moved from Installing Gentoo to Kernel & Hardware. _________________ No-one's more important than the earthworm. |
|
Back to top |
|
|
gjaffe n00b
Joined: 09 Jun 2005 Posts: 6
|
Posted: Fri Jun 24, 2005 10:03 pm Post subject: |
|
|
I was new to gentoo, so between this problem and a version problem with gcc which kept me from installing some packages I needed, I finally gave up and tried ubuntu. My usb hot-sync with my Treo 650 worked with ubuntu, but I had to sync with Kpilot before I could get it to work with anything else. Perhaps if you try sync'ing with Kpilot you'll have better luck. |
|
Back to top |
|
|
nukem996 l33t
Joined: 13 Nov 2003 Posts: 776
|
Posted: Sat Jun 25, 2005 12:46 am Post subject: |
|
|
Im having the same problem. After writing the Palm rule I get /dev/pilot but it does not work. I do not get /dev/ttyUSB0 /dev/ttyUSB1 /dev/usb/tts/0 /dev/usb/tts/1. This just happened when I switched from devfs to udev yesterday(thats all I changed PDA was working before that), my usb harddrive and printer work fine. Any ideas?
Thanks
nuke |
|
Back to top |
|
|
frostschutz Advocate
Joined: 22 Feb 2005 Posts: 2977 Location: Germany
|
Posted: Sat Jun 25, 2005 4:51 pm Post subject: |
|
|
Tried updating the kernel to 2.6.12, but no luck - no USB devices, and Firewire suddenly causes kernel panics. Back to 2.6.11.12, Firewire works fine (I get the /dev/sda* devices too), but USB is missing.
I played around a bit with the udev commands, and that's what I've got:
Code: | # udevinfo -a -p /sys/bus/usb/devices/2-2/
udevinfo starts with the device the node belongs to and then walks up the
device chain, to print for every device found, all possibly useful attributes
in the udev key format.
Only attributes within one device section may be used together in one rule,
to match the device for which the node will be created.
looking at class device '/sys/bus/usb/devices/2-2':
SUBSYSTEM=="unknown"
SYSFS{bConfigurationValue}=="1"
SYSFS{bDeviceClass}=="ff"
SYSFS{bDeviceProtocol}=="ff"
SYSFS{bDeviceSubClass}=="00"
SYSFS{bMaxPower}==" 2mA"
SYSFS{bNumConfigurations}=="1"
SYSFS{bNumInterfaces}==" 1"
SYSFS{bcdDevice}=="0100"
SYSFS{bmAttributes}=="c0"
SYSFS{configuration}==""
SYSFS{detach_state}=="0"
SYSFS{devnum}=="2"
SYSFS{idProduct}=="011d"
SYSFS{idVendor}=="04b8"
SYSFS{manufacturer}=="EPSON"
SYSFS{maxchild}=="0"
SYSFS{product}=="EPSON Scanner"
SYSFS{speed}=="12"
SYSFS{version}==" 1.10" |
So it seems it sees my USB scanner just fine. The only weird entry I can make out is the SUBSYSTEM=="unknown" one. I expected USB or something similar here. Could that be the problem? |
|
Back to top |
|
|
dsd Developer
Joined: 30 Mar 2003 Posts: 2162 Location: nr London
|
Posted: Sat Jun 25, 2005 5:09 pm Post subject: |
|
|
usb scanner driver was removed a long time ago. it is now done entirely in userspace via libusb and sane. _________________ http://dev.gentoo.org/~dsd |
|
Back to top |
|
|
frostschutz Advocate
Joined: 22 Feb 2005 Posts: 2977 Location: Germany
|
Posted: Sat Jun 25, 2005 5:55 pm Post subject: |
|
|
Riiight. Forget I said anything. |
|
Back to top |
|
|
tuber Apprentice
Joined: 12 Nov 2004 Posts: 267
|
Posted: Sun Jun 26, 2005 10:57 pm Post subject: |
|
|
Look in Code: | /dev/tts/USB0
/dev/tts/USB1 |
|
|
Back to top |
|
|
nukem996 l33t
Joined: 13 Nov 2003 Posts: 776
|
Posted: Mon Jun 27, 2005 3:13 am Post subject: |
|
|
I dont have /dev/tts :\ |
|
Back to top |
|
|
tuber Apprentice
Joined: 12 Nov 2004 Posts: 267
|
Posted: Mon Jun 27, 2005 5:05 am Post subject: |
|
|
How long did you wait after hitting the HotSync button before checking for the existence of the files? I noticed that it can take 5 or 10 seconds on my machine. |
|
Back to top |
|
|
nukem996 l33t
Joined: 13 Nov 2003 Posts: 776
|
Posted: Mon Jun 27, 2005 5:14 am Post subject: |
|
|
Ive waited till my Palm errors out and nothing. I always get this in my kernel though
Code: |
[ 1977.243957] usb 3-1: new full speed USB device using uhci_hcd and address 3
[ 1977.337189] visor 3-1:1.0: Handspring Visor / Palm OS converter detected
[ 1977.338140] usb 3-1: Handspring Visor / Palm OS converter now attached to ttyUSB0
[ 1977.339058] usb 3-1: Handspring Visor / Palm OS converter now attached to ttyUSB1
[ 2108.155363] usb 3-1: USB disconnect, address 3
[ 2108.164144] visor ttyUSB0: Handspring Visor / Palm OS converter now disconnected from ttyUSB0
[ 2108.180222] visor ttyUSB1: Handspring Visor / Palm OS converter now disconnected from ttyUSB1
[ 2108.187597] visor 3-1:1.0: device disconnected
|
I never see ttyUSB0 or ttyUSB1. Any ideas? |
|
Back to top |
|
|
tuber Apprentice
Joined: 12 Nov 2004 Posts: 267
|
Posted: Mon Jun 27, 2005 5:25 am Post subject: |
|
|
Are you checking for the files before or after the Palm times out? |
|
Back to top |
|
|
nukem996 l33t
Joined: 13 Nov 2003 Posts: 776
|
Posted: Mon Jun 27, 2005 5:29 am Post subject: |
|
|
From the second I hit the button till a second after it times out(I check once more after it times out) |
|
Back to top |
|
|
bvcarter n00b
Joined: 22 Mar 2005 Posts: 15
|
Posted: Wed Jul 13, 2005 7:01 am Post subject: |
|
|
I am having pretty much the same problem. I have everything set up according to all the docs on the Gentoo site (I think at least) and I get this from dmesg when I hit hotsync (Palm Zire):
Code: |
usb 3-2: new full speed USB device using uhci_hcd and address 5
|
It does not create my ttyUSB0 or ttyUSB1 files in /dev. I looked in /dev/tts, but all that was there was devices 1 to 40. As far as my rules I have these entries in /etc/udev/rules.d/50-udev.rules:
Code: |
KERNEL="pilot", NAME="%k", GROUP="uucp"
BUS="usb", SYSFS{product}="Palm Handheld", KERNEL="ttyUSB*", SYMLINK="pilot"
|
I know I am probably doing something wrong in the rules. I was having difficulty with the rules because the docs were saying to locate the device in /sys, but I was having difficulty finding it. I was thinking maybe they were not being created. As you can probably tell, I do not know beans about udev. |
|
Back to top |
|
|
bvcarter n00b
Joined: 22 Mar 2005 Posts: 15
|
Posted: Wed Jul 13, 2005 9:19 am Post subject: |
|
|
I finally got mine working. I found some information at gentoo-wiki.org that really helped. I did not realize there was a kernel module I was missing:
Code: |
Device Drivers --->
USB Support --->
USB Serial Converter Support --->
<M> USB Handspring Visor / Palm m50x / Sony Clie Driver
|
I recompiled with that driver and updated my rules in /etc/udev/rules.d/10-visor.rules:
Code: |
BUS="usb", SYSFS{product}="Palm Handheld", NAME="pilot", OWNER="root", GROUP="usb", MODE="0660"
|
I am now syncing my Palm Zire with my Gentoo Gnome desktop. |
|
Back to top |
|
|
GungHo Apprentice
Joined: 27 Aug 2004 Posts: 254
|
Posted: Fri Jul 15, 2005 8:50 am Post subject: |
|
|
Hi,
after doing an upgrade from gentoo-sources-2.6.11-r6 to 2.6.12-r4 I have got the same problem that you describe. But I have seen the visor module when doing a modprobe . I also looked like all USB related modules were present, another /dev/ttyUSB entry from another device is also present . Looks that in my case only my Visor has a prob, but I'll have to do further investigations |
|
Back to top |
|
|
|