Udev - Hot/Cold Plugging and Sparc
First of thank you Kay and Greg, with all the information you have provided, I was able to make a usable udev package. Now I'm working on getting the same package to recognize some exotic hardware and hope you guys can provide some guidance.
On the x86, the rtc module gets located ok and loads, while on the sparc it doesn't seem to ever find it, not sure if it's a script problem, udev problem, or it's a module issue. I do know when I modprobe rtc, it shows up, but when I run udevinfo, I don't see enough useful information to create a rule. Output below.
udevinfo -a -p /sys/class/misc/rtc
udevinfo starts with the device the node belongs to and then walks up the device chain, to print for every device found, all possibly useful attributes
in the udev key format.
Only attributes within one device section may be used together in one rule, to match the device for which the node will be created.
looking at device '/class/misc/rtc':
KERNEL="rtc"
SUBSYSTEM="misc"
SYSFS{dev}="10:135"Signature · 15 lines
---- Jim Gifford [email protected] ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 3 lines · Jim Gifford
On the x86, the rtc module gets located ok and loads, while on the sparc it doesn't seem to ever find it, not sure if it's a script problem, udev problem, or it's a module issue. I do know when I modprobe rtc, it shows
It's a module issue. At least on Debian x86 systems, rtc.ko is loaded because I manually added an alias for pnp:dPNP0b00 and IIRC sparc systems do not have a PNP subsystem which could be used for this (maybe sbus? Do we need some kind of OF-based coldplugging?).
But anyway, what is the point of building the rtc driver modular? Every normal system needs it.
Signature · 13 lines
ciao, Marco ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 10 lines · Marco d'Itri
Quoted 3 lines · Jim Gifford
On the x86, the rtc module gets located ok and loads, while on the sparc it doesn't seem to ever find it, not sure if it's a script problem, udev problem, or it's a module issue. I do know when I modprobe rtc, it shows
It's a module issue. At least on Debian x86 systems, rtc.ko is loaded because I manually added an alias for pnp:dPNP0b00 and IIRC sparc systems do not have a PNP subsystem which could be used for this (maybe sbus? Do we need some kind of OF-based coldplugging?).
well, in some sense OBP is PnP subsystem for sparc - it provides complete device tree before system is even booted.
- -andrey
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFD0F00R6LMutpd94wRAuPiAKC2aanP80s34BiFoN06f65eQQDzFACcDQn9 /DBqptbC+WzbmBYvLChfDsM=AhR4
-----END PGP SIGNATURE-----
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel