Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1EE62C47082 for ; Tue, 8 Jun 2021 22:10:31 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 42E2661246 for ; Tue, 8 Jun 2021 22:10:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 42E2661246 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmx.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1ADE282EA1; Wed, 9 Jun 2021 00:10:28 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=gmx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; secure) header.d=gmx.net header.i=@gmx.net header.b="Jn2dvsCZ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BE5F282EA5; Wed, 9 Jun 2021 00:10:25 +0200 (CEST) Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id BD01E82E2F for ; Wed, 9 Jun 2021 00:10:22 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=xypron.glpk@gmx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1623190219; bh=ZUqtvz8/IsMyNyqYSM/UGgZqJNqoAiugQv3ohZTy02E=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=Jn2dvsCZyzWvTI+YjR/CuInBbTiXfq9EqKAGv2x8SkeiOtjq5LTUrtAINvlbtAAzM Eo3zVRl3XigoGeS7J2KWsMSa/OFXh/phEVFxxXv2wM1P92+1wybvjjwjGvyJv9ccMH HVq5hvPngvMjkuxUhCxgeKTrkB2jqStpa1KxUdRA= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.123.35] ([62.143.247.63]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MS3mt-1lwOwq2Sjb-00TQp7; Wed, 09 Jun 2021 00:10:19 +0200 Subject: Re: [PATCH v2 2/2] doc: usage: man-page for ums command To: Patrick Delaunay , u-boot@lists.denx.de Cc: Simon Glass , U-Boot STM32 References: <20210604165147.31788-1-patrick.delaunay@foss.st.com> <20210604185138.v2.2.I567147108d7efaa02a3532cde06cf1d5df59ce38@changeid> From: Heinrich Schuchardt Message-ID: Date: Wed, 9 Jun 2021 00:10:18 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: <20210604185138.v2.2.I567147108d7efaa02a3532cde06cf1d5df59ce38@changeid> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:ik7blwTPoE5KOck9R9gGhhlWEF5+T6wfivTQ1DXjK3DEiE5enaw lHML7ulCQb9qDRHMmF8jdGkKX0FYtsplOV++LrAL7Ryh/fxqcGvcVvzOjyvpJmRBDjPDBu+ wtRO4/wP2FVDR+yMEpTMOhWX9ZZDwNsmFsnNIEQXxz+Cagb9reKzp3Cg+UBYaXTixbtOf2W lOBvjeMyCx11g/bdyHqjg== X-UI-Out-Filterresults: notjunk:1;V03:K0:Cp9iMQaaECE=:PovVsbI/H4h0x7lZ5rtAD2 xMaTR+QKdXjDcdcDLhC+rj37GvMWSXlYKOSQmlN9kcgKqMIoIYPq9csjcsGJf+Csw3f0/7wzI /2JCw+H4PomuuUTk/bZXyyu+BsPZoPq1Bx+r6e6ERBvLHMRKKES6DjBM5tKdjTso90W5uftcM 2S1c1aAZ4iCIElmLjWLJvGBYZsTVCTyQpCCFI7Y+06QL3qdMywbHVJHBwwHfXZ2HsOuljMvMw okyadRvYHLgS9jtaA6cc6/uxt5Oa1Ve4i+x2fp2SXYSjG4MM1PGljAWm1HYDvCdcMea+HZZF0 uX2ihEaq8yFUi3dc84cd3SNSeMyOlqZ5bYtSxrDwA4hs2EhcEsiiORdfPDcW1CSVCSFqc5IuR LbA0FQ9u6eEbfaRNBjb9MgHxmC3Kj49ihJpz96AVL5cobcdAWgO0OMq48ArsiPM+PRhq3jRnv cxpzSNpiQLiu5WorvdH2yXtt8yF+eeX/DfjDdqdyjnGgjhBb96OD1nJWATVviH5e0QxljoK9K VW6nlIBRXj5eIrNuXsNjDmEmKZlq/O/0gt98+HILoqK2ZED0Hjh4bx3US23p9od44+oaCrQ9w ixFHiZEL38+lK0YQ3D9IEvgjP223XbvZC2/BQ44kKxow3ixXSPcgczi0+uf5pT8R/Y/ea1AMd vPg09jsoNUAwvQtipq3SfJ/hybgdM2ESWpHKcHqivBLWLadKTmnqKjF1gRkru/3rXEblTkxg8 3TMH66SHciQZhlm7TCUi7irnG31swNG9+MOLkyrWPio29Y6t1xOxyyVairCk46/nDb+0WsRAT PL+Zfm9/e7wNEGGbvV39twrzGoeFxP2xNI/VG5YyqWKgrLB53JC8KQKMxFqTUkBaltkSitejt ANURZ5LGlhzzAMb7bxwt0ATwRM51EhxooQLS2/Y1xROy9/HQU0K6qPDbjQmD1MJVH2Sjcjx+S YmoLJ7CTp0hYePR8khdJEr9nR+/fkT/qZ2tF8GoI+i6/Lt0wOvovYOdQigI6q/0JbvTGNZ6l6 fmAFKEHxF/pILHqAgm9Rx9HV9+q7gsXtv4AFTHpQ7kj8dDIE/VXgSGcbajj5FmwfA0ostoRkW 0uLXrFT7JBGOefTusQAx8UBpjvdLYugFFgO X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean On 6/4/21 6:51 PM, Patrick Delaunay wrote: > Provide a man-page for the ums command - USB Mass Storage. > > Signed-off-by: Patrick Delaunay > --- > > Changes in v2: > - clarify description > - add reference to and align parameter name > - correct information for partition =3D 0 (expose all partitions) > - update dependency > > doc/usage/index.rst | 1 + > doc/usage/ums.rst | 57 +++++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 58 insertions(+) > create mode 100644 doc/usage/ums.rst > > diff --git a/doc/usage/index.rst b/doc/usage/index.rst > index 41b247bc62..1bab6ae3e9 100644 > --- a/doc/usage/index.rst > +++ b/doc/usage/index.rst > @@ -43,3 +43,4 @@ Shell commands > scp03 > size > true > + ums > diff --git a/doc/usage/ums.rst b/doc/usage/ums.rst > new file mode 100644 > index 0000000000..19d2ebb4a6 > --- /dev/null > +++ b/doc/usage/ums.rst > @@ -0,0 +1,57 @@ > +.. SPDX-License-Identifier: GPL-2.0+ > + > +ums command > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > + > +Synopsis > +-------- > + > +:: > + > + [] ums missing. I can add it when merging. Otherwise Reviewed-by: Heinrich Schuchardt > + > +Description > +----------- > + > +Use the USB Mass Storage class (also known as UMS) to make accessible a= n U-Boot > +block device (fully or with :ref:`U-Boot's partition syntax `) > +to a USB host and to enable file transfers. U-Boot, the USB device, act= s as a > +simple external hard drive plugged on the host USB port. > + > +This command "ums" stays in the USB's treatment loop until user enters = Ctrl-C. > + > +dev > + USB gadget device number > + > +interface > + interface for accessing the block device (mmc, sata, scsi, usb, ...= .) > + defaults is "mmc" > + > +devnum > + device number for selected interface > + > +partnum > + partition number or 0 to expose all partitions, defaults to 0 > + > +Example > +------- > + > +:: > + > + =3D> ums 0 mmc 0 > + =3D> ums 0 usb 1:2 > + > +Configuration > +------------- > + > +The ums command is only available if CONFIG_CMD_USB_MASS_STORAGE=3Dy > +and depends on CONFIG_USB_USB_GADGET and CONFIG_BLK. > + > +Return value > +------------ > + > +The return value $? is set to 0 (true) when the USB stack was successfu= lly > +started and interrupted, with Ctrl-C or after USB cable issue (detectio= n > +timeout or cable removal). > + > +If an error occurs, the return value $? is set to 1 (false). >