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=-2.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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 E9787C4338F for ; Tue, 10 Aug 2021 23:13:11 +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 C04B660EE9 for ; Tue, 10 Aug 2021 23:13:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org C04B660EE9 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 19B5782BDC; Wed, 11 Aug 2021 01:13:08 +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="CF2W41zI"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CA16F82C04; Wed, 11 Aug 2021 01:13:06 +0200 (CEST) Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) (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 75B2F82BDC for ; Wed, 11 Aug 2021 01:13:02 +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=festevam@gmail.com Received: by mail-lf1-x12e.google.com with SMTP id y34so1338309lfa.8 for ; Tue, 10 Aug 2021 16:13:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/L7dBwIco1MdoLcvvAyxNzQSPjKEmQR6HRW5PfSsmTc=; b=CF2W41zINFMs4+j5YPtdZVv7kJK3UmvvNJ0sLGm8PZTZq+JTcCrOps42Nf4umGASFP O+w1xogX1xfig+drfxE87T23/LOgfPy0b2wk2BfN6qtWFGqRlc2J54spFGQg19gf/NwF DvGNpFJtURxTOL2qnW4ocAGDV2cIHIJnRtccYLbLoHEp3+H45AIzgV94HDRC7e34h172 pgk0Ee4NXHnURYwgrsFwg9q/KGT4gd/FvgY86rhqDYJDBVqR1Zn3nHY+VwkWWwrx5/6a P8Y6qh/rS4JRIgBrCHB6YeArNxzD9bcGAIgalCBD2Mx11JjjKUqv7ejNkfofsmkIm8kM XsRA== 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=/L7dBwIco1MdoLcvvAyxNzQSPjKEmQR6HRW5PfSsmTc=; b=odFbYCtkQkTbAG0ROYijdsnUqTqKfsDumGFlEAaO9SEVO1sgdwpu0B622MY68qXKCu kjajND4aY2RmFhqUxwDl5N3y++Cw60MaOO7lhm6pONhYbaBpNnNVnL2yYPWUkeu5TrrH McYpiHYnCKUk4DIiFofmvhntBGzNnILtmEBQJFMHl0BxUi37AltfCWhogaf0FnvsjIrv hZxztA3V1DULr4u5m14i6/bDnQkPLJqq8yaiArqChjgk3k2XSgvCjymmhbXQoHxdv/Sz q3htpbkRBesvIQ2CeD5fZLEXv6Irt6bZpCWHlVvMZTiMHycuGFuQSAkOxdqwUXfvaKtY dPrw== X-Gm-Message-State: AOAM5316+C3BmX63VJq+GFIPlwnsqkQIf6KiyQUm3KqEmHD+q4ivoNyE iRDuuwhaYFPQQmrUeOUL2vBqer2ZBzXIwjukIFk= X-Google-Smtp-Source: ABdhPJw8btaNgyPkGWFg9570w/w+YgsxIO+cmpc5zfhxTIOMOdrVfK9L5KA76RPDsNu6oMnG7Ho2COdK8PBymGi9au8= X-Received: by 2002:a05:6512:3b89:: with SMTP id g9mr12706191lfv.583.1628637181599; Tue, 10 Aug 2021 16:13:01 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Fabio Estevam Date: Tue, 10 Aug 2021 20:12:49 -0300 Message-ID: Subject: Re: Building U-Boot for Compulab's imx8mm-cl-iot-gate board To: Paul Liu Cc: U-Boot-Denx , Kirill Kapranov , Uri Mashiach , Valentin Raevsky , Harald Seiler Content-Type: text/plain; charset="UTF-8" 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 Paul, Thanks for your response. On Thu, Jul 1, 2021 at 6:38 PM Paul Liu wrote: > > 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. In my case, I have the original U-Boot 2020.04 version from Compulab on the IoT Gateway board. Would it be possible to run a patch like this https://pastebin.com/raw/Rq1Yv6ka And then just load flash.bin via TFTP and flash it to offset 33K of the eMMC? Would that work? Thanks, Fabio Estevam