linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Question on how to get custom kernel module to work with udev
@ 2005-06-03 13:24 Terry Barnaby
  2005-06-03 13:33 ` Terry Barnaby
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Terry Barnaby @ 2005-06-03 13:24 UTC (permalink / raw)
  To: linux-hotplug

Hi,

I have a custom kernel device driver module for a PCI hardware device that I would like
to integrate with UDEV to get UDEV to generate the /dev nodes.

I am using Fedora Core 3.
I have not been able to make this work so far, so any ideas ?

When the device is loaded /sbin/hotplug is called with the environment:

export SUBSYSTEM=drivers
export DEVPATH=/bus/pci/drivers/admxrc2
export PATH=/sbin:/bin:/usr/sbin:/usr/bin
export ACTION­d
export PWD=/
export SHLVL=1
export HOME=/
export SEQNUMx5
export _=/bin/env

I have added a file /etc/udev/rules.d/40-admxrc.rules with the contents:

KERNEL="admxrc2", NAME="admxrcii%k"
SYSFS{vendor}="0x4144", NAME="admxrciii%k"

The two line are alternate versions for testing.

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.

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 ?

Cheers

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=offad-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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-06-04  8:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-03 13:24 Question on how to get custom kernel module to work with udev Terry Barnaby
2005-06-03 13:33 ` Terry Barnaby
2005-06-03 20:20 ` Kay Sievers
2005-06-04  6:00 ` Terry Barnaby
2005-06-04  6:30 ` Greg KH
2005-06-04  6:32 ` Greg KH
2005-06-04  7:06 ` Terry Barnaby
2005-06-04  7:36 ` Greg KH
2005-06-04  8:14 ` Terry Barnaby

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).