Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Aug 2005 14:23:52 +0100
From:      "lepingouin.tux" <lepingouin.tux@laposte.net>
To:        hselasky@c2i.net, freebsd-usb@freebsd.org
Subject:   Re: usb hid atmel kit
Message-ID:  <43033A68.1090000@laposte.net>
In-Reply-To: <200508171426.07588.hselasky@c2i.net>
References:  <4302F94D.7040607@laposte.net>	<200508171319.59983.hselasky@c2i.net>	<430329BD.3090107@laposte.net> <200508171426.07588.hselasky@c2i.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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: <OHCI (generic) USB controller> 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: <OHCI (generic) USB controller> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43033A68.1090000>