Hi

I need to distinguish several, mostly identical, USB devices from each
other by assigning them unique static names. I know there are primers(*)
that describe the process, and I try to follow them, but either the
gentoo /sys/ tree is broken in some way, or my system is broken, or the
primers / howto's are incorrect...

(*) http://webpages.charter.net/decibelshelp/LinuxHelp_UDEVPrimer.html
(*) http://www.reactivated.net/udevrules.php

I'm really stuck with this, so by way of reference I tried another linux
flavour, and there the whole /sys tree and udevinfo DO work as expected.

So I need to find out what's wrong.
The docs tell you to run 'udevinfo -a -p /sys/<path>'. But under gentoo,
I cannot find the right path. This is what is listed under /sys/class/usb*:

drwxr-xr-x    2 root root 0 Feb  3 11:46 usb
drwxr-xr-x    6 root root 0 Feb  3 11:46 usb_host

The usb directory is completely empty, the usb_host directory has four
devices, being the hostcontrollers. But the attached devices are not
listed anywhere.
However, looking at another linux (Suse 10) I find three directories:

drwxr-xr-x    2 root root 0 Feb  2 16:27 usb
drwxr-xr-x   13 root root 0 Feb  2 16:27 usb_device
drwxr-xr-x    4 root root 0 Feb  2 16:27 usb_host

And indeed, under usb_device I find all my attached devices...!

Under gentoo, I don't understand what should happen, and / or why it
doesn't.  The kernel finds the device:

Feb  3 12:26:01 [kernel] usb 2-2: new full speed USB device using
uhci_hcd and address 6
Feb  3 12:26:02 [kernel] pl2303 2-2:1.0: PL-2303 converter detected

and the device gets registered under /dev and is useable:
Gentoo # ls  -la /dev/tts/
crw-rw----   1 root tty  188,  0 Feb  3 12:26 USB0

But still, no /sys/ entry to be found! Not under usb, nor anywhere else.
And this is not just that special USB device. I tried connecting mice,
memory sticks, cardreaders, network interfaces, even hubs...  nothing.


Can someone please help me ?  I've been wrestling with this issue for
weeks now... :-(

Thanks in advance,
Maarten

-- 
gentoo-user@gentoo.org mailing list

Reply via email to