Date: Tue, 24 May 2005 11:46:50 +0200 From: Hans Petter Selasky <hselasky@c2i.net> To: Daniel Rucci <rucci@warganizer.com> Cc: freebsd-usb@freebsd.org Subject: Re: force power over usb Message-ID: <200505241146.52155.hselasky@c2i.net> In-Reply-To: <429243E9.1050403@warganizer.com> References: <428A2350.6000603@warganizer.com> <200505231105.43045.hselasky@c2i.net> <429243E9.1050403@warganizer.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 23 May 2005 22:58, Daniel Rucci wrote:
>
> >bInterfaceClass is "UICLASS_CDC_DATA".
> >
> >bInterfaceSubClass is "UISUBCLASS_DATA".
> >
> >Maybe "umodem" supports this? Try "kldload umodem" and replug your device.
> >Does it still appear as "ugen0"?
>
> kldload umodem does the trick! thanks, for future reference how did you
> figure that out from looking at that output?
I searched the sources. Sources can be installed from "sysinstall" if they are
not installed already.
The interface classes are defined in "/sys/dev/usb/usb.h" (see UICLASS_XXX and
UISUBCLASS_XXX). If you type "cat /sys/dev/usb/* |more" and press enter, then
type "/UICLASS_CDC" and press enter. Then use the "n"-key to search forth and
"N"-key to search back until you find something that matches your USB
descriptors.
Then scroll up to find the file name:
__FBSDID("$FreeBSD: src/sys/dev/usb/umodem.c,v 1.57 2005/01/31 13:58:10
akiyama Exp $");
Then check if there is a module that compiles this file:
cat `find /sys/modules |grep Makefile` | more
(search for "umodem.c")
If no match try kernel configuration files:
cat /sys/conf/* | more
(search for "umodem.c")
This might not be so easy, so in the future maybe something like
"kldload /boot/kernel/usb*ko" will load all USB drivers?
--HPS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200505241146.52155.hselasky>
