Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id BBF74C433F5 for ; Mon, 21 Mar 2022 19:27:53 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D954883A9F; Mon, 21 Mar 2022 20:27:34 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com 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=gmail.com header.i=@gmail.com header.b="a1LVLp+m"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E75B88215E; Mon, 21 Mar 2022 19:44:05 +0100 (CET) Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) (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 2156C8393D for ; Mon, 21 Mar 2022 19:43:59 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=fr0st61te@gmail.com Received: by mail-lf1-x132.google.com with SMTP id w27so26083447lfa.5 for ; Mon, 21 Mar 2022 11:43:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=IQhy1Ce3meJ4TUCE/9NGo7SrxxT7/tpLjj8BGJ9LJcE=; b=a1LVLp+mIZML8xPTt3cURNZpmVE5SECIDFPjsWCxI+eqm2kX6ogiGDgBAof6STsTG3 XcnD7q4jWWpwPY57mTa45K4uY6FYr1hm6D22mB4+37WiZNDFT7rxnPvzQ7ybBQqkt1XE 1xQC9FUKIbmyUQzGHULOXeJShwm5yAsQxZKQaOqQIuXGb9DSBIeYJy6arJ+qCQJ6vVfu 3mZRHiXlGKkmevB9Z0O6sotJ96MoXdijsSiPNqzYyETj5Iw2yP6iI3McjOJQ7DLuab74 kDaWa6micyi29QupOOfjzHm6DNXIsBS8WZztAgQqU7QiWdHTGx6Vp8xie01tnTFcVdko 1b4g== 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=IQhy1Ce3meJ4TUCE/9NGo7SrxxT7/tpLjj8BGJ9LJcE=; b=dYPhsd5I5AP+iTehLManbg3CeAA6icxJ1h6TOxUuddF/U3YmrfWaFMHuZwR7WBQrjl pU+36BsOh6+88Y/MOw5tPvumGOWLQ0YKqp3Z3EROgIrsI7W+KsMOFPQPGpH04YAahFit GFbzo0jGaLw8KBEqy0jjZrQq8ZrMCH1xLvUCwH58tQvzNHqfqvh5mElJxixNi3+EOvCG yuYa0da92jSMmoMlfZPT3iwKsfht01pY7mmWslBxGT6vISk+aLq0BreORuAyzkuwPJDI LXz+IAbzG3YL4S2Q7z6LHXYFuLh4FdNaPgaEGwYv4KKki039YN0PxIKWAud7tIGtDtXK +nGA== X-Gm-Message-State: AOAM5334mXUfgwsHPcli+DPEQ1DPrczsmMNxNrsJy0HktbCmEmiRttGr xxH7hZ7A15x056lLbJ7NP/4= X-Google-Smtp-Source: ABdhPJyekIVyAFxoy3nm6r7VlijKm97i7gDPTA4lQkq+HvK2NLuGbP92274M34uXt5rZoGauvV4vSA== X-Received: by 2002:ac2:410b:0:b0:448:58a8:3e8a with SMTP id b11-20020ac2410b000000b0044858a83e8amr15506211lfi.258.1647888238487; Mon, 21 Mar 2022 11:43:58 -0700 (PDT) Received: from localhost.localdomain (93-80-66-251.broadband.corbina.ru. [93.80.66.251]) by smtp.googlemail.com with ESMTPSA id m17-20020ac24251000000b00439fe142a0esm1875041lfl.162.2022.03.21.11.43.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 11:43:58 -0700 (PDT) From: Ivan Mikhaylov To: Simon Glass , Jan Kiszka Cc: u-boot@lists.denx.de, Ivan Mikhaylov , Ivan Mikhaylov Subject: [PATCH 2/3] binman: add documentation for binman sign option Date: Mon, 21 Mar 2022 21:43:18 +0000 Message-Id: <20220321214319.33254-3-fr0st61te@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220321214319.33254-1-fr0st61te@gmail.com> References: <20220321214319.33254-1-fr0st61te@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Mon, 21 Mar 2022 20:27:26 +0100 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 the documentation about binman sign option and providing an example. Signed-off-by: Ivan Mikhaylov --- tools/binman/binman.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/binman/binman.rst b/tools/binman/binman.rst index 771645380e..efa3321b95 100644 --- a/tools/binman/binman.rst +++ b/tools/binman/binman.rst @@ -1005,6 +1005,16 @@ You can also replace just a selection of entries:: $ binman replace -i image.bin "*u-boot*" -I indir +Signing FIT with private key in an image +--------------------------- + +If your firmware image contains a FIT container you can sign container in +place. For example:: + + $ binman sign -i image.bin -k privatekey -a sha256,rsa4096 -f fit.fit fit + +which will sign the FIT's content with private key and replace it immediately +inside your image. Logging ------- -- 2.35.1