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 561BCC433EF for ; Tue, 8 Feb 2022 18:52:49 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5C45D83DEB; Tue, 8 Feb 2022 19:51:09 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org 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; unprotected) header.d=chromium.org header.i=@chromium.org header.b="hhzzGW2Q"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6BEC083DA1; Tue, 8 Feb 2022 19:50:44 +0100 (CET) Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) (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 E2EA483DA0 for ; Tue, 8 Feb 2022 19:50:37 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd2a.google.com with SMTP id m185so190858iof.10 for ; Tue, 08 Feb 2022 10:50:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=LXsWhRTxGWga2LO+3UzldHDtmBJyWnHptJv2jptmnXQ=; b=hhzzGW2QR7REds48Sc/oP29OG0qYotbumTij8SgvKQGmFY81Sef+lBlvfSzsO1jQCc HeU3xjUogNf5cv5DhOkfFcUciFJbaLP1KeGoW6fPylxblvw2SRRVU8j7Ai8mVhJzA36c Do9alRkrnwg9GG/aXz5DinmrxOBl2g1DzCm3w= 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=LXsWhRTxGWga2LO+3UzldHDtmBJyWnHptJv2jptmnXQ=; b=yYXXy98ooBVg8KIO/KX1NQgpXHwRkaOjIml2A3eThvoteN1sTR20NNewDYILTd/lNY 4kVKt+4BVGIxyrC8+2z8kLPfow9Wd0cgstPrGJOqLcaq/2vbaVTMF26k2NaCtJ9bWoKb 9he2p2UxdYtbKd0KiJbJWKMcvQof2GS0LB0G1WX2TVs2dR0vO3ku9vJ/ucvBwPEbWCMB z336iPwGL6KogNbxa0lYctykLyFgYLxBdr+uasd8BhNDqfJFDqkRf9xnMKPXxpRTVfqd 1vX6WTl/ZlBOih35gM1dmrE7Lc7/sO6ClQzbZwqdB7yytEqjdpAAAPpOzTmAKPmiD9ES /x3w== X-Gm-Message-State: AOAM5312t9MfYf/QFg3ghC+qdzLzlARWd9sEebk3LjG0UuWrzmPLI5SP bmEE1QCccmN1Cy57m5pLsqZnr2lp5kYyog== X-Google-Smtp-Source: ABdhPJx/OTRnWbRWkQqc2Iy0RquAZT5JSGTDhkolWUWfk5n3lSiU+1QPA6TnD3G71KuUC0JkPIVnyg== X-Received: by 2002:a05:6638:190a:: with SMTP id p10mr2800685jal.313.1644346236499; Tue, 08 Feb 2022 10:50:36 -0800 (PST) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id q2sm2911844ilt.33.2022.02.08.10.50.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Feb 2022 10:50:36 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: huang lin , Jeffy Chen , Simon Glass , Kever Yang , Philipp Tomsich , Alper Nebi Yasak , Tom Rini , Roger Quadros , Philippe Reynes , Ivan Mikhaylov , =?UTF-8?q?Marek=20Beh=C3=BAn?= Subject: [PATCH 12/24] WIP: binman: Add support for OP-TEE Date: Tue, 8 Feb 2022 11:49:56 -0700 Message-Id: <20220208185008.35843-11-sjg@chromium.org> X-Mailer: git-send-email 2.35.0.263.gb82422642f-goog In-Reply-To: <20220208185008.35843-1-sjg@chromium.org> References: <20220208185008.35843-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 support for an Open Portable Trusted Execution Environment (OP-TEE) blob which is used with ARM Trusted Firmware. Note: This is a placeholder patch as Roger Quadros has already posted one: https://patchwork.ozlabs.org/project/uboot/patch/20220204130031.24610-1-rogerq@kernel.org/ Signed-off-by: Simon Glass --- Makefile | 1 + tools/binman/entries.rst | 13 +++++++++++++ tools/binman/etype/op_tee.py | 23 +++++++++++++++++++++++ tools/binman/missing-blob-help | 4 ++++ 4 files changed, 41 insertions(+) create mode 100644 tools/binman/etype/op_tee.py diff --git a/Makefile b/Makefile index a69cc088a7..ee1dc11e2f 100644 --- a/Makefile +++ b/Makefile @@ -1326,6 +1326,7 @@ cmd_binman = $(srctree)/tools/binman/binman $(if $(BINMAN_DEBUG),-D) \ -I arch/$(ARCH)/dts -a of-list=$(CONFIG_OF_LIST) \ $(foreach f,$(BINMAN_INDIRS),-I $(f)) \ -a atf-bl31-path=${BL31} \ + -a op-tee-path=${TEE} \ -a opensbi-path=${OPENSBI} \ -a default-dt=$(default_dt) \ -a scp-path=$(SCP) \ diff --git a/tools/binman/entries.rst b/tools/binman/entries.rst index c47f7df098..0fb6d56296 100644 --- a/tools/binman/entries.rst +++ b/tools/binman/entries.rst @@ -933,6 +933,19 @@ binman. +Entry: op-tee: Open Portable Trusted Execution Environment (OP-TEE) blob +------------------------------------------------------------------------ + +Properties / Entry arguments: + - op-tee-path: Filename of file to read into entry. This is typically + called tee.elf + +This entry holds the OP-TEE Elf file, typically started by U-Boot SPL. +See the U-Boot README for your architecture or board for how to use it. See +https://https://www.op-tee.org/ for more information about OP-TEE. + + + Entry: opensbi: RISC-V OpenSBI fw_dynamic blob ---------------------------------------------- diff --git a/tools/binman/etype/op_tee.py b/tools/binman/etype/op_tee.py new file mode 100644 index 0000000000..b34f561622 --- /dev/null +++ b/tools/binman/etype/op_tee.py @@ -0,0 +1,23 @@ +# SPDX-License-Identifier: GPL-2.0+ +# Copyright 2022 Google LLC +# Written by Simon Glass +# +# Entry-type module for Open Portable Trusted Execution Environment (OP-TEE) +# + +from binman.etype.blob_named_by_arg import Entry_blob_named_by_arg + +class Entry_op_tee(Entry_blob_named_by_arg): + """Open Portable Trusted Execution Environment (OP-TEE) blob + + Properties / Entry arguments: + - op-tee-path: Filename of file to read into entry. This is typically + called tee.elf + + This entry holds the OP-TEE Elf file, typically started by U-Boot SPL. + See the U-Boot README for your architecture or board for how to use it. See + https://https://www.op-tee.org/ for more information about OP-TEE. + """ + def __init__(self, section, etype, node): + super().__init__(section, etype, node, 'op-tee') + self.external = True diff --git a/tools/binman/missing-blob-help b/tools/binman/missing-blob-help index 551ca87f6c..c8e6b84882 100644 --- a/tools/binman/missing-blob-help +++ b/tools/binman/missing-blob-help @@ -33,3 +33,7 @@ k3-rti-wdt-firmware: If CONFIG_WDT_K3_RTI_LOAD_FW is enabled, a firmware image is needed for the R5F core(s) to trigger the system reset. One possible source is https://github.com/siemens/k3-rti-wdt. + +op-tee: +See the documentation for your board. You may need to build Open Portable +Trusted Execution Environment (OP-TEE) with TEE=/path/to/tee.elf -- 2.35.0.263.gb82422642f-goog