From owner-freebsd-usb@FreeBSD.ORG Wed Aug 17 14:00:20 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 E056F16A41F for ; Wed, 17 Aug 2005 14:00:20 +0000 (GMT) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe13.tele2.se [212.247.155.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E05D43D5C for ; Wed, 17 Aug 2005 14:00:17 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from mp-217-201-70.daxnet.no ([193.217.201.70] verified) by mailfe13.swip.net (CommuniGate Pro SMTP 4.3.4) with ESMTP id 8464887 for freebsd-usb@freebsd.org; Wed, 17 Aug 2005 16:00:15 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Wed, 17 Aug 2005 16:01:07 +0200 User-Agent: KMail/1.7 References: <4302F94D.7040607@laposte.net> <200508171426.07588.hselasky@c2i.net> <43033A68.1090000@laposte.net> In-Reply-To: <43033A68.1090000@laposte.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200508171601.08244.hselasky@c2i.net> Subject: Re: usb hid atmel kit 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: Wed, 17 Aug 2005 14:00:21 -0000 On Wednesday 17 August 2005 15:23, lepingouin.tux wrote: > Hans Petter Selasky wrote: > >On Wednesday 17 August 2005 14:12, lepingouin.tux wrote: > >>Hans Petter Selasky wrote: > >>>On Wednesday 17 August 2005 10:46, lepingouin.tux wrote: > >>>>Hi, > >>>> > >>>>I have the atmel developpement kit with at43usb355 microcontroler. This > >>>>chip have a USB hub plus a programmable function. > >>>> > >>>>I programed this function to use the HID-class driver. > >>>> > >>>>Linux can see the usb-hid function : > >>>>>usb 1-2: new full speed USB device using uhci_hcd and address 4 > >>>>>hub 1-2:1.0: USB hub found > >>>>>hub 1-2:1.0: 3 ports detected > >>>>>usb 1-2.1: new full speed USB device using uhci_hcd and address 5 > >>>>>hiddev96: USB HID v1.10 Device [crazy thing] on usb-0000:00:07.2-2.1 > >>>> > >>>>But FreeBSD can see only the usb-hub, and don't see the hid-function > >>>> > >>>>>uhub1: Atmel product 0x3355, class 9/0, rev 1.10/1.17, addr 2 > >>>>>uhub1: 3 ports with 0 removable, bus powered > >>> > >>>Is your USB controller USB 2.0 capable. What does "dmesg |grep usb" show > >>> ? > >>> > >>>--HPS > >> > >>My usb controler is an OHCI controler : > >> > >>ohci0: mem 0xd1002000-0xd1002fff irq 15 > >> at device 19.0 on pci0 usb0: OHCI version 1.0, legacy support > >>usb0: SMM does not respond, resetting > >>usb0: on ohci0 > >>usb0: USB revision 1.0 > >> > >>fabien M > > > >In the file "/sys/dev/usb/ohci.c" change the function "ohci_rhsc_enable" > > so that it looks like shown below. Make sure that you get everything > > right. > > > >void > >ohci_rhsc_enable(void *v_sc) > >{ > > ohci_softc_t *sc = v_sc; > > int s; > > > > s = splhardusb(); /* XXX has no effect on FreeBSD */ > > ohci_rhsc_able(sc, 1); > > > > /* acknowledge any RHSC interrupt */ > > OWRITE4(sc, OHCI_INTERRUPT_STATUS, OHCI_RHSC); > > > > ohci_rhsc(sc, sc->sc_intrxfer); > > > > splx(s); > > return; > >} > > Yes the 2 lines below comments was not on my file. I changed it and > > tryed to recompile it but I can't recompile : Strange, try this: make cleandepend clean depend all install What does "df" output. If you are using a "xterm", then just select the text in the window using the mouse, then press the middle-mouse button in your mailer, to copy the text. You have got the sources installed ? > > fabien#make all > > Warning: Object dirertory not changed from original > > /usr/src/sys/modules/usb@->/usr/src/sys > > > /usr: create/symlink failed, no inodes free > > ln: @: No space left on device > > *** Error code 1 > > Stop in /usr/src/sys/modules/usb > > > >If you are loading the USB module, > >simply cd /sys/modules/usb; make clean all install clean > > > >Else recompile the kernel. > > > >Then reboot. > > > >Does it change anything ? > > --HPS