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 DF950C4338F for ; Wed, 18 Aug 2021 12:19:49 +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 71BC96103A for ; Wed, 18 Aug 2021 12:19:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 71BC96103A 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 2D4B482C88; Wed, 18 Aug 2021 14:19:46 +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=1629289186; bh=OzyOlQPZUa4LRyAlwUXzQoKMGAs+n68Ffa0/5kzU/Ck=; h=From:To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=qcpt3CJdeApqWYSv4lZ98BBfPgOPrAUH+OhazaPyJ8T9aIZoZWjKImzItJWbHMDIP ytBrngs2JXdv32RfIqWKhvRUq/a+ohMnJ2Fm+77OvDI4FKlBVZiQVeEf6N3yNDdp6Q e8eXd7v/cLYg3mrSGcqrqRd6DUDshuVVtrJuqQ8QXmBSEvt0MEHeC70jAEA2u6I5I3 IOKmur7lfpXbCtOmuYEM7hIaD8BgVOYQXjkZqIU2SiNGIIvQnE0/DBjXa8wi8NP4ap zaaF+CrGkrXpbFJKPRlT8QXCvZF+/0CrTYKra0KVIZp7vexeZvxkQ+E2S/NXJw1h4s q4CUNjWSa439A== Received: from localhost.localdomain (unknown [IPv6:2804:14c:485:504a:609d:5443:34fc:77bc]) (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 8F728807F3; Wed, 18 Aug 2021 14:19:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1629289184; bh=OzyOlQPZUa4LRyAlwUXzQoKMGAs+n68Ffa0/5kzU/Ck=; h=From:To:Cc:Subject:Date:From; b=S9SZkmTzseNshffsk4eV9nm6rYIvxtkmNoI1iHMBWw+bpVl4OvTpgavM0AWcccNEJ UbzcnR0ta0lwF159Gk1+fSKDnz+jxA3x256d24uYr5uX1+wMFmZOrDN/RoFv3eWXPp sG66X7SmXoOrcyXxddWEgqpVtJtvfDNgPtBk9eAKJd4nO8l3yBGwmEvN74BWKrjB8R 8uNgaCwH3S8FdlPQVT606NL1vlmcETiOMjsHUNV8FTE6IezxEFBZTjdqS9vY+5+aQw y3g+SF6W4ZDOJ9kHyBDJG3sDyplu9JaNXbsrVsS3Puj2GWow34hwE1IVOmxZ8Gt847 qQcSpa0nFACNQ== 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, marcel.ziswiler@toradex.com, Fabio Estevam Subject: [PATCH] imx8mm-evk: Generate a single bootable flash.bin again Date: Wed, 18 Aug 2021 09:19:23 -0300 Message-Id: <20210818121923.1449177-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 conversion 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 binary because the extra u-boot.itb is now required. Generate a final flash.bin that can be used again as a single bootable binary to keep the original behavior. After this change the SPL binary is called spl.bin, which is a more descriptive name for its purpose, and can still be used standalone (for example, for secure boot purposes). Signed-off-by: Fabio Estevam --- arch/arm/dts/imx8mm-evk-u-boot.dtsi | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/imx8mm-evk-u-boot.dtsi b/arch/arm/dts/imx8mm-evk-u-boot.dtsi index f200afac9f..453fe1d259 100644 --- a/arch/arm/dts/imx8mm-evk-u-boot.dtsi +++ b/arch/arm/dts/imx8mm-evk-u-boot.dtsi @@ -150,7 +150,7 @@ }; - flash { + spl { mkimage { args = "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x7e1000"; @@ -217,4 +217,19 @@ }; }; }; + + imx-boot { + filename = "flash.bin"; + pad-byte = <0x00>; + + spl: blob-ext@1 { + offset = <0x0>; + filename = "spl.bin"; + }; + + uboot: blob-ext@2 { + offset = <0x57c00>; + filename = "u-boot.itb"; + }; + }; }; -- 2.25.1