All of lore.kernel.org
 help / color / mirror / Atom feed
* Where to find USB VID and PID?
@ 2014-02-04 19:54 Eric Fowler
  2014-02-04 20:25 ` Greg Freemyer
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Fowler @ 2014-02-04 19:54 UTC (permalink / raw)
  To: kernelnewbies

 I have an Emcraft SmartFusion2 board with a USB interface, running
ucLinux. When I plug the board to a Windows machine, said Win machine
sees an 'unknown device', which usually (always) means VID_0000 and
PID_0000. This is separate and independent of the USB and JTAG
interfaces that are used for programming, network access, and
debugging, which are all working as expected.

How do I:
- Find the device on the linux side that maps to that endpoint, if it
exists (I have already found the device object for the root hub)
- Interrogate for the VID & PID that a given USB device presents to
the connecting host
- Manipulate the VID & PID on a USB device on ucLinux

-- 
cc:NSA

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

* Where to find USB VID and PID?
  2014-02-04 19:54 Where to find USB VID and PID? Eric Fowler
@ 2014-02-04 20:25 ` Greg Freemyer
  0 siblings, 0 replies; 2+ messages in thread
From: Greg Freemyer @ 2014-02-04 20:25 UTC (permalink / raw)
  To: kernelnewbies

On Tue, Feb 4, 2014 at 2:54 PM, Eric Fowler <eric.fowler@gmail.com> wrote:
>  I have an Emcraft SmartFusion2 board with a USB interface, running
> ucLinux. When I plug the board to a Windows machine, said Win machine
> sees an 'unknown device', which usually (always) means VID_0000 and
> PID_0000. This is separate and independent of the USB and JTAG
> interfaces that are used for programming, network access, and
> debugging, which are all working as expected.
>
> How do I:
> - Find the device on the linux side that maps to that endpoint, if it
> exists (I have already found the device object for the root hub)
> - Interrogate for the VID & PID that a given USB device presents to
> the connecting host
> - Manipulate the VID & PID on a USB device on ucLinux
>
> --
> cc:NSA

I assume you want to do it in the kernel and I don't know the
mechanism for that.

lsusb can do the interrogate from userspace, so you can use strace to
see what kernel API is uses.  Then trace that into the kernel.

Greg

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

end of thread, other threads:[~2014-02-04 20:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-04 19:54 Where to find USB VID and PID? Eric Fowler
2014-02-04 20:25 ` Greg Freemyer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.