linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Daniel Spannbauer <ds@marco.de>
To: linux-hotplug@vger.kernel.org
Subject: Can't create a mathcing udev-rule....
Date: Tue, 14 Feb 2012 10:04:24 +0000	[thread overview]
Message-ID: <4F3A31A8.1020300@marco.de> (raw)

Hello,

I try to create a udev-rule for the USB-Devices produced by our company.
Espacially one device drives me crazy.
This is a board connects via USB, the kernel creates a tty
(/dev/ttyUSB?). Other USB-Devices can be connected to this "baseboard".

To create a unique Devicenode to that Baseboard I have to create a
UDEV-Rule. For the other devices connected to that baseboard a rule
already exists.

Here is the ruleset for our devices:

=======================# rule for io-interfaces
SUBSYSTEMS= "usb", KERNEL="ttyUSB[0-9]*", ATTR{idVendor}="1dfb",
RUN+="/usr/uti/udevscript usbmodul %k $env{ID_SERIAL_SHORT}"
# additional rule for io-interfaces to read with control485
SUBSYSTEMS="tty", KERNEL="ttyUSB[0-9]*", ACTION="add",
RUN+="/usr/uti/udevscript-485 usbmodul %k $env{ID_SERIAL_SHORT}"
SUBSYSTEMS="tty", KERNEL="ttyUSB[0-9]*", ACTION="remove",
RUN+="/usr/uti/marco-udevscript-485 usbmodul_remove %k"
# USBSTICK
SUBSYSTEMS= "usb", KERNEL="sd[a-z]1", RUN+="/usr/uti/marco-udevscript
usbstick %k"
SUBSYSTEMS= "usb", KERNEL="sd[a-z]", RUN+="/usr/uti/marco-udevscript
usbstick_device %k"
# PCAN
SUBSYSTEMS= "usb", ATTR{idVendor}="0c72", ATTR{idProduct}="000c",
RUN+="/usr/uti/udevscript pcan"
# 2a-Board
SUBSYSTEMS="usb", KERNEL="ttyUSB[0-9]*", ATTRS{idVendor}="1dfb",
ATTRS{idProduct}="0007", SYMLINK+="/dev/2a/%k"
========================

Here is a "/sbin/udevadm info --query=all --attribute-walk
--name=/dev/ttyUSB0" for that device (it is reachable over /dev/ttyUSB0):

http://pastebin.com/B8YrQSxm

I disconnect and connect that device....but nothing is created under
/dev/2a.

Any hints about this ruleset?

Regards

Daniel




-- 
Daniel Spannbauer                         Software Entwicklung
marco Systemanalyse und Entwicklung GmbH  Tel   +49 8333 9233-27 Fax -11
Rechbergstr. 4 - 6, D 87727 Babenhausen   Mobil +49 171 4033220
http://www.marco.de/                      Email ds@marco.de
Geschäftsführer Martin Reuter             HRB 171775 Amtsgericht München

             reply	other threads:[~2012-02-14 10:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-14 10:04 Daniel Spannbauer [this message]
2012-02-14 15:57 ` Can't create a mathcing udev-rule Jim Paris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F3A31A8.1020300@marco.de \
    --to=ds@marco.de \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).