From patchwork Wed Feb 9 10:10:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 541085 Delivered-To: patch@linaro.org Received: by 2002:ad5:420f:0:0:0:0:0 with SMTP id e15csp1207723imo; Wed, 9 Feb 2022 02:11:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJxWvNPD8BZ74YEjMa9So4lOWE8czGQTgEl9CN+WqyQIzp/UIVAoJ0Ob6ijYaTnm8H7B+frH X-Received: by 2002:a50:fc8b:: with SMTP id f11mr1632840edq.440.1644401515105; Wed, 09 Feb 2022 02:11:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644401515; cv=none; d=google.com; s=arc-20160816; b=NXxPuyGGq8D8qx4xcJgOCiyiJ6MH23dy5EMQFIB4RhKkmdBcz3k32DMBtnUJMS1Gve nFIJUMRYV7cuh5St31yOqsdjgEniyQ2sFpHXwI6AWotFTKya3Bd1qDfLvn8u00Vd9GAh 6Xp7eU0lZIF/adtaHkI49QlDqHBH6pQY4OJfTlB54NNq10ziL0y8qVeS24JVxbs81C4k jGBmKt9pUtgmi+6VY5M3qYwO0jIIe9jMUsn5PixOzO2DSj5wQDObeBuILXkd+WGIGenl g7sl8GUdyIkRAc9g1p5mcBNuIbELm29XABZ0sXg97AmVbsWR2FgJ6Buz8klNbZ+TJgPK iSzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ol9ddRwnpZf0xiKIvRWpCX3zHIM2hmcgqKnrCjt/dOk=; b=DaDCeQZylnOkh+e/TGOUNCck65C5+lws4EtZtaY68V6BfnkWEuuuqJfLMTx3Wv79kQ r5R+cgIurSzlOBmn3xJfYVrIwPOP/RX7qTHYdOi1wQ8jZ/fsVTndrdmjwI/F7dQXnI+d EsqpFpBw7+j5Oce1tOuwmWeZE7DRgak1Zg1Few1rl9yARqSFfGWldO75ajFPEhW5InSk SAp8qg7csXneUVgcrgnkENQpqxgIEhiq4w98bJJkeZbJ8MmHj/GqdjHb0HS5WTelTe6j ad+VBTHq8VWjUIk66MQS5nEPE6kmBvP5lpbQhiax8R+GdO74gs6/Rq7VHkQf7yhQTNFI u9yA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RavSY6Fr; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id d18si3146970eja.389.2022.02.09.02.11.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 02:11:55 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RavSY6Fr; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8634C83E46; Wed, 9 Feb 2022 11:11:48 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="RavSY6Fr"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3B4FA83E1D; Wed, 9 Feb 2022 11:11:43 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4CE8483E38 for ; Wed, 9 Feb 2022 11:11:37 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=takahiro.akashi@linaro.org Received: by mail-pl1-x62f.google.com with SMTP id y7so1802097plp.2 for ; Wed, 09 Feb 2022 02:11:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ol9ddRwnpZf0xiKIvRWpCX3zHIM2hmcgqKnrCjt/dOk=; b=RavSY6FrSPe5ILkYRt0relV+N3UGBwjYAVfauMyCtho6wEGAx+UNZUlPiGQx5wO7/N 8bd8JNsoiSMaVtgD2KhDqya5jgWXgtW1aggy7wJhJCx4h5rhRJDTMsNpUk6nWZIyrQNA gtWnruDDUSreNE6S0h3NhYz6yDryEDVBKqBdEsCHLgamG/ysVWc80nKmW/y9g44QEAIs GL+6w5p9iqsP/SVmFGg9YRHLLqtigCNrfgMDYAnsJEh6nSRtHGyG8twiLbf1ACTLm3Ng 0OivsSgXgGk+64pOafVH7M/d773AJtbePgzV9eERToCwOKXVFPmAxi0obsLFaqgk9C1L U2Nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ol9ddRwnpZf0xiKIvRWpCX3zHIM2hmcgqKnrCjt/dOk=; b=WHo6UOTVBF0RLBvr4F+8oaUrI9p5jL0vNyUBJa6QXAPoB9rS/ee45mjg5flmnK9EU/ 6CkCVs7YdK5buY42UQrN9+mpmT0jxBpg49yd0+jVJTAwxwQxXw6uJGBN0s674uRvBs6n H32cCKcU4MsYcv+N3E7w2O7ZV/REoPRsoOKzLA8RArbew9Aul+R0Byc/DcsYFmLlmR/7 EmF3hvBKbakz+PygpOHPs4JbD52pSU4PnO+Xl7Qo3lZBK+T6k1uCiP8PDnl3OvGbbDAZ iNnw2IJDoTeSRCKruX6Gf5Fr2Lefu/mS1g7fjrB8SQr5JpFIK8uWDtoMv3n2BXgp5E8i w+KQ== X-Gm-Message-State: AOAM531+kD/m+EgrIjrME6/EIdd7J9rPd591pV95Q3VUFVbGeKLDReW1 I2y0vNcJ3CQbmTPNwTZhdRadyg== X-Received: by 2002:a17:90a:2fc5:: with SMTP id n5mr1695239pjm.69.1644401495509; Wed, 09 Feb 2022 02:11:35 -0800 (PST) Received: from localhost.localdomain ([2400:4050:c3e1:100:d885:543e:bfe4:9eb5]) by smtp.gmail.com with ESMTPSA id mi18sm5143303pjb.35.2022.02.09.02.11.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 02:11:35 -0800 (PST) From: AKASHI Takahiro To: xypron.glpk@gmx.de Cc: sjg@chromium.org, ilias.apalodimas@linaro.org, sughosh.ganu@linaro.org, masami.hiramatsu@linaro.org, mark.kettenis@xs4all.nl, u-boot@lists.denx.de, AKASHI Takahiro Subject: [PATCH v11 3/9] tools: mkeficapsule: add man page Date: Wed, 9 Feb 2022 19:10:36 +0900 Message-Id: <20220209101042.78036-4-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220209101042.78036-1-takahiro.akashi@linaro.org> References: <20220209101042.78036-1-takahiro.akashi@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.103.5 at phobos.denx.de X-Virus-Status: Clean Add a man page for mkeficapsule command. Signed-off-by: AKASHI Takahiro Reviewed-by: Simon Glass Acked-by: Ilias Apalodimas --- MAINTAINERS | 1 + doc/mkeficapsule.1 | 99 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 100 insertions(+) create mode 100644 doc/mkeficapsule.1 diff --git a/MAINTAINERS b/MAINTAINERS index dcdd99e368d1..2a8f70d70833 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -749,6 +749,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..680362f5c4e9 --- /dev/null +++ b/doc/mkeficapsule.1 @@ -0,0 +1,99 @@ +.\" SPDX-License-Identifier: GPL-2.0+ +.\" Copyright (c) 2021, Linaro Limited +.\" written by AKASHI Takahiro +.TH MAEFICAPSULE 1 "May 2021" + +.SH NAME +mkeficapsule \- Generate EFI capsule file for U-Boot + +.SH SYNOPSIS +.B mkeficapsule +.RI [ options "] " capsule-file + +.SH "DESCRIPTION" +.B mkeficapsule +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. + +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. + +.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 uImage format and allows for +multiple binary blobs in a single capsule file. +This type of image file can be generated by +.BR mkimage . + +.SH "OPTIONS" +One of +.BR --fit " or " --raw +option must be specified. + +.TP +.BI "-f\fR,\fB --fit " fit-image-file +Specify a FIT image file + +.TP +.BI "-r\fR,\fB --raw " raw-image-file +Specify a raw image file + +.TP +.BI "-i\fR,\fB --index " index +Specify an image index + +.TP +.BI "-I\fR,\fB --instance " instance +Specify a hardware instance + +.TP +.BR -h ", " --help +Print a help message + +.PP +With signing, +.BR --private-key ", " --certificate " and " --monotonic-count +are all mandatory. + +.TP +.BI "-p\fR,\fB --private-key " private-key-file +Specify signer's private key file in PEM + +.TP +.BI "-c\fR,\fB --certificate " certificate-file +Specify signer's certificate file in EFI certificate list format + +.TP +.BI "-m\fR,\fB --monotonic-count " count +Specify a monotonic count which is set to be monotonically incremented +at every firmware update. + +.TP +.B "-d\fR,\fB --dump_sig" +Dump signature data into *.p7 file + +.PP +.SH FILES +.TP +.I /EFI/UpdateCapsule +The directory in which all capsule files be placed + +.SH SEE ALSO +.BR mkimage (1) + +.SH AUTHORS +Written by AKASHI Takahiro + +.SH HOMEPAGE +http://www.denx.de/wiki/U-Boot/WebHome