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 798C8C4338F for ; Wed, 18 Aug 2021 17:46:27 +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 964AC6104F for ; Wed, 18 Aug 2021 17:46:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 964AC6104F 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 EE84F807F3; Wed, 18 Aug 2021 19:46:23 +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=1629308784; bh=D+QpynUb3ZPINRPkUoYpZqMEWqqTu8jHI950j0oOVa4=; h=From:To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=LAgYypyBGPB71ti7X9pii7Pm4/YAdL7Tiyyot9A5oCJx4QsxWd6EIrY9bKyAVST+Z CBi7ZeQB7mRQlUllOUkGUWoeLwK8owHS657NbvRUYG2Q2wMUbtZkfww4868TwIiASD A3/mP790M2uVwvE1a8cRR3p4iuu4bYBn/uiZNIUG7LB9GYM3snBesBcRFVjghAInlz 7CObqUz4XcLUuZoxHk4Ex5MnTidMnTKrwLjJ5EYFo4R27rU3ofdxz+k+yIBzv75A83 3HOaZdtq+AkqLfRErV63h8g603EEsi5ZTUA7/v5PkDcGrZpIUmWcoBxvh8wGfwzncd JOr+WJddwGzBg== 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 64947807F3; Wed, 18 Aug 2021 19:46:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1629308782; bh=D+QpynUb3ZPINRPkUoYpZqMEWqqTu8jHI950j0oOVa4=; h=From:To:Cc:Subject:Date:From; b=RB5ZKD8Y43EOGYrtfefNVsx4pqxKpplQgvJ5rmUXBIQg/lQpjFHJoEcYWFKR/J260 7Idvc5LBWw5RU88Nf5UCmT/bH1qlE7GfUN+UOZOTgpTFWjYUMHzXrImGYmpdZfCOUM n+deowBBix3BhESS5ct8hs/oTP+ICeGzza861R9pAnPOEhxgyD7FiALt+TIgo+Y7mS sbamKw5chFrYf+lLsifupc9rWb8Lb/2KOofEmskZ+C/fLbh2r11cLFi7HWK4oRAM/q xS5xUkuYE4rjDugl82C+sjuYi7wyUaBHUeAe0jNMUhEt3auTo+dNH6fkU/8e1bYS8+ vcLzWUXkt/cnA== 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 v2] imx8mm-evk: Generate a single bootable flash.bin again Date: Wed, 18 Aug 2021 14:46:04 -0300 Message-Id: <20210818174604.1713085-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). Also update imx8mm_evk.rst to remove the u-boot.itb copy step. Signed-off-by: Fabio Estevam Reviewed-by: Frieder Schrempf Reviewed-by: Heiko Schocher --- Changes since v1: - Update the readme (Tim) arch/arm/dts/imx8mm-evk-u-boot.dtsi | 17 ++++++++++++++++- doc/board/freescale/imx8mm_evk.rst | 1 - 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/imx8mm-evk-u-boot.dtsi b/arch/arm/dts/imx8mm-evk-u-boot.dtsi index f200afac9f..75cd59e545 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"; + }; + }; }; diff --git a/doc/board/freescale/imx8mm_evk.rst b/doc/board/freescale/imx8mm_evk.rst index 7fd3d72564..b377c4de27 100644 --- a/doc/board/freescale/imx8mm_evk.rst +++ b/doc/board/freescale/imx8mm_evk.rst @@ -50,7 +50,6 @@ Burn the flash.bin to MicroSD card offset 33KB: .. code-block:: bash $sudo dd if=flash.bin of=/dev/sd[x] bs=1024 seek=33 conv=notrunc - $sudo dd if=u-boot.itb of=/dev/sdc bs=1024 seek=384 conv=sync Boot ---- -- 2.25.1