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,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 42BFEC4338F for ; Mon, 23 Aug 2021 12:57:09 +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 4932C613BD for ; Mon, 23 Aug 2021 12:57:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4932C613BD 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 2115D81BCA; Mon, 23 Aug 2021 14:57:06 +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=1629723426; bh=zbrCySrJxJisKoNwWMwXylBZjGSDfhvmQAef4UNxH8E=; h=From:To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=TpreFWVeKqTKf7OVv+ORJRyIrIWQ0dns4d7MCXtyKWo3NR5jotYOPsUvHFg/+acqn aO8s5t1Uu7P/IllYt5VHpHsFstFWIKXO6iCdOcaw3ucqjqq+4AYcid0ROBPL7jKJdC GY9E34K4I7223yY/THj3O7ZKY8FIhnJJkx25fAMkC+n3JUlRDjqPo6CV/9EW3fkqv9 X3D+53nv9RHSfnxEBySsy2GjeHZzapW97tVeiD+S2MN3tGIPtfYrVJ3fQ1AXp1jPqR 8yN0xtumZLSENB3D24sKSz9nlGe5G+KaAlAd9QbjdG9ROCw//MjuxeU3VSkm3FoXzL EXhS0uP2wQ5Ug== Received: from localhost.localdomain (unknown [IPv6:2804:14c:485:504a:f281:f900:ccc8:936d]) (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 9A3F38032E; Mon, 23 Aug 2021 14:57:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1629723423; bh=zbrCySrJxJisKoNwWMwXylBZjGSDfhvmQAef4UNxH8E=; h=From:To:Cc:Subject:Date:From; b=poptY3PRxPgkGSdHCq7lTXwD0zdfXyfpTiu9k6b7wosdjsx1h0qmJtFg8IYDufQw5 QMZPZEDwJ6rNE7P6gcG1M1A18JT8DMSNrax6qTsJWys9u4MQNx7+32bqGYVhRrNwLM XnlKR+a1m/yfui9D80zomvo96CVWddBhCDEKmwhtOop5nOOlquX82Kq4VyawU0P/6e vwJtiysT4gU1gshteDr7GPD1vdx4tlL+elBxDJEEPqP1nV1EBJTUuGflbiECsWhYxr 5H1/HzTQrsGSwCAfaIp/RGFr69o3Z/372G3WzyEFRkmcdxvtA06hoKJO2fQJKc6col CGoVaSTtWqZBg== 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 v5] imx8mm-evk: Generate a single bootable flash.bin again Date: Mon, 23 Aug 2021 09:56:42 -0300 Message-Id: <20210823125642.2653746-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 Reviewed-by: Marcel Ziswiler --- Changes since v4: - Pass filename = "spl.bin"; to the spl node. (Heiko/Marcel) arch/arm/dts/imx8mm-evk-u-boot.dtsi | 19 ++++++++++++++++++- .../imx8mm_evk/imximage-8mm-lpddr4.cfg | 2 +- doc/board/freescale/imx8mm_evk.rst | 1 - 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/arch/arm/dts/imx8mm-evk-u-boot.dtsi b/arch/arm/dts/imx8mm-evk-u-boot.dtsi index f200afac9f..3c75415e8f 100644 --- a/arch/arm/dts/imx8mm-evk-u-boot.dtsi +++ b/arch/arm/dts/imx8mm-evk-u-boot.dtsi @@ -150,7 +150,9 @@ }; - flash { + spl { + filename = "spl.bin"; + mkimage { args = "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x7e1000"; @@ -217,4 +219,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/board/freescale/imx8mm_evk/imximage-8mm-lpddr4.cfg b/board/freescale/imx8mm_evk/imximage-8mm-lpddr4.cfg index b89092a559..90573be5fd 100644 --- a/board/freescale/imx8mm_evk/imximage-8mm-lpddr4.cfg +++ b/board/freescale/imx8mm_evk/imximage-8mm-lpddr4.cfg @@ -6,4 +6,4 @@ #define __ASSEMBLY__ BOOT_FROM sd -LOADER mkimage.flash.mkimage 0x7E1000 +LOADER u-boot-spl-ddr.bin 0x7E1000 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