Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Mar 2004 00:53:39 -0800 (PST)
From:      admin2@forkthepenguin.com
To:        freebsd-questions@freebsd.org
Subject:   Re: USB Driver Questions
Message-ID:  <Pine.BSI.4.58L.0403100051070.8550@vp4.netgate.net>
In-Reply-To: <Pine.BSI.4.58L.0403092255540.8550@vp4.netgate.net>
References:  <Pine.BSI.4.58L.0403092255540.8550@vp4.netgate.net>

next in thread | previous in thread | raw e-mail | index | archive | help

I figured it out. To dynamically load/unload the driver it has to be
excluded from the kernel config. Only then will the kld* tools allow to
manipulate the module.

Chris

On Tue, 9 Mar 2004 admin2@forkthepenguin.com wrote:

>
> How does one force the use of a particular driver for a USB device without
> removing the preferred driver from the kernel conf? For example, I have an
> HID compliant device that is handled by the uhid driver, however I wish to
> use the ugen driver temporarily for some testing. I created the
> appropriate entry in /etc/usbd.conf with :
>
> devname "ugen[0-9]+"
>
> But uhid0 continues to be used after restarting usbd. I also tried to
> unload the uhid kernel module with kldunload, but I received an error that
> the module could not be found even though it showed up under kldstat.
> Recompiling the kernel without uhid support caused the desired effect, but
> I'd rather not have to reboot everytime I want to switch drivers.
>
> Thanks in advance,
>
> Chris
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.4.58L.0403100051070.8550>