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=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,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 1FE2CC432BE for ; Thu, 26 Aug 2021 08:54:23 +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 023786108F for ; Thu, 26 Aug 2021 08:54:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 023786108F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=phytec.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 A07D082C90; Thu, 26 Aug 2021 10:54:18 +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="aivJSEbM"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2659C82C90; Thu, 26 Aug 2021 10:54:16 +0200 (CEST) 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 58B8D82952 for ; Thu, 26 Aug 2021 10:54:10 +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=1629968050; x=1632560050; 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=T+ARir+M6B9W7yEcSPS9ysABg+df7bY1i5YinvqL7vk=; b=aivJSEbMAkgeXOBETZUqScE546TGSPifNrNE/7w/TnWYn4w2e+m1OH72uJRq3oK2 j7EDCEFLN6davufF2+HUthIcTG70iobn1CV61fpLHaSo3uUEn6vtKhGpKk5EuTzz j+iwSVLKuYuq6rLxGXAj+yqN/kUg1TTEhItpz9c6470=; X-AuditID: c39127d2-783bf70000001c5c-6d-612756b24287 Received: from idefix.phytec.de (Unknown_Domain [172.16.0.10]) by mickerik.phytec.de (PHYTEC Mail Gateway) with SMTP id 03.CB.07260.2B657216; Thu, 26 Aug 2021 10:54:10 +0200 (CEST) Received: from augenblix2.phytec.de ([172.16.0.56]) by idefix.phytec.de (IBM Domino Release 9.0.1FP7) with ESMTP id 2021082610540981-1469973 ; Thu, 26 Aug 2021 10:54:09 +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 v2] arm: dts: imx8mp: Generate single bootable binary Date: Thu, 26 Aug 2021 10:54:09 +0200 Message-Id: <20210826085409.3785254-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 26.08.2021 10:54:10, Serialize by Router on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 26.08.2021 10:54:10 X-TNEFEvaluated: 1 Content-Transfer-Encoding: quoted-printable X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrNLMWRmVeSWpSXmKPExsWyRoCBS3dTmHqiwcqtHBbPnr9jtVhx7Q2L xcOr/hY77txntvix6gurxeH9j1gs2k/5WLzd28luMeXxenYHTo/3b06yeMybdYLFY+esu+we Dw+9YPM4e2cHo8fGdzuYPOY23GIKYI/isklJzcksSy3St0vgymj4c42pYI9Yxbu175gbGM8I dTFyckgImEi0bLnE1sXIxSEksI1R4v6bBSwQzgVGiY2rP7OAVLEJaEg8XXGaCcQWEZCQ+NV/ lRGkiFlgI5PEv59zmLsYOTiEBVwl9reBTWURUJV4+2UvG4jNK2Ap8eL/DEaIbfISMy99Z4eI C0qcnPkEbJmEwBVGiUk797JAFAlJnF58lhnEZhbQlli28DXzBEa+WUh6ZiFJLWBkWsUolJuZ nJ1alJmtV5BRWZKarJeSuokRGMCHJ6pf2sHYN8fjECMTB+MhRgkOZiUR3gXf1RKFeFMSK6tS i/Lji0pzUosPMUpzsCiJ897vYUoUEkhPLEnNTk0tSC2CyTJxcEo1MMo+zL4kK3qrZ1ZtzYS2 8k0v8/xf5lTEXDhdLMvwf2qyhJohF4Obz63aO6f3h7UbzTDbOGHb5j++ZgcOWQdsEC2p1Jo8 pSb2wJwbwa+jYq6XM+5gD9zn4ujk7PlfcsN6PxUBI5b5LtstJszXuhG62edVZUOX/Vp1lode gSzbLBhfhhb4qKh4KrEUZyQaajEXFScCANSgZOhOAgAA 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=5Fevk and phyCORE-i.MX8MP as they share the same binman config. Updated also imx8mp=5Fevk documentation. Tested on phyCORE-i.MX8MP. Signed-off-by: Teresa Remmet Reviewed-by: Fabio Estevam Reviewed-by: Heiko Schocher --- Changes in v2: - Added filename to spl node - Use u-boot-spl-ddr.bin in the LOADER section arch/arm/dts/imx8mp-u-boot.dtsi | 19 ++++++++++++++++++- .../imx8mp=5Fevk/imximage-8mp-lpddr4.cfg | 2 +- .../phytec/phycore=5Fimx8mp/imximage-8mp-sd.cfg | 2 +- doc/board/nxp/imx8mp=5Fevk.rst | 1 - 4 files changed, 20 insertions(+), 4 deletions(-) diff --git a/arch/arm/dts/imx8mp-u-boot.dtsi b/arch/arm/dts/imx8mp-u-boot.d= tsi index a6ede2ed6e30..120c4c4dbb13 100644 --- a/arch/arm/dts/imx8mp-u-boot.dtsi +++ b/arch/arm/dts/imx8mp-u-boot.dtsi @@ -82,7 +82,9 @@ }; }; =20 - flash { + spl { + filename =3D "spl.bin"; + mkimage { args =3D "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x920000"; =20 @@ -149,4 +151,19 @@ }; }; }; + + imx-boot { + filename =3D "flash.bin"; + pad-byte =3D <0x00>; + + spl: blob-ext@1 { + filename =3D "spl.bin"; + offset =3D <0x0>; + }; + + uboot: blob-ext@2 { + filename =3D "u-boot.itb"; + offset =3D <0x58000>; + }; + }; }; diff --git a/board/freescale/imx8mp=5Fevk/imximage-8mp-lpddr4.cfg b/board/f= reescale/imx8mp=5Fevk/imximage-8mp-lpddr4.cfg index b2920b4908ed..4c3ecf5a71ad 100644 --- a/board/freescale/imx8mp=5Fevk/imximage-8mp-lpddr4.cfg +++ b/board/freescale/imx8mp=5Fevk/imximage-8mp-lpddr4.cfg @@ -7,4 +7,4 @@ =20 ROM=5FVERSION v2 BOOT=5FFROM sd -LOADER mkimage.flash.mkimage 0x920000 +LOADER u-boot-spl-ddr.bin 0x920000 diff --git a/board/phytec/phycore=5Fimx8mp/imximage-8mp-sd.cfg b/board/phyt= ec/phycore=5Fimx8mp/imximage-8mp-sd.cfg index b2920b4908ed..4c3ecf5a71ad 100644 --- a/board/phytec/phycore=5Fimx8mp/imximage-8mp-sd.cfg +++ b/board/phytec/phycore=5Fimx8mp/imximage-8mp-sd.cfg @@ -7,4 +7,4 @@ =20 ROM=5FVERSION v2 BOOT=5FFROM sd -LOADER mkimage.flash.mkimage 0x920000 +LOADER u-boot-spl-ddr.bin 0x920000 diff --git a/doc/board/nxp/imx8mp=5Fevk.rst b/doc/board/nxp/imx8mp=5Fevk.rst index 609a29f3ebc3..b996ae055e69 100644 --- a/doc/board/nxp/imx8mp=5Fevk.rst +++ b/doc/board/nxp/imx8mp=5Fevk.rst @@ -52,7 +52,6 @@ Burn the flash.bin to the MicroSD card at offset 32KB: .. code-block:: bash =20 $sudo dd if=3Dbuild/flash.bin of=3D/dev/sd[x] bs=3D1K seek=3D32 conv=3D= notrunc; sync - $sudo dd if=3Dbuild/u-boot.itb of=3D/dev/sd[x] bs=3D1K seek=3D384 conv= =3Dnotrunc; sync =20 Boot ---- --=20 2.25.1