From mboxrd@z Thu Jan 1 00:00:00 1970 From: Terry Barnaby Date: Fri, 03 Jun 2005 13:33:55 +0000 Subject: Re: Question on how to get custom kernel module to work with udev Message-Id: <42A05C43.5080707@beam.ltd.uk> List-Id: References: <42A05A1C.80101@beam.ltd.uk> In-Reply-To: <42A05A1C.80101@beam.ltd.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org Terry Barnaby wrote: > Hi, >=20 > I have a custom kernel device driver module for a PCI hardware device=20 > that I would like > to integrate with UDEV to get UDEV to generate the /dev nodes. >=20 > I am using Fedora Core 3. > I have not been able to make this work so far, so any ideas ? >=20 > When the device is loaded /sbin/hotplug is called with the environment: >=20 > export SUBSYSTEM=3Ddrivers > export DEVPATH=3D/bus/pci/drivers/admxrc2 > export PATH=3D/sbin:/bin:/usr/sbin:/usr/bin > export ACTION=ADd > export PWD=3D/ > export SHLVL=3D1 > export HOME=3D/ > export SEQNUMx5 > export _=3D/bin/env >=20 > I have added a file /etc/udev/rules.d/40-admxrc.rules with the contents: >=20 > KERNEL=3D"admxrc2", NAME=3D"admxrcii%k" > SYSFS{vendor}=3D"0x4144", NAME=3D"admxrciii%k" >=20 > The two line are alternate versions for testing. >=20 > I have tried setting the udev config parameter "udev_log" to "yes" and > do get logs when other drivers are loaded. However when I do a > "rmmod admxrc2; modprobe admxrc2" no log information is printed. >=20 > 1. Is there a way to get more debug information out of udev ? > 2. Is there some special thing I need to do in the device module ? > 3. Is there something wround with the configuration ? >=20 > Cheers >=20 > Terry >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by Yahoo. > Introducing Yahoo! Search Developer Network - Create apps using Yahoo! > Search APIs Find out how you can build Yahoo! directly into your own > Applications - visit http://developer.yahoo.net/?fr=3Doffad-ysdn-ostg-q22= 005 > _______________________________________________ > 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 Some more information on this: I have enabled debugiing in the udev sources and now see an error displayed in the /var/log/messages file: Jun 3 14:31:07 beam1 udev[15275]: main: looking at '/bus/pci/drivers/admxr= c2' Jun 3 14:31:07 beam1 udev[15275]: main: not a block or class device This seems to sugest that I need to do something specific in the device driver module to get udev to work ??? Terry ------------------------------------------------------- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=3Doffad-ysdn-ostg-q22005 _______________________________________________ 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