All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Brownell <david-b@pacbell.net>
To: linux-usb@vger.kernel.org, Michal Nazarewicz <m.nazarewicz@samsung.com>
Cc: David Brownell <dbrownell@users.sourceforge.net>,
	Greg KH <greg@kroah.com>, Xiaofan Chen <xiaofanc@gmail.com>,
	Kyungmin Park <kyungmin.park@samsung.com>,
	Marek Szyprowski <m.szyprowski@samsung.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCHv5 08/11] USB: gadget: g_serial: INF file updated
Date: Wed, 16 Jun 2010 06:56:09 -0700 (PDT)	[thread overview]
Message-ID: <140489.94250.qm@web180314.mail.gq1.yahoo.com> (raw)
In-Reply-To: <c4143e7fdd0fc61f05118c30a0a9edbbc0a97db4.1276681840.git.m.nazarewicz@samsung.com>

Ack is inlined below.

--- On Wed, 6/16/10, Michal Nazarewicz <m.nazarewicz@samsung.com> wrote:

> From: Michal Nazarewicz <m.nazarewicz@samsung.com>
> Subject: [PATCHv5 08/11] USB: gadget: g_serial: INF file updated
> To: linux-usb@vger.kernel.org
> Cc: "David Brownell" <dbrownell@users.sourceforge.net>, "Greg KH" <greg@kroah.com>, "Xiaofan Chen" <xiaofanc@gmail.com>, "Kyungmin Park" <kyungmin.park@samsung.com>, "Marek Szyprowski" <m.szyprowski@samsung.com>, linux-kernel@vger.kernel.org
> Date: Wednesday, June 16, 2010, 3:08 AM
> Updated the INF file for g_serial
> gadget.  It should work with
> most recent Windows systems now.
> 
> Signed-off-by: Michal Nazarewicz <m.nazarewicz@samsung.com>
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>

Acked-by: David Brownell <dbrownell@users.sourceforge.net>

