Neil Bothwick wrote:
> On Fri, 03 Feb 2006 12:45:51 +0100, Maarten wrote:
> 
> 
>>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
> 
> 
> The latter one is written by a Gentoo dev, so I'm surprised you think it
> doesn't work with Gentoo
> 
>>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*:
> 
> 
> Have you tried udevinfo -q path -n /dev/xxx to identify the correct path
> in /sys? Do you have CONFIG_SYSFS=y in your kernel config?

Ok. I think found out what went wrong.  Following the 'Everything is a
file" linux philosophy I ran udevinfo on the files under that directory.
That gives the less than helpful error:

"couldn't get the class device"

Witness my history...  :-(

  686  udevinfo -a -p /sys/class/tty/
  689  udevinfo -a -p /sys/class/tty/ttyUSB0/dev
  690  udevinfo -a -p /sys/class/tty/ttyUSB1/dev
  698  udevinfo -a -p /sys/block/sda/dev
  699  udevinfo -a -p /sys/class/nvidia/nvidia0/dev
  700  udevinfo -a -p /sys/class/net/eth0/type
  701  udevinfo -a -p /sys/class/sound/dsp/dev
  702  udevinfo -a -p /sys/class/misc/rtc/dev
  706  udevinfo -a -p  /sys/class/usb/lp0/dev


I think, for the sake of clarity, that the howto might have mentioned
this explicitly.  So one must not try to run it on the "dev" file but
just on the underlying directory. Which is what the doc says, but it is
not very intuitive to do so, and I have an itchy [TAB] key... Oh well.

All is cleared up now.  Sorry for bothering you.

Maarten
-- 
gentoo-user@gentoo.org mailing list

Reply via email to