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 F03B0C11F68 for ; Fri, 2 Jul 2021 11:21:35 +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 4DF4F613F4 for ; Fri, 2 Jul 2021 11:21:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4DF4F613F4 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=phytec.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0353582A01; Fri, 2 Jul 2021 13:20:36 +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="mohFHWod"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8A78882ADF; Fri, 2 Jul 2021 13:20:24 +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 C7ED182985 for ; Fri, 2 Jul 2021 13:19:50 +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=1625224790; x=1627816790; 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=ICV1QtxrldRJ92ZyGTS/+UYRH740HntUzfu6nO6EHrY=; b=mohFHWodmYVGKu+FMbxZRvSxyObLGlIkNKuPLtZtF+CemHlOesaN9Ia24Uanmd25 opUzfpHdxwaoCrlAN7uum/nvBRR8n4XfoZhdh5LLPPB57wJcwWYc39oEjsGUtUNB YXuIiolAeFFJ8ns4mjTT3Y6x/jggipN88eXO+QseC7I=; X-AuditID: c39127d2-a9fbd70000001c5e-8f-60def6569b7a Received: from idefix.phytec.de (Unknown_Domain [172.16.0.10]) by mickerik.phytec.de (PHYTEC Mail Gateway) with SMTP id D7.B1.07262.656FED06; Fri, 2 Jul 2021 13:19:50 +0200 (CEST) Received: from augenblix3.phytec.de ([172.16.0.233]) by idefix.phytec.de (IBM Domino Release 9.0.1FP7) with ESMTP id 2021070213195031-1081549 ; Fri, 2 Jul 2021 13:19:50 +0200 From: Teresa Remmet To: u-boot@lists.denx.de Cc: Stefano Babic , Fabio Estevam , "NXP i . MX U-Boot Team" , Peng Fan , Jagan Teki , Heiko Schocher Subject: [PATCH v2 9/9] board: phytec: imx8mp-phycore: Switch to binman Date: Fri, 2 Jul 2021 11:19:48 +0000 Message-Id: <20210702111948.2197868-10-t.remmet@phytec.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210702111948.2197868-1-t.remmet@phytec.de> References: <20210702111948.2197868-1-t.remmet@phytec.de> MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 02.07.2021 13:19:50, Serialize by Router on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 02.07.2021 13:19:50 X-TNEFEvaluated: 1 Content-Transfer-Encoding: quoted-printable X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrPLMWRmVeSWpSXmKPExsWyRoCBSzfs270EgxlPNCweXvW32HHnPrPF l00T2Cx+rPrCatF+ysfi7d5Odospj9ezO7B7rP14n9Vj3qwTLB47Z91l9zh7Zwejx8Z3O5gC WKO4bFJSczLLUov07RK4MvZtdyj4rFqx7slGxgbGNXJdjJwcEgImEs1v3zJ3MXJxCAlsY5S4 OuEwE4RzgVHi/oUeJpAqNgENiacrToPZIgISEr/6rzKCFDELXGeUmLz+BFhCWMBd4tW5HnYQ m0VAReLG7i9gcV4BK4knPyexQKyTl5h56TtYDSdQvLN1JRuILSRgKfHrZzMbRL2gxMmZT1hA FkgIXGGUeLl9JTtEs5DE6cVnmUFsZgFtiWULXzNPYBSYhaRnFpLUAkamVYxCuZnJ2alFmdl6 BRmVJanJeimpmxiBgXx4ovqlHYx9czwOMTJxMB5ilOBgVhLhDZ13L0GINyWxsiq1KD++qDQn tfgQozQHi5I47wbekjAhgfTEktTs1NSC1CKYLBMHp1QDI9ddn1vHJ2g+WbBvdXFyopdBwvyH 9Z57jmcv5bdbGDtnxmTJ/R0OU7g9o9sDJ4sFGii33Qh7te+DYOUnlQ/7eqf4HPf09f37f0PL u+iX2cbbPy2xT8j63Bsncif2UJbbvq3y1pM0b6e0TZe8tOwHSxmvtKPV1SSjv+riz6xNHouI xIsdDfh/T4mlOCPRUIu5qDgRAE1I5mJSAgAA 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 Use now binman for image creation. Signed-off-by: Teresa Remmet --- .../imx8mp-phyboard-pollux-rdk-u-boot.dtsi | 105 ++++++++++++++++++ arch/arm/mach-imx/imx8m/Kconfig | 1 + .../phytec/phycore=5Fimx8mp/imximage-8mp-sd.cfg | 10 ++ configs/phycore-imx8mp=5Fdefconfig | 4 +- 4 files changed, 118 insertions(+), 2 deletions(-) create mode 100644 board/phytec/phycore=5Fimx8mp/imximage-8mp-sd.cfg diff --git a/arch/arm/dts/imx8mp-phyboard-pollux-rdk-u-boot.dtsi b/arch/arm= /dts/imx8mp-phyboard-pollux-rdk-u-boot.dtsi index dbc48dfb4841..2b8e77cb27c5 100644 --- a/arch/arm/dts/imx8mp-phyboard-pollux-rdk-u-boot.dtsi +++ b/arch/arm/dts/imx8mp-phyboard-pollux-rdk-u-boot.dtsi @@ -7,6 +7,10 @@ #include "imx8mp-u-boot.dtsi" =20 / { + binman: binman { + multiple-images; + }; + wdt-reboot { compatible =3D "wdt-reboot"; wdt =3D <&wdog1>; @@ -81,3 +85,104 @@ &wdog1 { u-boot,dm-spl; }; + +&binman { + u-boot-spl-ddr { + filename =3D "u-boot-spl-ddr.bin"; + pad-byte =3D <0xff>; + align-size =3D <4>; + align =3D <4>; + + u-boot-spl { + align-end =3D <4>; + }; + + blob=5F1: blob-ext@1 { + filename =3D "lpddr4=5Fpmu=5Ftrain=5F1d=5Fimem=5F202006.bin"; + size =3D <0x8000>; + }; + + blob=5F2: blob-ext@2 { + filename =3D "lpddr4=5Fpmu=5Ftrain=5F1d=5Fdmem=5F202006.bin"; + size =3D <0x4000>; + }; + + blob=5F3: blob-ext@3 { + filename =3D "lpddr4=5Fpmu=5Ftrain=5F2d=5Fimem=5F202006.bin"; + size =3D <0x8000>; + }; + + blob=5F4: blob-ext@4 { + filename =3D "lpddr4=5Fpmu=5Ftrain=5F2d=5Fdmem=5F202006.bin"; + size =3D <0x4000>; + }; + }; + + flash { + mkimage { + args =3D "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x920000"; + + blob { + filename =3D "u-boot-spl-ddr.bin"; + }; + }; + }; + + itb { + filename =3D "u-boot.itb"; + + fit { + description =3D "Configuration to load ATF before U-Boot"; + #address-cells =3D <1>; + fit,external-offset =3D ; + + images { + uboot { + description =3D "U-Boot (64-bit)"; + type =3D "standalone"; + arch =3D "arm64"; + compression =3D "none"; + load =3D ; + + uboot=5Fblob: blob-ext { + filename =3D "u-boot-nodtb.bin"; + }; + }; + + atf { + description =3D "ARM Trusted Firmware"; + type =3D "firmware"; + arch =3D "arm64"; + compression =3D "none"; + load =3D <0x970000>; + entry =3D <0x970000>; + + atf=5Fblob: blob-ext { + filename =3D "bl31.bin"; + }; + }; + + fdt { + description =3D "NAME"; + type =3D "flat=5Fdt"; + compression =3D "none"; + + uboot=5Ffdt=5Fblob: blob-ext { + filename =3D "u-boot.dtb"; + }; + }; + }; + + configurations { + default =3D "conf"; + + conf { + description =3D "NAME"; + firmware =3D "uboot"; + loadables =3D "atf"; + fdt =3D "fdt"; + }; + }; + }; + }; +}; diff --git a/arch/arm/mach-imx/imx8m/Kconfig b/arch/arm/mach-imx/imx8m/Kcon= fig index 0669363c0f51..ccaf106be5d8 100644 --- a/arch/arm/mach-imx/imx8m/Kconfig +++ b/arch/arm/mach-imx/imx8m/Kconfig @@ -127,6 +127,7 @@ config TARGET=5FPHYCORE=5FIMX8MM =20 config TARGET=5FPHYCORE=5FIMX8MP bool "PHYTEC PHYCORE i.MX8MP" + select BINMAN select IMX8MP select SUPPORT=5FSPL select IMX8M=5FLPDDR4 diff --git a/board/phytec/phycore=5Fimx8mp/imximage-8mp-sd.cfg b/board/phyt= ec/phycore=5Fimx8mp/imximage-8mp-sd.cfg new file mode 100644 index 000000000000..b2920b4908ed --- /dev/null +++ b/board/phytec/phycore=5Fimx8mp/imximage-8mp-sd.cfg @@ -0,0 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright 2021 NXP + */ + +#define =5F=5FASSEMBLY=5F=5F + +ROM=5FVERSION v2 +BOOT=5FFROM sd +LOADER mkimage.flash.mkimage 0x920000 diff --git a/configs/phycore-imx8mp=5Fdefconfig b/configs/phycore-imx8mp=5F= defconfig index 89c2ac977f47..32d538c8bbbb 100644 --- a/configs/phycore-imx8mp=5Fdefconfig +++ b/configs/phycore-imx8mp=5Fdefconfig @@ -20,9 +20,9 @@ CONFIG=5FSPL=5FIMX=5FROMAPI=5FLOADADDR=3D0x48000000 CONFIG=5FFIT=3Dy CONFIG=5FFIT=5FEXTERNAL=5FOFFSET=3D0x3000 CONFIG=5FSPL=5FLOAD=5FFIT=3Dy -CONFIG=5FSPL=5FFIT=5FGENERATOR=3D"arch/arm/mach-imx/mkimage=5Ffit=5Fatf.sh" +# CONFIG=5FUSE=5FSPL=5FFIT=5FGENERATOR is not set CONFIG=5FOF=5FSYSTEM=5FSETUP=3Dy -CONFIG=5FSYS=5FEXTRA=5FOPTIONS=3D"IMX=5FCONFIG=3Darch/arm/mach-imx/imx8m/i= mximage-8mp-lpddr4.cfg" +CONFIG=5FSYS=5FEXTRA=5FOPTIONS=3D"IMX=5FCONFIG=3Dboard/phytec/phycore=5Fim= x8mp/imximage-8mp-sd.cfg" CONFIG=5FDEFAULT=5FFDT=5FFILE=3D"oftree" CONFIG=5FBOARD=5FLATE=5FINIT=3Dy CONFIG=5FSPL=5FBOARD=5FINIT=3Dy --=20 2.25.1