wait_for_sysfs problem
Hi,
This is my first port to the group. I have an exar modem Card for which I am supporting the driver for 2.6.x kernel. The driver which I use works fine with kernel 2.6.5 ( fedora core 2 ) distribution but does not work with kernel 2.6.9( fedora core 3 which I understand incorporates the udev feature.
Also I observe that the device which is in the pci slot has a symbolic link to the "serial" driver which is in /sys/bus/pci/drivers/serial. So i am concerned that this serial driver gets installed and registers with the device before my driver. Can i write a udev rule such that my driver gets loaded and gets the symbolic link to the device in the /sys/bus/pci/driver/<driver name>/ directory.
Now during the registration of the driver I get the following /var/log/message .
wait_for_sysfs[3794]: either wait_for_sysfs (udev039) needs an update to handle the device '/class/tty/cum25' properly ( class specific file unavailable) as the sysfs-support of your device driver needs to be fixed, please report to <[email protected]>.
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 6 lines · shyam
This is my first port to the group. I have an exar modem Card for which I am supporting the driver for 2.6.x kernel. The driver which I use works fine with kernel 2.6.5 ( fedora core 2 ) distribution but does not work with kernel 2.6.9( fedora core 3 which I understand incorporates the udev feature.
Quoted 7 lines
Now during the registration of the driver I get the following
/var/log/message.wait_for_sysfs[3794]: either
wait_for_sysfs(udev039) needs an update to handle the device '/class/tty/cum25' properly ( class specific file unavailable) as the sysfs-support of your device driver needs to be fixed, please report to <[email protected]>.
Does your driver use the class driver core? Do you create a "dev" file in /sys in the class directory?
Kay
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Thanks Kay,
It would be nice if anybody could tell me how to create a "dev" file in
my /sys directory. I do create the nodes in the /dev directory. I find
some ttyMU{0-31} files in /sys/class/tty directory. They do have the same major number and minor number that I give in my make file but that is not the name that I give in the makefile. For example I give ttyMU1{a -h} in my make file which I update in the /dev directory. thanks once again,
shyam
Quoted 13 lines · Kay Sievers
Quoted 5 lines · shyam
Hi Kay,
I don't create a "dev" file in my /sys directory. How is that going to help. Please give me some pointers on that.It is needed for udev to read the major/minor to be able to create the device node. Just look at any of the other class device drivers in the kernel.
Quoted 9 lines
If you need further information, please reply to the list on the original thread. Answers may be helpful for/from others too.
Good luck,
Kay
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 2 lines · shyam
It would be nice if anybody could tell me how to create a "dev" file in my /sys directory.
You may look at:
drivers/base/class_simple.c
how a simple version of class device is doing it, which is needed for udev to create the /dev node automatically for you. If you don't need to roll you own class registration, you may even just use the class_simple and it will do it for you.
Quoted 5 lines
I do create the nodes in the /dev directory. I find
some ttyMU{0-31} files in/sys/class/ttydirectory. They do have the same major number and minor number that I give in my make file but that is not the name that I give in the makefile. For example I give ttyMU1{a -h} in my make file which I update in the /dev directory.
Hard to guess, is the driver publicly available somewhere?
Kay
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
I used the class_simple file to create a "dev" file in the /sys and I used the following functions
1)class_simple_create
2)class_simple_device_add
3)class_simple_device_remove.
Following are my observations-
a)I find my "dev" i.e. "modem" being created in /sys/class but the directory is empty. Is it that I need to make nodes inside this directory? b)Now should I make the nodes using mknod ?
While compiling the driver I *again* encountered the following message.
wait_for_sysfs[8956]: either wait_for_sysfs (udev 039) needs an update to handle the device '/class/tty/cum8' properly (class specific file unavailable) or the sysfs-support of your device's driver needs to be fixed, please report to <[email protected]>
Quoted 32 lines · Kay Sievers
Quoted 4 lines · shyam
It would be nice if anybody could tell me how to create a "dev" file in my /sys directory.
You may look at:
drivers/base/class_simple.chow a simple version of class device is doing it, which is needed for udev to create the /dev node automatically for you. If you don't need to roll you own class registration, you may even just use the
class_simpleand it will do it for you.Quoted 7 lines
I do create the nodes in the /dev directory. I find
some ttyMU{0-31} files in/sys/class/ttydirectory. They do have the same major number and minor number that I give in my make file but that is not the name that I give in the makefile. For example I give ttyMU1{a -h} in my make file which I update in the /dev directory.Hard to guess, is the driver publicly available somewhere?
Kay
Quoted 11 lines
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Hi,
I forgot to mention that I use minicom to open my device which is configured in such a way that the node to be opened is in the /dev of the filesystem. Is that problem?
Thanks,
Shyam
Quoted 26 lines · Kay Sievers
Quoted 4 lines · shyam
It would be nice if anybody could tell me how to create a "dev" file in my /sys directory.
You may look at:
drivers/base/class_simple.chow a simple version of class device is doing it, which is needed for udev to create the /dev node automatically for you. If you don't need to roll you own class registration, you may even just use the
class_simpleand it will do it for you.Quoted 7 lines
I do create the nodes in the /dev directory. I find
some ttyMU{0-31} files in/sys/class/ttydirectory. They do have the same major number and minor number that I give in my make file but that is not the name that I give in the makefile. For example I give ttyMU1{a -h} in my make file which I update in the /dev directory.
Quoted 6 lines
Hard to guess, is the driver publicly available somewhere?
Kay
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 9 lines · shyam
I used the
class_simplefile to create a "dev" file in the /sys and I used the following functions
1)class_simple_create
2)class_simple_device_add
3)class_simple_device_remove.
Following are my observations-
a)I find my "dev" i.e. "modem" being created in/sys/classbut the directory is empty. Is it that I need to make nodes inside this directory? b)Now should I make the nodes using mknod ?
I have no idea what's going on here. Is there a public place where we can get the driver to look at the sources?
Kay
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel