From: AKASHI Takahiro <takahiro.akashi@linaro.org>
To: Heinrich Schuchardt <xypron.glpk@gmx.de>
Cc: agraf@csgraf.de, sjg@chromium.org, ilias.apalodimas@linaro.org,
sughosh.ganu@linaro.org, masami.hiramatsu@linaro.org,
mark.kettenis@xs4all.nl, u-boot@lists.denx.de
Subject: Re: [PATCH v8 04/12] tools: mkeficapsule: add man page
Date: Fri, 7 Jan 2022 11:31:55 +0900 [thread overview]
Message-ID: <20220107023155.GB11812@laputa> (raw)
In-Reply-To: <5a4447ea-0bc7-1446-d0d1-8e4e5b94fd88@gmx.de>
On Thu, Jan 06, 2022 at 08:26:03PM +0100, Heinrich Schuchardt wrote:
> On 1/6/22 11:25, AKASHI Takahiro wrote:
> > Heinrich,
> >
> > On Sat, Jan 01, 2022 at 11:02:52PM +0100, Heinrich Schuchardt wrote:
> > > On 12/20/21 06:02, AKASHI Takahiro wrote:
> > > > Add a man page for mkeficapsule command.
> > > >
> > > > Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
> > > > Reviewed-by: Simon Glass <sjg@chromium.org>
> > > > Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
> > > > ---
> > > > MAINTAINERS | 1 +
> > > > doc/mkeficapsule.1 | 95 ++++++++++++++++++++++++++++++++++++++++++++++
> > > > 2 files changed, 96 insertions(+)
> > > > create mode 100644 doc/mkeficapsule.1
> > > >
> > > > diff --git a/MAINTAINERS b/MAINTAINERS
> > > > index e718ad213553..93ef5e297acc 100644
> > > > --- a/MAINTAINERS
> > > > +++ b/MAINTAINERS
> > > > @@ -723,6 +723,7 @@ S: Maintained
> > > > T: git https://source.denx.de/u-boot/custodians/u-boot-efi.git
> > > > F: doc/api/efi.rst
> > > > F: doc/develop/uefi/*
> > > > +F: doc/mkeficapsule.1
> > > > F: doc/usage/bootefi.rst
> > > > F: drivers/rtc/emul_rtc.c
> > > > F: include/capitalization.h
> > > > diff --git a/doc/mkeficapsule.1 b/doc/mkeficapsule.1
> > > > new file mode 100644
> > > > index 000000000000..837e09ab451e
> > > > --- /dev/null
> > > > +++ b/doc/mkeficapsule.1
> > > > @@ -0,0 +1,95 @@
> > >
> > > Please, provide copyright information. Cf.
> > > https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/tree/man7/fanotify.7.
> >
> > OK
> >
> > > > +.TH MAEFICAPSULE 1 "May 2021"
> > > > +
> > > > +.SH NAME
> > > > +mkeficapsule \- Generate EFI capsule file for U-Boot
> > > > +
> > > > +.SH SYNOPSIS
> > > > +.B mkeficapsule
> > > > +.RB [\fIoptions\fP] " \fIcapsule-file\fP"
> > >
> > > .RI [ options ] " capsule-file
> >
> > I don't have any strong preference for those notations,
> > but I simply followed the existing format used in doc/kwboot.1
> > and doc/mkimage.1 which are the only two instances of
> > man pages in the U-Boot source.
> >
> > So I'd like to see guidelines/rules for U-Boot first.
>
> See man 7 man-pages:
>
> "The preferred way to write this in the source file is:
>
> .BR fcntl ()
>
> (Using this format, rather than the use of "\fB...\fP()" makes it
> easier to write tools that parse man page source files.)"
Well, the sentence that you cited here has a precedent one:
Any reference to the subject of the current manual page should be writ-
ten with the name in bold followed by a pair of parentheses in Roman
(normal) font.
I doubt it is a general requirement.
> >
> > > > +
> > > > +.SH "DESCRIPTION"
> > > > +The
> > > > +\fBmkeficapsule\fP
> > >
> > > .B mkeficapsule
> >
> > ditto
> > I can find a use of "\fB" (and others) also in your reference:
> > > https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/tree/man7/fanotify.7.
> >
> > > > +command is used to create an EFI capsule file for use with the U-Boot
> > > > +EFI capsule update.
> > > > +A capsule file may contain various type of firmware blobs which
> > > > +are to be applied to the system and must be placed in the specific
> > > > +directory on the UEFI system partition. An update will be automatically
> > > > +executed at next reboot.
>
> Starting sentences in new lines makes future edits easier.
? I don't know what you are referring to here.
> > > > +
> > > > +Optionally, a capsule file can be signed with a given private key.
> > > > +In this case, the update will be authenticated by verifying the signature
> > > > +before applying.
> > > > +
> > > > +\fBmkeficapsule\fP supports two different format of image files:
> > >
> > > .B mkeficapsule
> > > supports two different format of image files:
> > >
> > > > +.TP
> > > > +.I raw image
> > > > +format is a single binary blob of any type of firmware.
> > > > +
> > > > +.TP
> > > > +.I FIT (Flattened Image Tree) image
> > > > +format
> > > > +is the same as used in the new \fIuImage\fP format and allows for
> > >
> > > is the same as used in the new
> > > .I uImage
> > > format and allows for
> > >
> > > But why would you use italics for uImage? It is neither a command nor a
> > > parameter.
> >
> > I don't know, but will drop the decoration here.
> >
> > > Please, rework the man page to avoid escape sequences.
> > >
> > > Best regards
> > >
> > > Heinrich
> > >
> > > > +multiple binary blobs in a single capsule file.
> > > > +This type of image file can be generated by \fBmkimage\fP.
> > > > +
> > > > +.SH "OPTIONS"
> > > > +One of \fB--fit\fP or \fB--raw\fP option must be specified.
> > > > +
> > > > +.TP
> > > > +.BI "-f, --fit \fIfit-image-file\fP"
> > > > +Specify a FIT image file
> > > > +
> > > > +.TP
> > > > +.BI "-r, --raw \fIraw-image-file\fP"
> > > > +Specify a raw image file
> > > > +
> > > > +.TP
> > > > +.BI "-i, --index \fIindex\fP"
> > > > +Specify an image index
> > > > +
> > > > +.TP
> > > > +.BI "-I, --instance \fIinstance\fP"
> > > > +Specify a hardware instance
> > > > +
> > > > +.TP
> > > > +.BI "-h, --help"
> > > > +Print a help message
> > > > +
> > > > +.TP 0
> > > > +.B With signing:
> > > > +
> > > > +\fB--private-key\fP, \fB--certificate\fP and \fB--monotonic-count\fP are
> > > > +all mandatory.
> > > > +
> > > > +.TP
> > > > +.BI "-p, --private-key \fIprivate-key-file\fP"
> > > > +Specify signer's private key file in PEM
> > > > +
> > > > +.TP
> > > > +.BI "-c, --certificate \fIcertificate-file\fP"
> > > > +Specify signer's certificate file in EFI certificate list format
> > > > +
> > > > +.TP
> > > > +.BI "-m, --monotonic-count \fIcount\fP"
> > > > +Specify a monotonic count which is set to be monotonically incremented
> > > > +at every firmware update.
> > > > +
> > > > +.TP
> > > > +.BI "-d, --dump_sig"
> > > > +Dump signature data into *.p7 file
> > > > +
> > > > +.PP
> > > > +.SH FILES
> > > > +.TP
> > > > +.BI "\fI/EFI/UpdateCapsule\fP"
> > > > +The directory in which all capsule files be placed
> > > > +
> > > > +.SH SEE ALSO
> > > > +.B mkimage
> > > > +
> > > > +.SH AUTHORS
> > > > +Written by AKASHI Takahiro <takahiro.akashi@linaro.org>
> > >
> > > man man-pages discourages using an AUTHORS paragraph.
> >
> > ditto
> > I see AUTHORS sections in doc/kwboot.1 and doc/mkimage.1.
>
> See man 7 man-pages:
>
> "AUTHORS [Discouraged]"
>
> Your name can be placed in the copyright message.
My point is:
> > ditto
> > I see AUTHORS sections in doc/kwboot.1 and doc/mkimage.1.
and so
> > So I'd like to see guidelines/rules for U-Boot first.
-Takahiro Akashi
> Best regards
>
> Heinrich
>
> >
> >
> > > Please, put the information into copyright header.
> > >
> > > Best regards
> > >
> > > Heinrich
> > >
> > > > +
> > > > +.SH HOMEPAGE
> > > > +http://www.denx.de/wiki/U-Boot/WebHome
> >
> > For instance, no reference to "HOMEPAGE" in "man man-pages"
> > but doc/mkimage.1 has one.
> >
> > -Takahiro Akashi
> >
> > >
> > >
> > >
> > >
>
next prev parent reply other threads:[~2022-01-07 2:32 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-20 5:02 [PATCH v8 00/12] efi_loader: capsule: improve capsule authentication support AKASHI Takahiro
2021-12-20 5:02 ` [PATCH v8 01/12] tools: mkeficapsule: rework the code a little bit AKASHI Takahiro
2022-01-01 21:35 ` Heinrich Schuchardt
2022-01-06 9:01 ` AKASHI Takahiro
2021-12-20 5:02 ` [PATCH v8 02/12] tools: build mkeficapsule with tools-only_defconfig AKASHI Takahiro
2022-01-01 21:42 ` Heinrich Schuchardt
2022-01-06 9:20 ` AKASHI Takahiro
2022-01-12 20:03 ` Simon Glass
2021-12-20 5:02 ` [PATCH v8 03/12] tools: mkeficapsule: add firmwware image signing AKASHI Takahiro
2022-01-01 21:50 ` Heinrich Schuchardt
2022-01-17 8:11 ` AKASHI Takahiro
2021-12-20 5:02 ` [PATCH v8 04/12] tools: mkeficapsule: add man page AKASHI Takahiro
2022-01-01 22:02 ` Heinrich Schuchardt
2022-01-06 10:25 ` AKASHI Takahiro
2022-01-06 19:26 ` Heinrich Schuchardt
2022-01-07 2:31 ` AKASHI Takahiro [this message]
2022-01-09 22:40 ` Heinrich Schuchardt
2021-12-20 5:02 ` [PATCH v8 05/12] doc: update UEFI document for usage of mkeficapsule AKASHI Takahiro
2022-01-01 22:09 ` Heinrich Schuchardt
2022-01-07 2:20 ` AKASHI Takahiro
2022-01-09 22:36 ` Heinrich Schuchardt
2021-12-20 5:02 ` [PATCH v8 06/12] test/py: efi_capsule: add image authentication test AKASHI Takahiro
2022-01-01 22:18 ` Heinrich Schuchardt
2022-01-17 2:03 ` AKASHI Takahiro
2021-12-20 5:02 ` [PATCH v8 07/12] tools: mkeficapsule: allow for specifying GUID explicitly AKASHI Takahiro
2022-01-01 22:42 ` Heinrich Schuchardt
2022-01-17 2:14 ` AKASHI Takahiro
2021-12-20 5:02 ` [PATCH v8 08/12] test/py: efi_capsule: align with the syntax change of mkeficapsule AKASHI Takahiro
2021-12-20 5:02 ` [PATCH v8 09/12] test/py: efi_capsule: add a test for "--guid" option AKASHI Takahiro
2021-12-20 5:02 ` [PATCH v8 10/12] test/py: efi_capsule: check the results in case of CAPSULE_AUTHENTICATE AKASHI Takahiro
2021-12-20 5:02 ` [PATCH v8 11/12] (RFC) tools: add fdtsig.sh AKASHI Takahiro
2021-12-20 5:02 ` [PATCH v8 12/12] (RFC) efi_loader, dts: add public keys for capsules to device tree AKASHI Takahiro
2022-01-01 22:53 ` Heinrich Schuchardt
2022-01-12 20:03 ` Simon Glass
2022-01-17 1:42 ` AKASHI Takahiro
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=20220107023155.GB11812@laputa \
--to=takahiro.akashi@linaro.org \
--cc=agraf@csgraf.de \
--cc=ilias.apalodimas@linaro.org \
--cc=mark.kettenis@xs4all.nl \
--cc=masami.hiramatsu@linaro.org \
--cc=sjg@chromium.org \
--cc=sughosh.ganu@linaro.org \
--cc=u-boot@lists.denx.de \
--cc=xypron.glpk@gmx.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox