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=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham 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 3B9A5C4338F for ; Mon, 16 Aug 2021 15:21:54 +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 3935060ED5 for ; Mon, 16 Aug 2021 15:21:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 3935060ED5 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de 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 3ADA1817D3; Mon, 16 Aug 2021 17:21:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1629127311; bh=7i4/2HtTrUUNzsF3P7CP9dz85AhoEOjFSMi5G1EGIp4=; h=From:To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=Yr+VZ11OETO6XRpSaUTLTBa7sGWw0gclpBjbsI6tENVc9hXQ5AJpUHgeih48z5E4Z n9VGI4STn7k5/YIPZ7o8fPjPF9MOyunuLTmS6u2nb4FlMs0sEmqzxdNbRHn0xkgQCo WsdzX9aOaB7QzW66rwHxDwkrGbah24ftaOmqhTL/BY+853botiM0rhqqFrjDyA3Csw J8Dy47Qyrw1u9jdPUnCth3poTyTKtFd1rOwMoM3Eo6u9t2/baUA/vUGr0qiTSEedzc WROqpbEFcvF02Y6htL1HMW6V/4wyY2ONGXDN8+h6vmPtlh3CZB6Xo1ebDGhQN260it jk5NPHUD8kG8A== Received: from localhost.localdomain (unknown [IPv6:2804:14c:485:504a:ba26:a401:39a9:4548]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: festevam@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 760E38081E; Mon, 16 Aug 2021 17:21:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1629127309; bh=7i4/2HtTrUUNzsF3P7CP9dz85AhoEOjFSMi5G1EGIp4=; h=From:To:Cc:Subject:Date:From; b=byu1nZK2tDDnLUqI015q0lXMXgzf00uVyedsOCN2LzMUJcXZf8xGDCCNv4JGabt5C PVYn7E544h9MX20XTtX/Y2nrSw1iW7d/1EUov0Daw6h5gRRmYoHwyWx+KAXmzmoEQ4 i4cCO37DGFU4Rf7kqtJ0mSzTNAB7djWWejTZqDxsHtWwr4TrEzVzON8Raeaq/ofuPI S9ow7+yPvw7gP+/R+Mhy9kyFd7kQBjG9bkh4u3AEAAFKol4Y7x9lp1FRp29XRauSso ub4IyiinOIV3Z97VYvNCC/zaAuEQTbPqCHX7Ht4UQJ1I9z3aSVqzstrGDyvcFW8uGI qQYComiEI7DyQ== From: Fabio Estevam To: sbabic@denx.de Cc: uboot-imx@nxp.com, u-boot@lists.denx.de, hs@denx.de, heiko.thiery@gmail.com, frieder.schrempf@kontron.de, tharvey@gateworks.com, Fabio Estevam Subject: [RFC] imx8mm-evk: Generate a bootable flash.bin again Date: Mon, 16 Aug 2021 12:21:32 -0300 Message-Id: <20210816152132.306399-1-festevam@denx.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 After the convesion to binman in commit 8996e6b7c6a1 ("imx8mm_evk: switch to use binman to pack images"), it is necessary to flash both flash.bin and u-boot.itb to get a bootable system. Prior to this commit, only flash.bin was needed. Such new requirement breaks existing distro mechanisms to generate the final image because the extra u-boot.itb is now required. Generate a final flash.bin image that can be used again as a single bootable image to keep the original behavior. Suggested-by: Heiko Schocher Signed-off-by: Fabio Estevam --- arch/arm/dts/imx8mm-evk-u-boot.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/dts/imx8mm-evk-u-boot.dtsi b/arch/arm/dts/imx8mm-evk-u-boot.dtsi index f200afac9f..ad3056c7c8 100644 --- a/arch/arm/dts/imx8mm-evk-u-boot.dtsi +++ b/arch/arm/dts/imx8mm-evk-u-boot.dtsi @@ -217,4 +217,19 @@ }; }; }; + + imx-boot { + filename = "flash.bin"; + pad-byte = <0x00>; + + spl: blob-ext@1 { + offset = <0x0>; + filename = "flash.bin"; + }; + + uboot: blob-ext@2 { + offset = <0x57c00>; + filename = "u-boot.itb"; + }; + }; }; -- 2.25.1