Hello friends, I wonder if anyone can help me out on this. I was learning to write a basic dummy device driver from "Device Driver Tutorial" (http://docs.sun.com/app/docs/doc/817-5789/)
The code I inherited from the book compiled successfully on my computer. I use Opensolaris 2009.06, sunstudio compiler, amd64. I have placed the dummy.conf in /usr/kernel/drv/amd64 and created the soft-link to /tmp/dummy in /usr/kernel/drv/amd64. When I tried to add the driver using #add_drv dummy I got the error: devfsadm: driver failed to attach: dummy Warning: Driver (dummy) successfully added to system but failed to attach Even I am not able to get the notices about _info and _init in /var/adm/messages. The book gives 2 reasons for this: - Device may not be detected correctly. - The <driver_name>.conf file is missing or wrongly placed. when I do #prtconf -D I am able to see that dummy device is there but (driver not attached) is written. Can anyone help me out??? -- Regards, Samir http://samiruce273.blogspot.com http://samirkumarmishra.blogspot.com
_______________________________________________ opensolaris-discuss mailing list [email protected]
