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=-3.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS 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 93088C11F67 for ; Thu, 1 Jul 2021 21:46:05 +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 DF14761410 for ; Thu, 1 Jul 2021 21:46:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DF14761410 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9AC0D82C37; Thu, 1 Jul 2021 23:45:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.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=linaro.org header.i=@linaro.org header.b="OVueHg4j"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C707582C29; Thu, 1 Jul 2021 23:38:17 +0200 (CEST) Received: from mail-yb1-xb30.google.com (mail-yb1-xb30.google.com [IPv6:2607:f8b0:4864:20::b30]) (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 F090482C1D for ; Thu, 1 Jul 2021 23:38:14 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=paul.liu@linaro.org Received: by mail-yb1-xb30.google.com with SMTP id m9so13165430ybp.8 for ; Thu, 01 Jul 2021 14:38:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9xL92JZGkjR/KCE9vN7lPz+3irQ7TNfmnJ2Bm+tcAWQ=; b=OVueHg4jLO4cZD2TlLU3No2LimQwGCqDiks3wlDMCuDEGmG2fKL9c5X/GA53WYoLtQ 1utSOioCsf9I8bEgTaRjWrADwiJKsi+wESqcuyXlgwPQ7VlLc1zhyccNqep1oCYnoXgu COY6emnWGt2uJv+72u+j1haC+9/vaZwAmqJHaGZNtBldVp251/mPi5imkgs7GvKSyEWs bkU/DpCYKBLnDziujq5tdTP+yz9SG4TVWs8YbzRR1osYTM18jF+Jx7pTESoR9QDMQL2O LPQZgv4A4uNzNDCNDcb//ys/bCQeUM0kH+MFpScgCccKcoXeiegaRn+1HyCbyDJI6kHQ HWlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9xL92JZGkjR/KCE9vN7lPz+3irQ7TNfmnJ2Bm+tcAWQ=; b=ZLRwYPhoQecCQrh+FKhES1MoEvf/r83Fmp5GnX3MXZgBOifT7Gs8REnRgnPtPO+8i2 KtjWYuU+TkeWxwzfVJcRYehwB5yTHhhcN+OdywDvfUtqcAUxaac3U+5efCHj3P5V/cyV hlkTRIeJqJml4MAOLWQGxhZSoDXyIJvVULoHZQC3gcsCIxABNtDoMJEo01BSdBnCWapG ZzTdUheviWY9CvR7S84UJGrer5Dq7V7ZjoyCAqDXJMWc6/dsWLlzefQP+VW/oLXBpJ0E XQRY/4M8Kj7+7RyJUQCezPCd/11XofJkXwICmukY0X4t8EHSmZjFDPRxuDKYPSdmwVg+ EWpA== X-Gm-Message-State: AOAM532bsm7aziOUvWkaUw7jPlK9HuW0j2lewivw3ofEoQQbVIAjR5/e ZGAx/VaRsR5UezpujoO4HUI0b7ABCGOL7CVUL836Hg== X-Google-Smtp-Source: ABdhPJxE0qwCwOn6aB8YYIzYh0Z4KlMq4pheZBHkigAiLzX+VimF88ibDeytlZoyazaRbOBbtrC9BaTfVE27zT5gEY0= X-Received: by 2002:a25:b9c6:: with SMTP id y6mr2212915ybj.19.1625175488791; Thu, 01 Jul 2021 14:38:08 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Paul Liu Date: Fri, 2 Jul 2021 05:37:58 +0800 Message-ID: Subject: Re: Building U-Boot for Compulab's imx8mm-cl-iot-gate board To: Fabio Estevam Cc: U-Boot-Denx , Kirill Kapranov , Uri Mashiach , Valentin Raevsky X-Mailman-Approved-At: Thu, 01 Jul 2021 23:45:42 +0200 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 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 Hi Fabio, We have dfu_alt_info set. So that we can capsule update from UEFI. First, "setenv -e -nv -bs -rt -v OsIndications =0x04" And then we can "efidebug capsule update -v ${loadaddr}". To make the capsule binary, we need to create a capsule1.itb with the following content: /dts-v1/; / { description = "Automatic U-Boot environment update"; #address-cells = <2>; images { flash-bin { description = "U-Boot binary on SPI Flash"; data = /incbin/("flash.bin"); compression = "none"; type = "firmware"; arch = "arm64"; load = <0>; hash-1 { algo = "sha1"; }; }; u-boot-itb { description = "U-Boot binary"; data = /incbin/("u-boot.itb"); compression = "none"; type = "firmware"; arch = "arm64"; load = <0>; hash-1 { algo = "sha1"; }; }; }; }; And then "./tools/mkimage -f capsule1.its capsule1.itb" "./tools/mkeficapsule --fit capsule1.itb --index 1 capsule1.bin" And we can tftp the capsule1.bin to ${loadaddr} and then use the capsule update. Yours, Paul On Fri, 2 Jul 2021 at 00:39, Fabio Estevam wrote: > Hi Paul, > > On Thu, Jul 1, 2021 at 12:45 PM Paul Liu wrote: > > > Hi Fabio, > > > > Yes. It is able to not provide the fip,bin. > > If you use bl31.bin as bl31.bin then fip.bin can be empty. > > If you use bl2.bin as bl31.bin then you have to have the fip. > > > > This depends on how TF-A are being built. > > If you build TF-A without NEED_BL2=yes. Then you don't need the fip.bin. > > If you build TF-A with NEED_BL2=yes. Then FIP is needed. And you have to > use bl2.bin generated by TF-A and rename it to bl31.bin. I think maybe I > can fix the README. If you can do that then that's perfect because my > English is always not very good. So that means I sometimes need more review > on my English sentences. > > Thanks for the clarification. > > I can work on creating a README file for this board after I manage to boot > it. > > What is the process of flashing the flash.bin and u-boot.itb binaries > to the eMMC? > > Do you use the uuu tool? If so, what is the uuu_script script that you > use? > > Thanks, > > Fabio Estevam >