linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Re: USB driver not detecting mouse? (lots of detail)
@ 1999-09-22  1:27 David Hay
  0 siblings, 0 replies; 8+ messages in thread
From: David Hay @ 1999-09-22  1:27 UTC (permalink / raw)
  To: Ira K Weiny; +Cc: linuxdev

[-- Attachment #1: Type: text/plain, Size: 772 bytes --]

I've attached the patch for the changes I had to make to get the USB driver
compiled under 2.2.12.  If anyone sees anything funny looking, pls let me
know.  Thanks!

--- Ira K Weiny <iweiny@falcon.csc.calpoly.edu> wrote:
> > 
> > I got the 2.3 USB code from cvs.on.openprojects.net.  I had to update it
> a
> > bit to include the 2.2 spinlock.h since it seems to have moved in the 2.3
> > kernel.  If I think of it, I'll try to make some patches once I get
> home...
> 

===
------------------------------------------------------------
 David Hay                                     \|/ ____ \|/
 hay@colorado.edu                              ~@-/ oO \-@~
 http://home.earthlink.net/~dhay/              /_( \__/ )_\
 ~ Live well ~ Laugh often ~ Love much ~          \__U_/

[-- Attachment #2: usb.patch --]
[-- Type: application/x-unknown, Size: 2591 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: USB driver not detecting mouse? (lots of detail)
@ 1999-09-22 17:46 David Hay
  1999-09-22 18:05 ` Tom Rini
  0 siblings, 1 reply; 8+ messages in thread
From: David Hay @ 1999-09-22 17:46 UTC (permalink / raw)
  To: Ira K Weiny; +Cc: linuxdev


--- Ira K Weiny <iweiny@falcon.csc.calpoly.edu> wrote:
> I just got my USB mouse working!!!!

Congrats ;)

> I am loading (insmod) what I call usb-card-driver which in a makefile I
> wrote
> includes the following.  ohci.o usb.o ohci-debug.o usb-debug.o
> 
> I then load mouse.o on top of that.  I just noticed that I compiled the
> hub.c
> but I did not load it and the mouse is working.  But I have a 2-port card
> which is just a root hub and I think hub.c is just for the extention hubs
> only.
> AFAIK

I belive this is correct.  I've been loading usbcore.o, usb-ohci.o and the
mouse.o.  Well, I usually don't load mouse, because when I load usb-ohci, it
only sees a single hub with no devices attached, so when mouse.o hits
usb_register, it can't find a mouse device to register the driver with. :(

> What I did differently to get it to work was just the XF68Config file.  I
> read
> the USB-HOWTO and set it up acording to that.  So I have really done
> nothing
> other than compile the modules and then load them with insmod.  I have not
> set
> up the modules directory and conf.modules yet.

I think I know what I need to do with the XF68Config file to get the mouse
working, but until I can get the driver to see the mouse, I'm going to stick
with my ADB mouse :(


=====
------------------------------------------------------------
 David Hay                                     \|/ ____ \|/
 hay@colorado.edu                              ~@-/ oO \-@~
 http://home.earthlink.net/~dhay/              /_( \__/ )_\
 ~ Live well ~ Laugh often ~ Love much ~          \__U_/

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 8+ messages in thread
[parent not found: <199909220216.TAA00607@falcon.csc.calpoly.edu>]
* Re: USB driver not detecting mouse? (lots of detail)
@ 1999-09-21 19:36 David Hay
  1999-09-21 21:55 ` Ira K Weiny
  0 siblings, 1 reply; 8+ messages in thread
From: David Hay @ 1999-09-21 19:36 UTC (permalink / raw)
  To: Ira K Weiny; +Cc: linuxdev


I got the 2.3 USB code from cvs.on.openprojects.net.  I had to update it a
bit to include the 2.2 spinlock.h since it seems to have moved in the 2.3
kernel.  If I think of it, I'll try to make some patches once I get home...

Where are these patches you speak of?  From reading the docs in the USB
driver, these patches have made it into the USB tree...or are there non-USB
patches that need to be applied?

David

--- Ira K Weiny <iweiny@falcon.csc.calpoly.edu> wrote:
> I get similar results with the 2.2 kernel.  Have you tried Paul's patches
> for
> the USB code?  Or I should ask where you got the 2.3 USB code.  I could not
> get
> the 2.3 code to compile with the 2.2 kernel.  But I have the cvs 2.3 which
> I
> know is like bleeding edge and I am sure the directions on the USB-HowTo
> don't
> take that into account.  I get tons of include file missing and symbols
> errors...
> 
> So I though I would compile it against the 2.3 kernel and see if I can run
> that.  Of course now I have to get the 2.3 kernel to actually run!!!
> 
> Anyway Paul has patches to the 2.3 USB which take into acount endianes
> issues
> which LinuxPPC needs.
> 
> I can look up the web page if you want for the patches.  Alternativly the
> 2.3
> cvs source has the endianess issues in the code and no need to patch, which
> I
> for one can never get to work.  ;-(
> 
> Good luck.  If I get anything working I will let you know.
> Ira Weiny
> 
> > 
> > I have a Kensington USB Mouse-In-A-Box Scroll mouse which works fine
> under
> > MacOS, so I know there's nothing wrong with the mouse or the Entegra
> 4-Port
> > USB card it's connected to.  I have a Power Tower Pro 225 (if that makes
> a
> > difference)
> 
> ...
> 
> > 
> > Sep 20 18:20:57 dhay kernel:       bEndpointAddress    =   81 (in) 
> > Sep 20 18:20:57 dhay kernel:       bmAttributes        =   03 (Interrupt)
> 
> > Sep 20 18:20:57 dhay kernel:       wMaxPacketSize      = 0001 
> > Sep 20 18:20:57 dhay kernel:       bInterval           =   ff 
> > Sep 20 18:20:57 dhay kernel: ohci-control thread sleeping
> > 
> 

===
------------------------------------------------------------
 David Hay                                     \|/ ____ \|/
 hay@colorado.edu                              ~@-/ oO \-@~
 http://home.earthlink.net/~dhay/              /_( \__/ )_\
 ~ Live well ~ Laugh often ~ Love much ~          \__U_/

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 8+ messages in thread
* USB driver not detecting mouse? (lots of detail)
@ 1999-09-21  0:37 David Hay
  1999-09-21 18:11 ` Ira K Weiny
  0 siblings, 1 reply; 8+ messages in thread
From: David Hay @ 1999-09-21  0:37 UTC (permalink / raw)
  To: linuxppc-user, linuxppc-dev; +Cc: iweiny


I have a Kensington USB Mouse-In-A-Box Scroll mouse which works fine under
MacOS, so I know there's nothing wrong with the mouse or the Entegra 4-Port
USB card it's connected to.  I have a Power Tower Pro 225 (if that makes a
difference)

Here's what I've done so far:

1. I applied the PCI patches, mentioned previously in the linuxppc-dev list,
to my 2.2.12 kernel and now my USB card is recognized (search for "Various
PCI Patches").  Here's the card entry from /proc/pci:

  Bus  1, device  14, function  0:
    USB Controller: OPTi Unknown device (rev 16).
      Vendor id=1045. Device id=c861.
      Medium devsel.  Fast back-to-back capable.  IRQ 28.  Master Capable. 
Latency=32.
      Non-prefetchable 32 bit memory at 0x90000000 [0x90000000].

2. I followed the instructions for using the 2.3 USB driver with a 2.2 kernel
and was able to compile everything.  Now, when I load the usb-ohci module, I
get the following messages in my log:


Sep 20 18:20:57 dhay kernel: OHCI USB Driver loading 
Sep 20 18:20:57 dhay kernel: usb-ohci: Warning! Gobs of debugging output has
been enabled. 
Sep 20 18:20:57 dhay kernel:           Check your kern.debug logs for the
bulk of it. 
Sep 20 18:20:57 dhay kernel: usb-ohci: 2 root hub ports found 
Sep 20 18:20:57 dhay kernel: usb-ohci: forking ohci-control thread for
0xc1e88880 
Sep 20 18:20:57 dhay kernel: ohci-control thread code for 0xc1e88880 code at
0xc8837acc 
Sep 20 18:20:57 dhay kernel: New USB bus registered 
Sep 20 18:20:57 dhay kernel: usb-ohci: HC c1e88880 reset. 
Sep 20 18:20:57 dhay kernel: usb-ohci: host controller operational 
Sep 20 18:20:57 dhay kernel: entering ohci_check_configuration c1e88880 
Sep 20 18:20:57 dhay kernel: ohci_connect_change on port 0 
Sep 20 18:20:57 dhay kernel: USB new device connect, assigned device number 1

Sep 20 18:20:57 dhay kernel: ctrl msg 80 6 100 0 8 on pipe 80000080 returned:

Sep 20 18:20:57 dhay kernel:  12 1 0 1 9 0 0 8 
Sep 20 18:20:57 dhay kernel: ctrl msg 80 6 100 0 12 on pipe 80000180
returned: 
Sep 20 18:20:57 dhay kernel:  12 1 0 1 9 0 0 8 51 4 46 14 0 1 0 0 
Sep 20 18:20:57 dhay kernel:  0 1 
Sep 20 18:20:57 dhay kernel: ctrl msg 80 6 200 0 8 on pipe 80000180 returned:

Sep 20 18:20:57 dhay kernel:  9 2 19 0 1 1 0 e0 
Sep 20 18:20:57 dhay kernel: ctrl msg 80 6 200 0 19 on pipe 80000180
returned: 
Sep 20 18:20:57 dhay kernel:  9 2 19 0 1 1 0 e0 32 9 4 0 0 1 9 0 
Sep 20 18:20:57 dhay kernel:  0 0 7 5 81 3 1 0 ff 
Sep 20 18:20:57 dhay kernel: Unknown new USB device: 
Sep 20 18:20:57 dhay kernel:   Length              = 18 
Sep 20 18:20:57 dhay kernel:   DescriptorType      = 01 
Sep 20 18:20:57 dhay kernel:   USB version         = 1.00 
Sep 20 18:20:57 dhay kernel:   Vendor:Product      = 0451:1446 
Sep 20 18:20:57 dhay kernel:   MaxPacketSize0      = 8 
Sep 20 18:20:57 dhay kernel:   NumConfigurations   = 1 
Sep 20 18:20:57 dhay kernel:   Device version      = 1.00 
Sep 20 18:20:57 dhay kernel:   Device Class:SubClass:Protocol = 09:00:00 
Sep 20 18:20:57 dhay kernel:     Hub device class 
Sep 20 18:20:57 dhay kernel: Configuration: 
Sep 20 18:20:57 dhay kernel:   bLength             =    9 
Sep 20 18:20:57 dhay kernel:   bDescriptorType     =   02 
Sep 20 18:20:57 dhay kernel:   wTotalLength        = 0019 
Sep 20 18:20:57 dhay kernel:   bNumInterfaces      =   01 
Sep 20 18:20:57 dhay kernel:   bConfigurationValue =   01 
Sep 20 18:20:57 dhay kernel:   iConfiguration      =   00 
Sep 20 18:20:57 dhay kernel:   bmAttributes        =   e0 
Sep 20 18:20:57 dhay kernel:   MaxPower            =  100mA 
Sep 20 18:20:57 dhay kernel:  
Sep 20 18:20:57 dhay kernel:   Interface: 0 
Sep 20 18:20:57 dhay kernel:   Alternate Setting:  0 
Sep 20 18:20:57 dhay kernel:     bLength             =    9 
Sep 20 18:20:57 dhay kernel:     bDescriptorType     =   04 
Sep 20 18:20:57 dhay kernel:     bInterfaceNumber    =   00 
Sep 20 18:20:57 dhay kernel:     bAlternateSetting   =   00 
Sep 20 18:20:57 dhay kernel:     bNumEndpoints       =   01 
Sep 20 18:20:57 dhay kernel:     bInterface Class:SubClass:Protocol =  
09:00:00 
Sep 20 18:20:57 dhay kernel:     iInterface          =   00 
Sep 20 18:20:57 dhay kernel:     Endpoint: 
Sep 20 18:20:57 dhay kernel:       bLength             =    7 
Sep 20 18:20:57 dhay kernel:       bDescriptorType     =   05 
Sep 20 18:20:57 dhay kernel:       bEndpointAddress    =   81 (in) 
Sep 20 18:20:57 dhay kernel:       bmAttributes        =   03 (Interrupt) 
Sep 20 18:20:57 dhay kernel:       wMaxPacketSize      = 0001 
Sep 20 18:20:57 dhay kernel:       bInterval           =   ff 
Sep 20 18:20:57 dhay kernel: ohci-control thread sleeping

This suggests to me a few things:

(1) My 4-port card has two hubs on it (2 ports each)
(2) The driver is not finding the mouse attached to the hub (since the device
info above Indicates it's for a hub.
(3) The second hub is not found either.

So any ideas on what's going on here?  Any reason the initialization code
isn't finding my mouse?  I've tried loading the module with my mouse plugged
into each port, and nothing seems to make a difference.

Thanks!
===
------------------------------------------------------------
 David Hay                                     \|/ ____ \|/
 hay@colorado.edu                              ~@-/ oO \-@~
 http://home.earthlink.net/~dhay/              /_( \__/ )_\
 ~ Live well ~ Laugh often ~ Love much ~          \__U_/

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~1999-09-22 18:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-09-22  1:27 USB driver not detecting mouse? (lots of detail) David Hay
  -- strict thread matches above, loose matches on Subject: below --
1999-09-22 17:46 David Hay
1999-09-22 18:05 ` Tom Rini
     [not found] <199909220216.TAA00607@falcon.csc.calpoly.edu>
1999-09-22 11:03 ` Michael Schmitz
1999-09-21 19:36 David Hay
1999-09-21 21:55 ` Ira K Weiny
1999-09-21  0:37 David Hay
1999-09-21 18:11 ` Ira K Weiny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).