> ---
>  Documentation/usb/gadget_serial.txt |   87
> +++-------------------------
>  Documentation/usb/linux-cdc-acm.inf |  107
> +++++++++++++++++++++++++++++++++++
>  2 files changed, 117 insertions(+), 77 deletions(-)
>  create mode 100644 Documentation/usb/linux-cdc-acm.inf
> 
> diff --git a/Documentation/usb/gadget_serial.txt
> b/Documentation/usb/gadget_serial.txt
> index eac7df9..61e67f6 100644
> --- a/Documentation/usb/gadget_serial.txt
> +++ b/Documentation/usb/gadget_serial.txt
> @@ -151,88 +151,23 @@ instructions below to install the
> host side driver.
>  
>  Installing the Windows Host ACM Driver
>  --------------------------------------
> -To use the Windows ACM driver you must have the files
> "gserial.inf"
> -and "usbser.sys" together in a folder on the Windows
> machine.
> -
> -The "gserial.inf" file is given here.
> -
> --------------------- CUT HERE --------------------
> -[Version]
> -Signature="$Windows NT$"
> -Class=Ports
> -ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
> -Provider=%LINUX%
> -DriverVer=08/17/2004,0.0.2.0
> -; Copyright (C) 2004 Al Borchers (alborchers@steinerpoint.com)
> -
> -[Manufacturer]
> -%LINUX%=GSerialDeviceList
> -
> -[GSerialDeviceList]
> -%GSERIAL%=GSerialInstall, USB\VID_0525&PID_A4A7
> -
> -[DestinationDirs]
> -DefaultDestDir=10,System32\Drivers
> -
> -[GSerialInstall]
> -CopyFiles=GSerialCopyFiles
> -AddReg=GSerialAddReg
> -
> -[GSerialCopyFiles]
> -usbser.sys
> -
> -[GSerialAddReg]
> -HKR,,DevLoader,,*ntkern
> -HKR,,NTMPDriver,,usbser.sys
> -HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"
> -
> -[GSerialInstall.Services]
> -AddService = usbser,0x0002,GSerialService
> -
> -[GSerialService]
> -DisplayName = %GSERIAL_DISPLAY_NAME%
> -ServiceType = 1           
>       ; SERVICE_KERNEL_DRIVER
> -StartType = 3           
>         ; SERVICE_DEMAND_START
> -ErrorControl = 1           
>      ; SERVICE_ERROR_NORMAL
> -ServiceBinary = %10%\System32\Drivers\usbser.sys
> -LoadOrderGroup = Base
> -
> -[Strings]
> -LINUX = "Linux"
> -GSERIAL = "Gadget Serial"
> -GSERIAL_DISPLAY_NAME = "USB Gadget Serial Driver"
> --------------------- CUT HERE --------------------
> -
> -The "usbser.sys" file comes with various versions of
> Windows.
> -For example, it can be found on Windows XP typically in
> -
> -  C:\WINDOWS\Driver Cache\i386\driver.cab
> -
> -Or it can be found on the Windows 98SE CD in the "win98"
> folder
> -in the "DRIVER11.CAB" through "DRIVER20.CAB" cab
> files.  You will
> -need the DOS "expand" program, the Cygwin "cabextract"
> program, or
> -a similar program to unpack these cab files and extract
> "usbser.sys".
> -
> -For example, to extract "usbser.sys" into the current
> directory
> -on Windows XP, open a DOS window and run a command like
> -
> -  expand C:\WINDOWS\Driver~1\i386\driver.cab
> -F:usbser.sys .
> -
> -(Thanks to Nishant Kamat for pointing out this DOS
> command.)
> +To use the Windows ACM driver you must have the
> "linux-cdc-acm.inf"
> +file (provided along this document) which supports all
> recent versions
> +of Windows.
>  
>  When the gadget serial driver is loaded and the USB device
> connected
>  to the Windows host with a USB cable, Windows should
> recognize the
>  gadget serial device and ask for a driver.  Tell
> Windows to find the
> -driver in the folder that contains "gserial.inf" and
> "usbser.sys".
> +driver in the folder that contains the "linux-cdc-acm.inf"
> file.
>  
>  For example, on Windows XP, when the gadget serial device
> is first
>  plugged in, the "Found New Hardware Wizard" starts
> up.  Select
> -"Install from a list or specific location (Advanced)",
> then on
> -the next screen select "Include this location in the
> search" and
> -enter the path or browse to the folder containing
> "gserial.inf" and
> -"usbser.sys".  Windows will complain that the Gadget
> Serial driver
> -has not passed Windows Logo testing, but select "Continue
> anyway"
> -and finish the driver installation.
> +"Install from a list or specific location (Advanced)",
> then on the
> +next screen select "Include this location in the search"
> and enter the
> +path or browse to the folder containing the
> "linux-cdc-acm.inf" file.
> +Windows will complain that the Gadget Serial driver has
> not passed
> +Windows Logo testing, but select "Continue anyway" and
> finish the
> +driver installation.
>  
>  On Windows XP, in the "Device Manager" (under "Control
> Panel",
>  "System", "Hardware") expand the "Ports (COM & LPT)"
> entry and you
> @@ -345,5 +280,3 @@ you should be able to send data back
> and forth between the gadget
>  side and host side systems.  Anything you type on the
> terminal
>  window on the gadget side should appear in the terminal
> window on
>  the host side and vice versa.
> -
> -
> diff --git a/Documentation/usb/linux-cdc-acm.inf
> b/Documentation/usb/linux-cdc-acm.inf
> new file mode 100644
> index 0000000..77636dd
> --- /dev/null
> +++ b/Documentation/usb/linux-cdc-acm.inf
> @@ -0,0 +1,107 @@
> +; Windows USB CDC ACM Setup File
> +
> +; Based on INF temlate which was:
> +;     Copyright (c) 2000 Microsoft
> Corporation
> +;     Copyright (c) 2007 Microchip
> Technology Inc.
> +; likely to be cevered by the MLPL as found at:
> +;    <http://msdn.microsoft.com/en-us/cc300389.aspx#MLPL>.
> +; For use only on Windows operating systems.
> +
> +[Version]
> +Signature="$Windows NT$"
> +Class=Ports
> +ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
> +Provider=%Linux%
> +DriverVer=11/15/2007,5.1.2600.0
> +
> +[Manufacturer]
> +%Linux%=DeviceList, NTamd64
> +
> +[DestinationDirs]
> +DefaultDestDir=12
> +
> +
> +;------------------------------------------------------------------------------
> +;  Windows 2000/XP/Vista-32bit Sections
> +;------------------------------------------------------------------------------
> +
> +[DriverInstall.nt]
> +include=mdmcpq.inf
> +CopyFiles=DriverCopyFiles.nt
> +AddReg=DriverInstall.nt.AddReg
> +
> +[DriverCopyFiles.nt]
> +usbser.sys,,,0x20
> +
> +[DriverInstall.nt.AddReg]
> +HKR,,DevLoader,,*ntkern
> +HKR,,NTMPDriver,,USBSER.sys
> +HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"
> +
> +[DriverInstall.nt.Services]
> +AddService=usbser, 0x00000002, DriverService.nt
> +
> +[DriverService.nt]
> +DisplayName=%SERVICE%
> +ServiceType=1
> +StartType=3
> +ErrorControl=1
> +ServiceBinary=%12%\USBSER.sys
> +
> +;------------------------------------------------------------------------------
> +;  Vista-64bit Sections
> +;------------------------------------------------------------------------------
> +
> +[DriverInstall.NTamd64]
> +include=mdmcpq.inf
> +CopyFiles=DriverCopyFiles.NTamd64
> +AddReg=DriverInstall.NTamd64.AddReg
> +
> +[DriverCopyFiles.NTamd64]
> +USBSER.sys,,,0x20
> +
> +[DriverInstall.NTamd64.AddReg]
> +HKR,,DevLoader,,*ntkern
> +HKR,,NTMPDriver,,USBSER.sys
> +HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"
> +
> +[DriverInstall.NTamd64.Services]
> +AddService=usbser, 0x00000002, DriverService.NTamd64
> +
> +[DriverService.NTamd64]
> +DisplayName=%SERVICE%
> +ServiceType=1
> +StartType=3
> +ErrorControl=1
> +ServiceBinary=%12%\USBSER.sys
> +
> +
> +;------------------------------------------------------------------------------
> +;  Vendor and Product ID Definitions
> +;------------------------------------------------------------------------------
> +; When developing your USB device, the VID and PID used in
> the PC side
> +; application program and the firmware on the
> microcontroller must match.
> +; Modify the below line to use your VID and PID.  Use
> the format as shown below.
> +; Note: One INF file can be used for multiple devices with
> different
> +VID and PIDs.
> +; For each supported device, append
> ",USB\VID_xxxx&PID_yyyy" to the
> +end of the line.
> +;------------------------------------------------------------------------------
> +[SourceDisksFiles]
> +[SourceDisksNames]
> +[DeviceList]
> +%DESCRIPTION%=DriverInstall, USB\VID_0525&PID_A4A7
> +
> +[DeviceList.NTamd64]
> +%DESCRIPTION%=DriverInstall, USB\VID_0525&PID_A4A7
> +
> +
> +;------------------------------------------------------------------------------
> +;  String Definitions
> +;------------------------------------------------------------------------------
> +;Modify these strings to customize your device
> +;------------------------------------------------------------------------------
> +[Strings]
> +Linux           
>    = "Linux Developer Community"
> +DESCRIPTION         =
> "Gadget Serial"
> +SERVICE         
>    = "USB RS-232 Emulation Driver"
> -- 
> 1.7.1
> 
> 


  parent reply	other threads:[~2010-06-16 14:04 UTC|newest]

