From owner-freebsd-usb@FreeBSD.ORG Wed Aug 17 13:24:00 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 1487516A41F for ; Wed, 17 Aug 2005 13:24:00 +0000 (GMT) (envelope-from lepingouin.tux@laposte.net) Received: from anchor-post-30.mail.demon.net (anchor-post-30.mail.demon.net [194.217.242.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9BB0543D48 for ; Wed, 17 Aug 2005 13:23:59 +0000 (GMT) (envelope-from lepingouin.tux@laposte.net) Received: from mailgate.bcfdesigns.co.uk ([62.49.64.242] helo=BCF_DES_2.localdomain) by anchor-post-30.mail.demon.net with esmtp (Exim 4.42) id 1E5Ntd-000Eyx-0D; Wed, 17 Aug 2005 13:23:57 +0000 Received: from [192.168.127.1] ([192.168.127.1]) by BCF_DES_2.localdomain (8.11.6/8.11.6) with ESMTP id j7HDNq629304; Wed, 17 Aug 2005 14:23:52 +0100 Message-ID: <43033A68.1090000@laposte.net> Date: Wed, 17 Aug 2005 14:23:52 +0100 From: "lepingouin.tux" User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: hselasky@c2i.net, freebsd-usb@freebsd.org References: <4302F94D.7040607@laposte.net> <200508171319.59983.hselasky@c2i.net> <430329BD.3090107@laposte.net> <200508171426.07588.hselasky@c2i.net> In-Reply-To: <200508171426.07588.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BCF-DESIGNS-MailScanner-Information: Please contact the ISP for more information X-BCF-DESIGNS-MailScanner: Found to be clean X-BCF-DESIGNS-MailScanner-From: lepingouin.tux@laposte.net Cc: Subject: Re: usb hid atmel kit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Aug 2005 13:24:00 -0000 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 : > 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 > > fabien M