From patchwork Wed Aug 25 15:25:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Teresa Remmet X-Patchwork-Id: 1520832 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=phytec.de header.i=@phytec.de header.a=rsa-sha256 header.s=a4 header.b=VTS9KDoY; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GvqY812mfz9sRf for ; Thu, 26 Aug 2021 01:25:16 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6D87982C30; Wed, 25 Aug 2021 17:25:12 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=phytec.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=phytec.de header.i=@phytec.de header.b="VTS9KDoY"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BCFCF82EA1; Wed, 25 Aug 2021 17:25:08 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mickerik.phytec.de (mickerik.phytec.de [195.145.39.210]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1E72C82DB6 for ; Wed, 25 Aug 2021 17:25:04 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=phytec.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=t.remmet@phytec.de DKIM-Signature: v=1; a=rsa-sha256; d=phytec.de; s=a4; c=relaxed/simple; q=dns/txt; i=@phytec.de; t=1629905103; x=1632497103; h=From:Sender:Reply-To:Subject:Date:Message-Id:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=AZo1/RH9Ld1gNTdb6kEuZw9zbgVfEwmSyhfIznR4Sns=; b=VTS9KDoYaskAIckw3n0GnlPCN+r3TnxyNPRvI3MSgQP6G4Kx8Pd2RD3Y76teJoZt vFfxAcDy7ZkKUrW+h0cJe0lGQB02Ar/3r4M5W1Rl89e1fu3Oe2l6ocmFRQQLlEN+ nGDChJ6tBBVHwCDe1ieXw/EBraUO/Tbpq/4Uhy2PXXo=; X-AuditID: c39127d2-777be70000001c5c-61-612660cf55b5 Received: from idefix.phytec.de (Unknown_Domain [172.16.0.10]) by mickerik.phytec.de (PHYTEC Mail Gateway) with SMTP id EF.C3.07260.FC066216; Wed, 25 Aug 2021 17:25:03 +0200 (CEST) Received: from augenblix2.phytec.de ([172.16.0.56]) by idefix.phytec.de (IBM Domino Release 9.0.1FP7) with ESMTP id 2021082517250361-1459747 ; Wed, 25 Aug 2021 17:25:03 +0200 From: Teresa Remmet To: u-boot@lists.denx.de Cc: Stefano Babic , Fabio Estevam , "NXP i . MX U-Boot Team" , Peng Fan , Andrey Zhizhikin , Peter Bergin , Baruch Siach , Heiko Schocher Subject: [PATCH] arm: dts: imx8mp: Generate single bootable binary Date: Wed, 25 Aug 2021 17:25:03 +0200 Message-Id: <20210825152503.1069374-1-t.remmet@phytec.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 25.08.2021 17:25:03, Serialize by Router on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 25.08.2021 17:25:03 X-TNEFEvaluated: 1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrFLMWRmVeSWpSXmKPExsWyRoCBS/d8glqiwZODZhbPnr9jtVhx7Q2L xcOr/hY77txntvix6gurxeH9j1gs2k/5WLzd28luMeXxenYHTo/3b06yeMybdYLFY+esu+we Dw+9YPM4e2cHo8fGdzuYPOY23GIKYI/isklJzcksSy3St0vgyujpP89a8Eqk4tPdZewNjLMF uxg5OSQETCTOTtrIDGILCWxjlPjy3q2LkQvIvsAose36FbAEm4CGxNMVp5lAbBEBCYlf/VcZ QYqYBTYySfz7OQesSFjASWLllR9gRSwCqhJLfp0Es3kFLCWm7l7GArFNXmLmpe/sEHFBiZMz n0DFrzBKPNvpAWELSZxefBZsJrOAtsSyha+ZJzDyzULSMgtJagEj0ypGodzM5OzUosxsvYKM ypLUZL2U1E2MwPA9PFH90g7GvjkehxiZOBgPMUpwMCuJ8P5lUk4U4k1JrKxKLcqPLyrNSS0+ xCjNwaIkznu/hylRSCA9sSQ1OzW1ILUIJsvEwSnVwChj4Ky7XNvvpcZHkfWeb3Q2Xn1xjvHy 5/0+LzifMOWcu/ap5H/hhDXpBwuES+//ru14E66xm6124vKlPDWxxXvP/TXe3eq/+Etch+hG Loc0aZfWNYJflyV96Mp7r3wmw0ZAtfXX9v6YVWtiS6s3NM6KueDK+G2GmuUOrdWfm6qP2kUx 3lqz6aISS3FGoqEWc1FxIgCRHcrsTQIAAA== 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 binman conversion made flashing flash.bin and u-boot.itb necessary. Update binman config to create a single flash.bin image again. This updates imx8mp_evk and phyCORE-i.MX8MP as they share the same binman config. Updated also imx8mp_evk documentation. Tested on phyCORE-i.MX8MP. Signed-off-by: Teresa Remmet Reviewed-by: Fabio Estevam Reviewed-by: Heiko Schocher --- arch/arm/dts/imx8mp-u-boot.dtsi | 17 ++++++++++++++++- .../imx8mp_evk/imximage-8mp-lpddr4.cfg | 2 +- board/phytec/phycore_imx8mp/imximage-8mp-sd.cfg | 2 +- doc/board/nxp/imx8mp_evk.rst | 1 - 4 files changed, 18 insertions(+), 4 deletions(-) diff --git a/arch/arm/dts/imx8mp-u-boot.dtsi b/arch/arm/dts/imx8mp-u-boot.dtsi index a6ede2ed6e30..ace7b2051e7f 100644 --- a/arch/arm/dts/imx8mp-u-boot.dtsi +++ b/arch/arm/dts/imx8mp-u-boot.dtsi @@ -82,7 +82,7 @@ }; }; - flash { + spl { mkimage { args = "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x920000"; @@ -149,4 +149,19 @@ }; }; }; + + imx-boot { + filename = "flash.bin"; + pad-byte = <0x00>; + + spl: blob-ext@1 { + filename = "spl.bin"; + offset = <0x0>; + }; + + uboot: blob-ext@2 { + filename = "u-boot.itb"; + offset = <0x58000>; + }; + }; }; diff --git a/board/freescale/imx8mp_evk/imximage-8mp-lpddr4.cfg b/board/freescale/imx8mp_evk/imximage-8mp-lpddr4.cfg index b2920b4908ed..2be18de674ba 100644 --- a/board/freescale/imx8mp_evk/imximage-8mp-lpddr4.cfg +++ b/board/freescale/imx8mp_evk/imximage-8mp-lpddr4.cfg @@ -7,4 +7,4 @@ ROM_VERSION v2 BOOT_FROM sd -LOADER mkimage.flash.mkimage 0x920000 +LOADER mkimage.spl.mkimage 0x920000 diff --git a/board/phytec/phycore_imx8mp/imximage-8mp-sd.cfg b/board/phytec/phycore_imx8mp/imximage-8mp-sd.cfg index b2920b4908ed..2be18de674ba 100644 --- a/board/phytec/phycore_imx8mp/imximage-8mp-sd.cfg +++ b/board/phytec/phycore_imx8mp/imximage-8mp-sd.cfg @@ -7,4 +7,4 @@ ROM_VERSION v2 BOOT_FROM sd -LOADER mkimage.flash.mkimage 0x920000 +LOADER mkimage.spl.mkimage 0x920000 diff --git a/doc/board/nxp/imx8mp_evk.rst b/doc/board/nxp/imx8mp_evk.rst index 609a29f3ebc3..b996ae055e69 100644 --- a/doc/board/nxp/imx8mp_evk.rst +++ b/doc/board/nxp/imx8mp_evk.rst @@ -52,7 +52,6 @@ Burn the flash.bin to the MicroSD card at offset 32KB: .. code-block:: bash $sudo dd if=build/flash.bin of=/dev/sd[x] bs=1K seek=32 conv=notrunc; sync - $sudo dd if=build/u-boot.itb of=/dev/sd[x] bs=1K seek=384 conv=notrunc; sync Boot ----