Thread overview: 72+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-07 12:39 [PATCHv4 00/13] USB improvements and cleanpus, g_multi install mode Michal Nazarewicz
2010-06-07 12:39 ` [PATCHv4 01/13] USB: gadget: g_mass_storage: static data instead of dynamic allocation Michal Nazarewicz
2010-06-07 12:39   ` [PATCHv4 02/13] USB: gadget: f_mass_storage: fsg_add() renamed to fsg_bind_config() Michal Nazarewicz
2010-06-07 12:39     ` [PATCHv4 03/13] USB: gadget: f_fs: functionfs_add() renamed to functionfs_bind_config() Michal Nazarewicz
2010-06-07 12:39       ` [PATCHv4 04/13] USB: gadget: composite: usb_string_ids_*() functions added Michal Nazarewicz
2010-06-07 12:39         ` [PATCHv4 05/13] USB: gadget: f_fs: use usb_string_ids_n() Michal Nazarewicz
2010-06-07 12:39           ` [PATCHv4 06/13] USB: gadget: g_multi: code clean up and refactoring Michal Nazarewicz
2010-06-07 12:39             ` [PATCHv4 07/13] USB: gadget: g_ether: updated INF file Michal Nazarewicz
2010-06-07 12:39               ` [PATCHv4 08/13] USB: gadget: g_serial: INF file updated Michal Nazarewicz
2010-06-07 12:39                 ` [PATCHv4 09/13] USB: gadget: g_multi: added documentation and INF files Michal Nazarewicz
2010-06-07 12:39                   ` [PATCHv4 10/13] USB: gadget: g_multi: more configurable Michal Nazarewicz
2010-06-07 12:39                     ` [PATCHv4 11/13] USB: gadget: composite: addad disconnect callback Michal Nazarewicz
2010-06-07 12:39                       ` [PATCHv4 12/13] USB: gadget: f_mass_storage: added eject callback Michal Nazarewicz
2010-06-07 12:40                         ` [PATCHv4 13/13] USB: gadget: g_multi: Install Mode added Michal Nazarewicz
2010-06-14  8:43                         ` [PATCHv4.1 12/13] USB: gadget: f_mass_storage: added eject callback Michal Nazarewicz
2010-06-08 14:02                       ` [PATCHv4 11/13] USB: gadget: composite: addad disconnect callback David Brownell
2010-06-08 13:37                     ` [PATCHv4 10/13] USB: gadget: g_multi: more configurable David Brownell
2010-06-09 10:15                       ` Michał Nazarewicz
2010-06-08 13:13                 ` [PATCHv4 08/13] USB: gadget: g_serial: INF file updated David Brownell
2010-06-08 13:20                   ` Xiaofan Chen
2010-06-09  8:55                   ` Michał Nazarewicz
2010-06-09  9:29                     ` Xiaofan Chen
2010-06-09 10:01                       ` Michał Nazarewicz
2010-06-09 14:59                         ` Greg KH
2010-06-09 15:22                           ` Michał Nazarewicz
2010-06-09 15:33                             ` Greg KH
2010-06-09 15:53                               ` Michał Nazarewicz
2010-06-08 12:57               ` [PATCHv4 07/13] USB: gadget: g_ether: updated INF file David Brownell
2010-06-08 13:17                 ` Xiaofan Chen
2010-06-14  8:43               ` [PATCHv4.1 " Michal Nazarewicz
2010-06-14 11:32                 ` Xiaofan Chen
2010-06-14 19:42                   ` David Brownell
2010-06-14 20:04                     ` Michał Nazarewicz
2010-06-14  8:43         ` [PATCH] USB: gadget: g_fs: code cleanup and bug fixes Michal Nazarewicz
2010-06-14  8:43   ` [PATCHv4.1 01/13] USB: gadget: g_mass_storage: static data instead of dynamic allocation Michal Nazarewicz
2010-06-15 18:55 ` [PATCHv4 00/13] USB improvements and cleanpus, g_multi install mode Greg KH
2010-06-16 10:07   ` [PATCHv5 00/11] g_multi & other improvements and cleanpus Michal Nazarewicz
2010-06-16 10:07     ` [PATCHv5 01/11] USB: gadget: g_mass_storage: static data instead of dynamic allocation Michal Nazarewicz
2010-06-16 10:07       ` [PATCHv5 02/11] USB: gadget: f_mass_storage: fsg_add() renamed to fsg_bind_config() Michal Nazarewicz
2010-06-16 10:07         ` [PATCHv5 03/11] USB: gadget: f_fs: functionfs_add() renamed to functionfs_bind_config() Michal Nazarewicz
2010-06-16 10:07           ` [PATCHv5 04/11] USB: gadget: composite: usb_string_ids_*() functions added Michal Nazarewicz
2010-06-16 10:08             ` [PATCHv5 05/11] USB: gadget: f_fs: use usb_string_ids_n() Michal Nazarewicz
2010-06-16 10:08               ` [PATCHv5 06/11] USB: gadget: g_multi: code clean up and refactoring Michal Nazarewicz
2010-06-16 10:08                 ` [PATCHv5 07/11] USB: gadget: g_ether: updated INF file Michal Nazarewicz
2010-06-16 10:08                   ` [PATCHv5 08/11] USB: gadget: g_serial: INF file updated Michal Nazarewicz
2010-06-16 10:08                     ` [PATCHv5 09/11] USB: gadget: g_multi: added documentation and INF files Michal Nazarewicz
2010-06-16 10:08                       ` [PATCHv5 10/11] USB: gadget: composite: addad disconnect callback Michal Nazarewicz
2010-06-16 10:08                         ` [PATCHv5 11/11] USB: gadget: f_mass_storage: added eject callback Michal Nazarewicz
2010-06-17 11:04                         ` [PATCHv5 10/11] USB: gadget: composite: addad disconnect callback Sergei Shtylyov
2010-06-18 14:19                           ` Sergei Shtylyov
2010-06-16 13:56                     ` David Brownell [this message]
2010-06-16 14:12                   ` [PATCHv5 07/11] USB: gadget: g_ether: updated INF file David Brownell
2010-06-16 14:41                     ` [PATCHv5.1 " Michal Nazarewicz
2010-06-17 17:51                 ` [PATCHv5 06/11] USB: gadget: g_multi: code clean up and refactoring Greg KH
2010-06-18 10:31                   ` Michał Nazarewicz
2010-06-18 14:39                     ` Greg KH
2010-06-17 17:52     ` [PATCHv5 00/11] g_multi & other improvements and cleanpus Greg KH
2010-06-18 10:31       ` Michał Nazarewicz
     [not found]       ` <2809a031d19ac6ef793d7fe343e225b8d80099c3.1276864406.git.m.nazarewicz@samsung.com>
2010-06-18 12:48         ` [PATCHv6 07/11] USB: gadget: g_ether: updated INF file Michal Nazarewicz
2010-06-18 12:48           ` [PATCHv6 08/11] USB: gadget: g_serial: INF file updated Michal Nazarewicz
2010-06-18 12:48             ` [PATCHv6 09/11] USB: gadget: g_multi: added documentation and INF files Michal Nazarewicz
2010-06-18 12:48               ` [PATCHv6 10/11] USB: gadget: composite: added disconnect callback Michal Nazarewicz
2010-06-18 12:48                 ` [PATCHv6 11/11] USB: gadget: f_mass_storage: added eject callback Michal Nazarewicz
2010-06-18 13:07               ` [PATCHv6.1 09/11] USB: gadget: g_multi: added documentation and INF files Michal Nazarewicz
2010-06-18 15:52                 ` Greg KH
2010-06-18 16:14                   ` Michał Nazarewicz
2010-06-18 15:04       ` [PATCHv6.1 06/11] USB: gadget: g_multi: code clean up and refactoring Michal Nazarewicz
2010-06-18 21:25         ` Sergei Shtylyov
2010-06-21  8:43           ` Michał Nazarewicz
2010-06-14  8:43 [PATCH] USB: gadget: g_fs: possible invalid pointer reference bug fixed Michal Nazarewicz
2010-06-15 10:10 ` Sergei Shtylyov
2010-06-16  9:30   ` Michał Nazarewicz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=140489.94250.qm@web180314.mail.gq1.yahoo.com \
    --to=david-b@pacbell.net \
    --cc=dbrownell@users.sourceforge.net \
    --cc=greg@kroah.com \
    --cc=kyungmin.park@samsung.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=m.nazarewicz@samsung.com \
    --cc=m.szyprowski@samsung.com \
    --cc=xiaofanc@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.