From owner-freebsd-usb@FreeBSD.ORG Tue May 24 09:46:09 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7344016A41C for ; Tue, 24 May 2005 09:46:09 +0000 (GMT) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe06.swip.net [212.247.154.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id E942643D1D for ; Tue, 24 May 2005 09:46:08 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from mp-216-44-138.daxnet.no ([193.216.44.138] verified) by mailfe06.swip.net (CommuniGate Pro SMTP 4.3c5) with ESMTP id 364634239; Tue, 24 May 2005 11:46:03 +0200 From: Hans Petter Selasky To: Daniel Rucci Date: Tue, 24 May 2005 11:46:50 +0200 User-Agent: KMail/1.7 References: <428A2350.6000603@warganizer.com> <200505231105.43045.hselasky@c2i.net> <429243E9.1050403@warganizer.com> In-Reply-To: <429243E9.1050403@warganizer.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200505241146.52155.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: force power over usb X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hselasky@c2i.net List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 May 2005 09:46:09 -0000 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