Re: Udev rule for Digi Edgeport 8 (multi-port USB-serial adapter)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Aug 4, 2010 at 18:32, Kay Sievers <kay.sievers@xxxxxxxx> wrote:
> On Thu, Aug 5, 2010 at 03:45, Philip Tait <philip@xxxxxxxx> wrote:
>> I have been trying to overcome the loss of the '%e' enumeration
>> variable to make a version of the Edgeport rules that will work with
>> the current version of Udev.
>>
>> Old version:
>>
>> BUS="usb" SYSFS{idVendor}="1608" SYSFS{idProduct}=="0244"
>> SYSFS{serial}=="*-0" NAME="%k" SYMLINK="ttyEDGE8_0_%e"
>> BUS="usb" SYSFS{idVendor}="1608" SYSFS{idProduct}=="0244"
>> SYSFS{serial}=="*-1" NAME="%k" SYMLINK="ttyEDGE8_1_%e"
>>
>> Replacing it with '%m" doesn't work, because then the numbering is
>> dependent on the presence of other USB-serial devices.
>>
>> I tried this:
>>
>> ENV{portnum}=ATTRS{port_number}
>> BUS=="usb",SYSFS{idVendor}=="1608",SYSFS{idProduct}=="0244",SYSFS{serial}=="I01846004-0",
>> NAME="%k",SYMLINK="ttyEDGE8_%E{portnum}"`
>> BUS=="usb",SYSFS{idVendor}=="1608",SYSFS{idProduct}=="0244",SYSFS{serial}=="I01846004-1",
>> NAME="%k",SYMLINK="ttyEDGE8_%E{portnum}"`
>> BUS=="usb",SYSFS{idVendor}=="1608",SYSFS{idProduct}=="0244",SYSFS{serial}=="I01846004-2",
>> NAME="%k",SYMLINK="ttyEDGE8_%E{portnum}"`
>> BUS=="usb",SYSFS{idVendor}=="1608",SYSFS{idProduct}=="0244",SYSFS{serial}=="I01846004-3",
>> NAME="%k",SYMLINK="ttyEDGE8_%E{portnum}"`
>>
>> but this didn't work, I think because the 'port_number' attribute is
>> defined at a different hierarchical level than the 'serial' attribute:
>
> I guess that's all covered by the standard: /dev/serial/by-*/.

It certainly is!  Thanks for the pointer, I had no idea that
capability had been added.

I need to have this functionality on a system running Udev version
125, kernel version 2.6.26

Is it safe to update Udev to a newer version that has this capability
(say 146), (I have to keep the same kernel version), or is it better
to try to update the rules to implement this feature with version 125?

-- 
Philip J. Tait
Software Engineer, FMOS
http://subarutelescope.org
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux