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=-7.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,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 A815BC4338F for ; Mon, 16 Aug 2021 21:30:08 +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 AB03760F38 for ; Mon, 16 Aug 2021 21:30:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org AB03760F38 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.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 E5069807F3; Mon, 16 Aug 2021 23:30:03 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com 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=konsulko.com header.i=@konsulko.com header.b="qfH/nC7f"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B294C8032E; Mon, 16 Aug 2021 23:30:00 +0200 (CEST) Received: from mail-qv1-xf31.google.com (mail-qv1-xf31.google.com [IPv6:2607:f8b0:4864:20::f31]) (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 26343807F3 for ; Mon, 16 Aug 2021 23:29:52 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qv1-xf31.google.com with SMTP id jv8so2529535qvb.3 for ; Mon, 16 Aug 2021 14:29:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=/TUXXPfE0CXgDbX5szo9+2N4CmQipYEq3viEyKs9RHk=; b=qfH/nC7fV4t7qvt/UJiZ8JSiu3k7FVmzAGsQkY84bdcWGOw5b+NhqgkwRp93bLYVEX VfumNEEsGvGEpTF8ZzgTfGmQYQf7qffLDsrY7m5nfesRMIXq9n/pLfNGbxp/OhFb0aOp O1rzhBaADG54Cn0IcobdUNHsxps4Lv3eDorkM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=/TUXXPfE0CXgDbX5szo9+2N4CmQipYEq3viEyKs9RHk=; b=OI9XPdpw87nzxdk2E5pPBnAaQPBKfXtJPtn0N/Ni/SZ/wdOnA4yxqfHcwc9tnw0QQI qMUE+QdvQEyCmWPGjgdOD7LYXS3mr6Ts2pMCYKDCQopF07XAttVEqOz8BMOaiR57XdaX yz8C3HKj7bZyBAM3YaKUkhviJjw1HE7ZUbRYaAh8mB/5usl9ZRVkZw7WOByOLsuaVZAs LBUfsbKSn/7VepN5xyFE+dOnhjFGNgdBHjFdpr3bRfCb15yobuE9U+nKJn2eJWqbxqcO MKRZto5SwFGRI56/cI5WU1zjP27NnP5j4oaTKhD0wvct+zAUGpy4Ifs7ad3t8ffT/9rb 4XOw== X-Gm-Message-State: AOAM530yx5bRq3DBVu4FUdj+KmL3915wxsX95HpUUJuqsOO9gjNnBb46 HfRzsf4RzF0soYKr7vMsh52Fjg== X-Google-Smtp-Source: ABdhPJypP6s1gXlUPhMDocHB9SQxBp0BjH6HbcJ+pXyenGzhY3GhIzXThiOqSuL4lSaFC1CWGQD7Dg== X-Received: by 2002:ad4:4dc5:: with SMTP id cw5mr145382qvb.62.1629149390739; Mon, 16 Aug 2021 14:29:50 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-052e-d62b-d66a-f817.res6.spectrum.com. [2603:6081:7b01:cbda:52e:d62b:d66a:f817]) by smtp.gmail.com with ESMTPSA id x9sm51815qko.125.2021.08.16.14.29.49 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 16 Aug 2021 14:29:49 -0700 (PDT) Date: Mon, 16 Aug 2021 17:29:47 -0400 From: Tom Rini To: Paul Liu Cc: Fabio Estevam , Fabio Estevam , Stefano Babic , Kirill Kapranov , Uri Mashiach , Valentin Raevsky , U-Boot-Denx Subject: Re: [PATCH 1/2] imx8mm-cl-iot-gate: Do not build fip.bin by default Message-ID: <20210816212947.GF858@bill-the-cat> References: <20210813005901.16839-1-festevam@denx.de> <04480f602808792b607089e5c2868ec9@denx.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="PtXxvafiK05cffxj" Content-Disposition: inline In-Reply-To: X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.9.4 (2018-02-28) 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 --PtXxvafiK05cffxj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Aug 16, 2021 at 06:09:34PM -0300, Fabio Estevam wrote: > Hi Paul, >=20 > On Sun, Aug 15, 2021 at 4:27 PM Paul Liu wrote: >=20 > > No. I think they actually use fip.bin but just not upstreamed yet. Plea= se > > see the "Firmware version" in the list. For Compulab we are using mainl= ine > > U-boot. But for imx8mm-evk it is NXP released firmware. > > > > And yes we do use mainline ATF and mainline OPTEE. I'll explain how to > > build all of them. > > > > # OPTEE > > > > 1. export ARCH=3Darm > > 2. export CROSS_COMPILE=3Darm-linux-gnueabihf- > > 3. export CROSS_COMPILE64=3Daarch64-linux-gnu- > > 4. make PLATFORM=3Dimx PLATFORM_FLAVOR=3Dmx8mm_cl_iot_gate O=3Dbuild.mx= 8mmevk \ > > CFG_TEE_CORE_LOG_LEVEL=3D2 \ > > CFG_TEE_TA_LOG_LEVEL=3D2 \ > > CFG_TEE_CORE_DEBUG=3Dy \ > > CFG_EXTERNAL_DTB_OVERLAY=3Dy \ > > CFG_DT=3Dy \ > > CFG_DT_ADDR=3D0x52000000 \ > > CFG_DEBUG_INFO=3Dy > > > > > > And we got tee-header_v2.bin tee-pager_v2.bin and tee-pageable_v2.bin. > > These files will be used in the TF-A stage. > > > > Then we start building U-boot (BL31). > > > > # U-boot (BL31) > > > > 1. export ARCH=3Darm64 This is actively wrong and breaks building U-Boot in some cases. You do not ever need to set ARCH in the environment, and setting it to the wrong one (it would be arm, not arm64) causes invalid symlinks to be made in some cases. I see that, sigh, this mistake has made it in to the docs twice, again. --=20 Tom --PtXxvafiK05cffxj Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmEa2MQACgkQFHw5/5Y0 tyz//Qv+Nl6vA5wYJmw1d5lhhxzB5HIX/rtI6mWoXzOSKK5rJUSMpMHL0o8Qqbdk EA71MNU1h+hU84NdVWryDgAqY1dev1zkusM+PBg2ocCDf+FQcdUgcjj67+d8UrQt 340t4229SOqk0Lit1Q6D1x9IwtHbMednzc3aXmH4OsPXEndAXcSGrnUs0ksGv++2 7NUKMxd8cyaEbUg16wDGL57bneSUPmeztO6GytbG8SW8dUyC8Npv8foMeOkr7Z03 /lFzjtRUYBgN4CBD7UXmI/IoSmYHt813Pv+f2RR+3aAvgdwsdX4HpA1xveoUhFe0 CONP5MolZVESJHL5gqu4AAl0TN02f0ocvcgvXPhZmy2DphGcAYAZDiX5x2bPR3iD d+n46/vFBdQiN5ADL5KbTQDo4POrqQedbj3Xktq4mJ0pLFv+2HVOTydR9AS/1/Ee u753Z0sVs5R0wE7GAsEBLfMZk6LHxDVKnF+/CnpUNotOt4YLiDRo9eT7YeYZaZvm i2d1NhBG =AKhC -----END PGP SIGNATURE----- --PtXxvafiK05cffxj--