From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Stephen Morgan" Date: Wed, 27 Apr 2005 16:18:01 +0000 Subject: RE: getting /dev entries for USB devices Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org > -----Original Message----- > From: Stephen Morgan [mailto:stephenm@glw.com] > Sent: Friday, April 22, 2005 10:02 AM > To: linux-hotplug-devel@lists.sourceforge.net > Subject: getting /dev entries for USB devices > > > Hello all, > > I'm trying to get udev to create nodes for my USB devices. There > will be several of the same device and I need their nodes named > according to their bus location. > > I created this rule file in /etc/udev/rules.d, called it 05-aa_dev.rules > > BUS="usb", PLACE="1.1", NAME="aa_dev01" > BUS="usb", PLACE="1.2", NAME="aa_dev02" > BUS="usb", PLACE="2.1", NAME="aa_dev03" > BUS="usb", PLACE="2.2", NAME="aa_dev04" > BUS="usb", PLACE="3.1", NAME="aa_dev05" > BUS="usb", PLACE="3.2", NAME="aa_dev06" > BUS="usb", PLACE="4.1", NAME="aa_dev07" > BUS="usb", PLACE="4.2", NAME="aa_dev08" > > When I plug the devices in, I see a new entry show up in > /sys/bus/usb/devices, for instance "3-1". In that directory, I > can find the idProduct and idVendor that match my device - so > far, so good. > > But nothing ever shows up in /dev. I should see one of my device > names appear, shouldn't I? > > I've read Daniel Drake's article on writing rules, but I'm sure I > could be missing something. > > Thanks for your help. > > Stephen Morgan > Is there a simple way to tell if the .rules file is being applied, I mean, other than the nodes appearing in /dev? I've tried intentionally putting typos in my file and in 50-udev.rules, but couldn't see that it affected anything. I don't see a lot of use of PLACE in .rules files, is it working okay? running Fedora Core 3 (Linux 2.6.9-1.667, which uses udev version 039) ------------------------------------------------------- SF.Net email is sponsored by: Tell us your software development plans! Take this survey and enter to win a one-year sub to SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey Click here to start! http://www.idcswdc.com/cgi-bin/survey?id5hix _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel