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 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9DF49C433EF for ; Thu, 7 Oct 2021 19:09:43 +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 99BEF610A1 for ; Thu, 7 Oct 2021 19:09:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 99BEF610A1 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com 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 19C14834EB; Thu, 7 Oct 2021 21:09:40 +0200 (CEST) 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="LPz3QMY9"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 56FB78350C; Thu, 7 Oct 2021 21:09:38 +0200 (CEST) Received: from mail-ot1-x32b.google.com (mail-ot1-x32b.google.com [IPv6:2607:f8b0:4864:20::32b]) (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 3C9CF834C7 for ; Thu, 7 Oct 2021 21:09:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=mr.nuke.me@gmail.com Received: by mail-ot1-x32b.google.com with SMTP id l16-20020a9d6a90000000b0053b71f7dc83so8724716otq.7 for ; Thu, 07 Oct 2021 12:09:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=IACTJiBcXiA7+Ff+xBg3vtrrbqdW0qXHpv3etNgzYm4=; b=LPz3QMY9IwFokLRHnoqSI2SN4dqmIyjfgcuK6TcH0lWA2dM+XbiHarEfkPa6baKP3x 7EnXeXiji+NcG+nbQbPImy+1je3f4MkuzgNRJBlHmpC1Fd5k+3FMl25Z1s9f40wF+ac6 b4Io11I81EYLLdk+4UNQAYylvAFnQ0FdYGdtiDoQT0yQvHV7mu9pbawWV6JXuHAMKFJd vUL4R1N0z69DToLQUMyIxFeok+7ADZUMKxxg0OP9aphLfAHv0/hnNLn6977+OfMGqmxS +c9XhQM8HELjWyy7UU7a784v3LX3ske6C+oIqFjBbOKJI9DjwpXxyIMir+huXq18Dnn9 NJNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=IACTJiBcXiA7+Ff+xBg3vtrrbqdW0qXHpv3etNgzYm4=; b=i1xGGW5d1EPrIOJPPXQO5oR3/517lvexUynx9QcbHz+j9B/CC0Leczn5bFxYQiZKy5 IGdGqENJprTN0MfgrBTOFFC6eLdSz+lVfSgUQxIf33Q2oug/1ejwUwsvj+BNpXUd4HXS qTx3H/Dr+e2aaNrGlBNgHanrH457+FwwWFd+B11QHpkc5ZFr8RKzUxwj6pH16ovQcR5o FGmBZUXefxB0pf83MR3S/0rMuwBseVGjYP16yx1+wDZiXd5ZtWwNiqaKTjaaPZ8It903 cj200QbrapYgGT7p7OcqfOa37OTSjLFlgJ4h6shX4YkSYKrW+0h9fd9Y8eOrnDUb0Hhn Gbjw== X-Gm-Message-State: AOAM533PLlc/HTIsE71RdVC6A2vzSM73mIHwUmnG2GMdE1pSV1RsZ1Il 3B0ln+vRXiWmbL9ZrvBo4ZM= X-Google-Smtp-Source: ABdhPJyq1NpxMY2BRGfxoUqX6yxWNIslu20noIvWV8zD5yf6DrpMEnX30bq9SW8IClU161Se2G1A7g== X-Received: by 2002:a9d:8e1:: with SMTP id 88mr5252623otf.339.1633633772863; Thu, 07 Oct 2021 12:09:32 -0700 (PDT) Received: from nuclearis3.gtech (c-98-195-139-126.hsd1.tx.comcast.net. [98.195.139.126]) by smtp.gmail.com with ESMTPSA id s24sm51079otp.36.2021.10.07.12.09.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 07 Oct 2021 12:09:32 -0700 (PDT) Subject: Re: [Uboot-stm32] [PATCH v2 03/11] stm32mp1: Add support for falcon mode boot from SD card To: Patrick DELAUNAY , u-boot@lists.denx.de, uboot-stm32@st-md-mailman.stormreply.com Cc: etienne.carriere@linaro.org References: <20210907235933.2798330-1-mr.nuke.me@gmail.com> <20210907235933.2798330-4-mr.nuke.me@gmail.com> <4df50b6a-2536-dd89-cba3-f8362d5b1c7a@foss.st.com> From: "Alex G." Message-ID: <45dc816b-78f2-1764-60ac-e9373f4ed540@gmail.com> Date: Thu, 7 Oct 2021 14:09:31 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <4df50b6a-2536-dd89-cba3-f8362d5b1c7a@foss.st.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit 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 On 10/4/21 9:57 AM, Patrick DELAUNAY wrote: > Hi, > > => if OPTEE is loaded after SPL the U-Boot configuration change (running > in secure world or not) > > I am starting to work on these issues in the branch > > https://github.com/u-boot/u-boot/compare/master...patrickdelaunay:spl_optee_W2140 > https://github.com/u-boot/u-boot/commit/04ad553e9c6bee62781460d2952df4962e58ae14 > https://github.com/u-boot/u-boot/commit/aebb687a1557590bf070cf5d3478544ffff20ca1 > > But it is still not working, OP-TEE is not correctly started What do you mean by "OP-TEE is not correctly started". Here's the .its that I use for my FIT image. I hope this will be helpful. /dts-v1/ ;/ { description = "U-Boot fitImage for stm32mp1"; #address-cells = <1>; images { optee-1 { description = "OP-TEE secure world firmware"; data = /incbin/("firmware/tee.bin"); type = "tee"; arch = "arm"; os = "tee"; compression = "none"; load = <0xddffffe4>; entry = <0xde000000>; hash-1 { algo = "sha256"; }; }; kernel-1 { description = "Linux kernel"; data = /incbin/("kernel/zImage"); type = "kernel"; arch = "arm"; os = "linux"; compression = "none"; load = <0xc2000040>; entry = <0xc2000040>; hash-1 { algo = "sha256"; }; }; fdt-stm32mp157c-ev1.dtb { description = "Flattened Device Tree blob"; data = /incbin/("kernel/stm32mp157c-ev1.dtb"); type = "flat_dt"; arch = "arm"; compression = "none"; hash-1 { algo = "sha256"; }; }; fdt-stm32mp157c-dk2.dtb { description = "Flattened Device Tree blob"; data = /incbin/("kernel/stm32mp157c-dk2.dtb"); type = "flat_dt"; arch = "arm"; compression = "none"; hash-1 { algo = "sha256"; }; }; fdt-dk2-optee.dto { description = "Flattened Device Tree blob"; data = /incbin/("firmware/dk2-optee.dto"); type = "flat_dt"; arch = "arm"; compression = "none"; hash-1 { algo = "sha256"; }; }; fdt-dk2-can1-enable.dto { description = "Flattened Device Tree blob"; data = /incbin/("firmware/dk2-can1-enable.dto"); type = "flat_dt"; arch = "arm"; compression = "none"; hash-1 { algo = "sha256"; }; }; fdt-bootargs.dto { description = "Flattened Device Tree blob"; data = /incbin/("firmware/bootargs.dto"); type = "flat_dt"; arch = "arm"; compression = "none"; hash-1 { algo = "sha256"; }; }; }; configurations { default = "secure-stm32mp157c-ev1.dtb"; secure-stm32mp157c-ev1.dtb { description = "Linux with OP-TEE for stm32mp157c-ev1.dtb"; kernel = "optee-1"; fdt = "fdt-stm32mp157c-ev1.dtb", "fdt-bootargs.dto"; loadables = "kernel-1"; hash-1 { algo = "sha256"; }; }; secure-stm32mp157c-dk2.dtb { description = "Linux with OP-TEE for stm32mp157c-dk2.dtb"; kernel = "optee-1"; fdt = "fdt-stm32mp157c-dk2.dtb", "fdt-bootargs.dto", "fdt-dk2-can1-enable.dto", "fdt-dk2-optee.dto"; loadables = "kernel-1"; hash-1 { algo = "sha256"; }; }; }; };