From mboxrd@z Thu Jan 1 00:00:00 1970 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=-5.0 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no 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 508FEC433F5 for ; Fri, 17 Sep 2021 23:21:18 +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 B3A2360FC2 for ; Fri, 17 Sep 2021 23:21:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org B3A2360FC2 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 87D1382DA1; Sat, 18 Sep 2021 01:21:15 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="WYOYVhn0"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F2CF9831E7; Sat, 18 Sep 2021 01:21:13 +0200 (CEST) Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) (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 BAF5D82D52 for ; Sat, 18 Sep 2021 01:21:10 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=grandpaul@gmail.com Received: by mail-pg1-x52a.google.com with SMTP id q68so11011940pga.9 for ; Fri, 17 Sep 2021 16:21:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:to:from:subject:message-id:date:user-agent:mime-version; bh=C4X/VzLfN6b/8hN0S67cIO2fjdjcDLzCGnnaHB3r5W8=; b=WYOYVhn0Yz31xR8G3xjpVQXpCw6qXsZyJ0n7w05G3edm4uL/Dom8iow5ytcOfAfbbb z5DxF31EaK3E0S8Ctyj8gLuZM62g58q6G+wqJzjmln8WXh1hq7LLKl+580xhkf+SaS+X 1gIjTtXzLRVQvBkBQqgCSWnA+LjzLpGc9knfooGhRt5+haVs8iG9gXm2oDDV01RT/62t TgUz+1CUfmjDvSlUdZrIijPJEg7i727ykgJTbAmOcnlgCJuvhCqZIqrheeSHzmzh2yZY hkDDroNhOmorwyXC0smjHMadI0uCbKs8tuyX8YcTYFeAQlhUGjiSEVc7D+8/qBrZlNfI cn/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:to:from:subject:message-id:date :user-agent:mime-version; bh=C4X/VzLfN6b/8hN0S67cIO2fjdjcDLzCGnnaHB3r5W8=; b=BICLuBdbMnL2UUWHm81kPRjL6nVx1gJSmALLVViCl3hT45nD4SdBgxa2zZk7sf7wSr rP96eqRgweH470ZLlp4qdld6l15uBt2zXbHPJBGUpHDB20yaxKpIefoMfRD21Q5oagJc K1Z8Z01LV36CgymBwyEKHjRwmMFdUYFGi78OEuTxVaaTkSPglDIgZgl7F3Zvi6yF5kr7 bWstHibrovG4DV1g6rnCV1Wmu5tsDrlGvhuUmMv0wCWSNvNTmZyqjB9OvzQVept6YTNp 6vwEvJTGn173kFNfBcMKT4TKimeYbKxfZCwlZkFmSMR1eaczeirfh2s3hJCQCSWkGj7S HhsQ== X-Gm-Message-State: AOAM533hMzy3F/qkR38bJjnLPTRRTXjBYZMQZ6Hn3tJln1JByb3oM9dD q3qh1Vbb8tHCsyrf/9yIN8ove4FC4Lg= X-Google-Smtp-Source: ABdhPJyJkW5goEPHYYcQZZBIHtN47+zMRKcA58qBT1OV00zQ9zp29yPQ4nJO/+HRUZE80IbpNRLM3A== X-Received: by 2002:a63:9142:: with SMTP id l63mr3717498pge.147.1631920868513; Fri, 17 Sep 2021 16:21:08 -0700 (PDT) Received: from [192.168.66.10] (host-111-184-129-17.dynamic.kbtelecom.net. [111.184.129.17]) by smtp.gmail.com with ESMTPSA id y13sm11243273pjr.1.2021.09.17.16.21.07 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 Sep 2021 16:21:08 -0700 (PDT) To: u-boot From: "Ying-Chun Liu (PaulLiu)" Subject: Question about extension board used in U-boot Message-ID: Date: Sat, 18 Sep 2021 07:21:05 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="GrEinwtgEqriHTZywiBefRXasbFiGHITj" 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.103.2 at phobos.denx.de X-Virus-Status: Clean This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --GrEinwtgEqriHTZywiBefRXasbFiGHITj Content-Type: multipart/mixed; boundary="WROtFyufzveWbuYkTMWfzRlquIA3Tkhgi"; protected-headers="v1" From: "Ying-Chun Liu (PaulLiu)" To: u-boot Message-ID: Subject: Question about extension board used in U-boot --WROtFyufzveWbuYkTMWfzRlquIA3Tkhgi Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: en-US Hi all, I have some questions about how to implement extension board usage. My case is on imx8mm-cl-iot-gate. It can add three different types of extension boards. One of the extension boards is SPI extension which have 3 empty slots. And you can add some small boards onto it. One of them is a "TPM2" module. My first question is if I want to use tpm2 in U-boot for measured boot. How to implement this right? Currently I just modify the dts used by U-boot to let it drive the extension board. And let it drive the TPM. But it is not good for upstreaming because when other types of extension boards installed then it is not working. Where to implement this? What is the best practice of this? The second question is about extension manager. I have read the extension.rst. I think I'll implement this anyway because then I can have a command to query what type of extension boards I have. And if the extension board is the 3 slots one. I can then detect which slot is the TPM. I'll implement this anyway because the "extension" command is convenient for users. But it seems to me that it only solves the problem for Linux kernel. It can apply a DTB Overlay to Linux DTB to let Linux knows we have that extension board. But it is too late for U-boot itself, right? The third question is I'm also dong SystemReady IR certificate. That mean= s the dtb for Linux is directly provided by U-boot. We use U-boot dtb directly to Linux kernel. In this case, how to modify that dts dynamically to feed to the Linux kernel by the extension manager? What is the best practice if I want to use U-boot dts for Linux in implementation? Thanks a lot. Yours, Paul --WROtFyufzveWbuYkTMWfzRlquIA3Tkhgi-- --GrEinwtgEqriHTZywiBefRXasbFiGHITj Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsF5BAABCAAjFiEEo2h49GQQhoFgDLZIRBc/oT0FiIgFAmFFIuEFAwAAAAAACgkQRBc/oT0FiIha kw//VpRdsNgFSK2pRMK58zeJvFtlu/1CfazRgGZETXQUph06c32F03KD0SfAUuSFLcCQR2JCYLed BmNAzhMnc3uiOP/wepHwTm8m4JGuFCLBx/Td37CjavyJylkn8tzQq7ntNZHihEtJBdMIoaWCTXA9 YlDJZHZVLg+QCUkB48hPgIMRFpc2UwkU/OP1jE9PxNoSyruCV+bMXaQXUd7WaPqocaAcj8U/mHTZ EXQbfAUxoCOTMVCab0XTRA/LW1QTuc3B8LBe0I99BGTLTZUxfphUt5mfAipEamXM+FH62tkiMwGJ 8G5uUhAH8wwHpmBXtfry4p5VZChJKg3uLPurIxow9AYuVeJEzII7mazL+zixsMVGfwB21PH107iT 816cQTw/Wv4BCodNJoqrP69j7Aq+kDxSOsttABc6QP3szfFY+OpDXocqMx3uDkY2lIYILL2mD7VG RYfOHWU/l1rwCPnlzMc5zJ04j+pL8l+GBZMyldh73UTJhMUhpTyW+MP51vx417xrsyzqL20eCfzv Qnhlqk5jsCMXjMloSypz2CHhWCyXcZB95JEjgMtwdwEAGDQy8KnjwpTm5hJ2iJQq480jimQpxeLZ FEp3OAknGsHHH3bpeb85rH6aDDI2YAp8Gc4VeyGMwmTGt5IAw4FwgZ156Nr+AHcvyzTBjursDV6C qCw= =OAHh -----END PGP SIGNATURE----- --GrEinwtgEqriHTZywiBefRXasbFiGHITj--