Re: Probelm simulating usb-ethernet controller in gadget/ether.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Could you just try USB snoopy on XP ? I've used it many times to get my out
> of jail card. At least you would see what the descriptors seem to hold in
> your CDC device.
> I don't know about the latest rev on Snoopy, but one pain is that it doesn't
> log/display
> string descriptors.
> Note that the usbser.sys is pretty rooted on XP, which you probably know. I
> once spent 2 days trying to get handshaking to work under ACM - apparently
> there's bugs galore in usbser.sys. But it would allow you to perhaps get
> some more insight into the eth properties side of the CDC device.

Ok...I'll try.  Actually I'm not much of a windows user...except for games! ;)

>
> And indeed, if the host issues SET_CONFIGURATION, then your enum must have
> been OK. My next guess or object of scrutiny then would be whether the
> parameters
> of SET_CONFIGURATION are in place, and suitable for the Ethernet on the
> device's side.

Ok. I tried dumping the USB control requests...and heres what I got:

NOTE: I'm dumping the control requests with my own function. That
function doesn't interpret the configuration requests and thats why the
last request says "Unknown Descriptor Type!".

The value in brackets is the hex value of that particular field in the request.

[23497.242187] __________USB control req___________
[23497.242187]   bRequest(06) - Get descriptor
[23497.242187]   bRequestType(80) - IN Standard
[23497.242187]   wValue(0100) - Device
[23497.242187]   wLength(0008)
[23497.242187] ____________________________________
[23497.242187]
[23497.242187] __________USB control req___________
[23497.242187]   bRequest(06) - Get descriptor
[23497.242187]   bRequestType(80) - IN Standard
[23497.242187]   wValue(0100) - Device
[23497.242187]   wLength(0012)
[23497.242187] ____________________________________
[23497.242187]
[23497.242187] __________USB control req___________
[23497.242187]   bRequest(06) - Get descriptor
[23497.242187]   bRequestType(80) - IN Standard
[23497.242187]   wValue(0200) - Configuration
[23497.242187]   wLength(0009)
[23497.242187] ____________________________________
[23497.242187]
[23497.242187] __________USB control req___________
[23497.242187]   bRequest(06) - Get descriptor
[23497.242187]   bRequestType(80) - IN Standard
[23497.242187]   wValue(0200) - Configuration
[23497.242187]   wLength(0050)
[23497.242187] ____________________________________
[23497.242187]
[23497.242187] __________USB control req___________
[23497.242187]   bRequest(06) - Get descriptor
[23497.242187]   bRequestType(80) - IN Standard
[23497.242187]   wValue(0300) - String
[23497.242187]   wLength(0002)
[23497.242187] ____________________________________
[23497.242187]
[23497.242187] __________USB control req___________
[23497.242187]   bRequest(06) - Get descriptor
[23497.242187]   bRequestType(80) - IN Standard
[23497.242187]   wValue(0300) - String
[23497.242187]   wLength(0004)
[23497.242187] ____________________________________
[23497.242187]
[23497.242187] __________USB control req___________
[23497.242187]   bRequest(06) - Get descriptor
[23497.242187]   bRequestType(80) - IN Standard
[23497.242187]   wValue(0301) - String
[23497.242187]   wLength(0002)
[23497.242187] ____________________________________
[23497.242187]
[23497.242187] __________USB control req___________
[23497.242187]   bRequest(06) - Get descriptor
[23497.242187]   bRequestType(80) - IN Standard
[23497.242187]   wValue(0301) - String
[23497.242187]   wLength(003a)
[23497.242187] ____________________________________
[23497.242187]
[23497.242187] __________USB control req___________
[23497.242187]   bRequest(06) - Get descriptor
[23497.242187]   bRequestType(80) - IN Standard
[23497.242187]   wValue(0302) - String
[23497.242187]   wLength(0002)
[23497.242187] ____________________________________
[23497.242187]
[23497.242187] __________USB control req___________
[23497.242187]   bRequest(06) - Get descriptor
[23497.242187]   bRequestType(80) - IN Standard
[23497.242187]   wValue(0302) - String
[23497.242187]   wLength(0020)
[23497.242187] ____________________________________
[23497.242187]
[23497.242187] __________USB control req___________
[23497.242187]   bRequest(09) - Set configuration
[23497.242187]   bRequestType(00) - OUT Standard
[23497.242187]   wValue(0001) - Unknown Descriptor Type!
[23497.242187]   wLength(0000)
[23497.242187] ____________________________________

As you said, I'll dig deeper into whats coming in the SET_CONFIGURATION
stage...

>
> This is all conjecture, naturally. Sounds like you got a good grip on things
> there anyway. Good luck !

Thanks, but right now I mostly have "theoretical" knowledge! :) It'll take
a while to get a hold of the "real" stuff!

Thanks for all the help.

Regards,
-mandeep

>
> Best Regards,
> Kris
>
> -----Original Message-----
> From: kernelnewbies-bounce@xxxxxxxxxxxx
> [mailto:kernelnewbies-bounce@xxxxxxxxxxxx] On Behalf Of Mandeep Sandhu
> Sent: Monday, 19 January 2009 8:39 PM
> To: microbit@
>  Cc: Kernelnewbies
> Subject: Re: Probelm simulating usb-ethernet controller in gadget/ether.c
>
>> I can't say 100% for sure your enumeration is broken, but it certainly
>> seems that way.
>> Before you debug too deep into the ECM or ACM side of your CDC, try using
>> USB Snoopy or some such on the enum process.
>
> I'm not sure if there's one available for the n810 tablet. I searched
> the apt repos and
> it didn't show up there...
>
>

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux