[9fans] usbd problem
  Home FAQ Contact Sign in
comp.os.plan9 only
 
Advanced search
POPULAR GROUPS

more...

comp.os.plan9 Profile…
 Up
[9fans] usbd problem         


Author: erik quanstrom
Date: Feb 11, 2008 18:00

usbd is exiting when i have a camera which is off
attached:

; usb/usbd -v
; echo $status
usbd 1827: usbd: setup0: usb0/1: transaction error

- erik
13 Comments
Re: [9fans] usbd problem         


Author: Richard Miller
Date: Feb 12, 2008 00:21

> ; usb/usbd -v

Try 'usb/usbd -d1' for more information.
no comments
Re: [9fans] usbd problem         


Author: Sape Mullender
Date: Feb 12, 2008 06:00

> usbd is exiting when i have a camera which is off
> attached:
>
> ; usb/usbd -v
> ; echo $status
> usbd 1827: usbd: setup0: usb0/1: transaction error
>
> - erik

Nemo found a bug in usb/lib/dump.c that may well account for
this. I incorporated his change (and fixed a bug in his code :-).
I'll ask Geoff to push it out today.

Sape
11 Comments
Re: [9fans] usbd problem         


Author: erik quanstrom
Date: Feb 12, 2008 06:14

> Nemo found a bug in usb/lib/dump.c that may well account for
> this. I incorporated his change (and fixed a bug in his code :-).
> I'll ask Geoff to push it out today.
>
> Sape

excellent. i'll give it a shot.

- erik
10 Comments
Re: [9fans] usbd problem         


Author: Sape Mullender
Date: Feb 12, 2008 06:37

>> Nemo found a bug in usb/lib/dump.c that may well account for
>> this. I incorporated his change (and fixed a bug in his code :-).
>> I'll ask Geoff to push it out today.
>>
>> Sape
>
> excellent. i'll give it a shot.
>
> - erik

Give it a shot now:
/sys/src/cmd/usb/lib/dump.c

#include
#include
#include
#include
#include "usb.h"

int verbose;

typedef struct Flags Flags;
typedef struct Classes Classes;
Show full article (14.28Kb)
9 Comments
Re: [9fans] usbd problem         


Author: Fco. J. Ballesteros
Date: Feb 12, 2008 06:43

Warning!, the dump.c I sent Sape has a bug.

search for "len = b[0]-1", in pdesc(), replace that with
"len = b[0]".

sorry for the mistake.
> From: sape@plan9.bell-labs.com
> To: 9fans@cse.psu.edu
> Reply-To: 9fans@cse.psu.edu
> Date: Tue Feb 12 15:36:36 CET 2008
> Subject: Re: [9fans] usbd problem
>
>>> Nemo found a bug in usb/lib/dump...
Show full article (16.42Kb)
no comments
Re: [9fans] usbd problem         


Author: erik quanstrom
Date: Feb 12, 2008 17:11

thanks for the update. i have switched to a slightly
more agreeable key but i have a new way to fail. the key
works the first time. but the second time i connect the same
key, i get

; usbfat:
setupreq: write err: No response
usb/disk: describedevice: error writing usb device request: get device descriptor: No response
No response
mount: mount /n/usb: unknown format

initially in this state, i could restart usbd and got this information.
Show full article (1.30Kb)
7 Comments
Re: [9fans] usbd problem         


Author: Richard Miller
Date: Feb 13, 2008 06:33

> i've got things pretty wedged now -- usbd won't start

Are you killing the old usbd before starting a new one?

And is this uhci or ohci?
6 Comments
Re: [9fans] usbd problem         


Author: erik quanstrom
Date: Feb 13, 2008 06:47

> Are you killing the old usbd before starting a new one?

yes.
> And is this uhci or ohci?

ohci. oddly, my uhci ich9r machine doesn't recognize
either of my extensive collection of two usb devices.

- erik
5 Comments
Re: [9fans] usbd problem         


Author: Richard Miller
Date: Feb 13, 2008 06:53

> ohci. oddly, my uhci ich9r machine doesn't recognize
> either of my extensive collection of two usb devices.

Sorry, I have no ohci hardware so I don't think I can
help. Did the uhci machine recognise your devices
before the recent update to add ohci support?
1 Comment
1 2