Re: Automatic Loading of device driver
Re: Automatic Loading of device driver
- Subject: Re: Automatic Loading of device driver
- From: "Sean Morrell" <email@hidden>
- Date: Fri, 26 Oct 2001 09:32:06 -0700
email@hidden writes:
>
Did you implement a probe function for your device?
I have inserted a probe function with a IOLog statement. But if the
driver is being initialized and probed, there is no sign of it in
system.log. Like the AppleUSBAudio driver, I have log messages
throughout, even init and free. But no log messages are written to the
system.log. So I don't think the driver is making it to the active
matching step. Unless the log information is written to a different log
during system startup. And I think the driver's personality properties
are fine, since my driver loads manually. Of course, I could certainly
have some missing, mismatched or properties otherwise found unappealing to
the Kernel Extension Manager when attempting to load a driver at system
startup.
I described in my first message that the AppleUSBAudio driver shipped with
OS X (or 10.1) wouldn't load. The reason: at some point I had renamed it,
changing the extension from "kext" to "keep". Once I corrected the name,
it loads automatically on system startup when the audio device is powered
on.
If I compile the AppleUSBAudio driver myself and place the kext in the
Extensions directory, it will not load. Yet the AppleUSBAudio driver
shipped with the OS does load. So any driver I compile, Apple's or mine,
will not load at system startup.
What else should I try?
Is there another log besides system.log I should be inspecting?
>
>
>
Very few drivers are loaded automatically but more as the process of
>
discoveriung devices is done. The Apple USB driver will match on any
>
device that is conformant to the USB spec (some USB audio interface
>
magic number I don't remember from the top of my head). If you want your
>
driver to beloaded instead , you can implement a probe function that
>
could check some specific USB property (name?) and return a higher score.
>
>
Laurent
>
>
>
On Thursday, October 25, 2001, at 08:22 PM, Sean Morrell wrote:
>
>
> What is required in having a system automatically load a driver during
>
> system startup or power on of the USB device? I can manually load and
>
> unload the driver fine. And the driver KEXT is in the Extensions
>
> directory. When I first started develoment on the driver, I remember
>
> the
>
> AppleUSBAudio driver would automatically load for our device. The Apple
>
> driver is still in the Extensions directory. Even it doesn't auto load
>
> any longer.
>
>
>
Laurent Cerveau
>
Applications Division
>
Apple Computer Inc.
>
email@hidden