kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Using EHSET module
       [not found] <VI1PR06MB4030527E819C7682D646929DB1730@VI1PR06MB4030.eurprd06.prod.outlook.com>
@ 2019-03-07 11:41 ` CHMIELARZ Radoslaw
  2019-03-07 11:52   ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: CHMIELARZ Radoslaw @ 2019-03-07 11:41 UTC (permalink / raw)
  To: kernelnewbies


[-- Attachment #1.1: Type: text/plain, Size: 2172 bytes --]

Hi,

I'm trying to certify USB on our device that is running Linux 4.14. For windows systems we were using https://www.usb.org/usb2tools. For linux the only option I have found is a kernel module called EHSET. Unfortunately I can't manage to get it working, can You please help?

I have added the following configuration:

  *   CONFIG_USB_HCD_TEST_MODE=y
  *   USB_EHSET_TEST_FIXTURE=m

Then on the system I type in modprobe ehset. After this looking at the source code of ehset.c<https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/usb/misc/ehset.c?h=v4.14> I assumed that inserting USB stick with VendorID: 0x1a0a and ProductID: 0x0104 would start the Packet command, but it doesn't do anything (not output visible on the oscilloscope). The device is loaded as a regular USB stick.

The output I see is:

[ 1059.904034] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1

[ 1059.935515] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00

[ 1059.941700] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002

[ 1059.948523] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1

[ 1059.955776] usb usb1: Product: EHCI Host Controller

[ 1059.960680] usb usb1: Manufacturer: Linux 4.14.87-rt50 ehci_hcd

[ 1059.966627] usb usb1: SerialNumber: ci_hdrc.0

[ 1059.974486] usb usb1: usb_probe_device

[ 1059.982387] hub 1-0:1.0: usb_probe_interface

[ 1059.986735] hub 1-0:1.0: USB hub found

[ 1059.990614] hub 1-0:1.0: 1 port detected

[ 1060.475521] usb 1-1: new high-speed USB device number 2 using ci_hdrc

[ 1060.677970] usb 1-1: New USB device found, idVendor=1a0a, idProduct=0104

[ 1060.684709] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3

[ 1060.691877] usb 1-1: Product: USB DISK 3.0

[ 1060.696005] usb 1-1: Manufacturer:

[ 1060.700215] usb 1-1: SerialNumber: 190073AE389B2300

[ 1060.708279] usb 1-1: usb_probe_device

[ 1060.716351] usb-storage 1-1:1.0: usb_probe_interface

[ 1060.724692] usb-storage 1-1:1.0: USB Mass Storage device detected

[ 1060.745330] scsi host1: usb-storage 1-1:1.0

Thanks in advance!

Radek


[-- Attachment #1.2: Type: text/html, Size: 10276 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

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

* Re: Using EHSET module
  2019-03-07 11:41 ` Using EHSET module CHMIELARZ Radoslaw
@ 2019-03-07 11:52   ` Greg KH
  2019-03-07 12:11     ` AW: " CHMIELARZ Radoslaw
  0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2019-03-07 11:52 UTC (permalink / raw)
  To: CHMIELARZ Radoslaw; +Cc: kernelnewbies

On Thu, Mar 07, 2019 at 11:41:58AM +0000, CHMIELARZ Radoslaw wrote:
> Hi,
> 
> I'm trying to certify USB on our device that is running Linux 4.14.
> For windows systems we were using https://www.usb.org/usb2tools. For
> linux the only option I have found is a kernel module called EHSET.
> Unfortunately I can't manage to get it working, can You please help?

First, try asking USB questions on the linux-usb@vger.kernel.org mailing
list.

Secondly, the ehset module is to test things when you are running Linux
as the host, not the device, it is to be installed on the host system.

thanks,

greg k-h

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

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

* AW: Using EHSET module
  2019-03-07 11:52   ` Greg KH
@ 2019-03-07 12:11     ` CHMIELARZ Radoslaw
  0 siblings, 0 replies; 3+ messages in thread
From: CHMIELARZ Radoslaw @ 2019-03-07 12:11 UTC (permalink / raw)
  To: Greg KH; +Cc: kernelnewbies

Hi Greg,

OK, thanks. I will ask there.

As for the system yes, we are using this module as a host.

Cheers,
Radek

-----Ursprüngliche Nachricht-----
Von: Greg KH <greg@kroah.com> 
Gesendet: czwartek, 7 marca 2019 12:53
An: CHMIELARZ Radoslaw <radoslaw.chmielarz@leica-geosystems.com>
Cc: kernelnewbies@kernelnewbies.org
Betreff: Re: Using EHSET module

On Thu, Mar 07, 2019 at 11:41:58AM +0000, CHMIELARZ Radoslaw wrote:
> Hi,
> 
> I'm trying to certify USB on our device that is running Linux 4.14.
> For windows systems we were using 
> https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.usb.org%2Fusb2tools&amp;data=02%7C01%7C%7C22e9f4cc354f4e1034ae08d6a2f36c53%7C1b16ab3eb8f64fe39f3e2db7fe549f6a%7C0%7C0%7C636875563707763954&amp;sdata=EKYvoBtS6NeeVxh%2FmRm1tkBI11SlppN9yOWcIe%2Fd6kk%3D&amp;reserved=0. For linux the only option I have found is a kernel module called EHSET.
> Unfortunately I can't manage to get it working, can You please help?

First, try asking USB questions on the linux-usb@vger.kernel.org mailing list.

Secondly, the ehset module is to test things when you are running Linux as the host, not the device, it is to be installed on the host system.

thanks,

greg k-h

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

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

end of thread, other threads:[~2019-03-07 12:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <VI1PR06MB4030527E819C7682D646929DB1730@VI1PR06MB4030.eurprd06.prod.outlook.com>
2019-03-07 11:41 ` Using EHSET module CHMIELARZ Radoslaw
2019-03-07 11:52   ` Greg KH
2019-03-07 12:11     ` AW: " CHMIELARZ Radoslaw

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).