Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F2CCCC433F5 for ; Wed, 6 Oct 2021 09:58:59 +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 64BC761152 for ; Wed, 6 Oct 2021 09:58:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 64BC761152 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 DB1BD8331F; Wed, 6 Oct 2021 11:57:46 +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="MQZGMWWv"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 027DA832C4; Wed, 6 Oct 2021 11:57:27 +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 ED063832CD for ; Wed, 6 Oct 2021 11:56:56 +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=1633514216; x=1636106216; 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=J1sIEfQHkQQ2WGSHDf6CyVF+000mZUWH9PqEHkugeD8=; b=MQZGMWWv05np85Z054uD5BRaNsjnlyfAcXpSXcGKCUCySeO4Zp92egHWxo43no2Y tikiRTg2QkK7l9dmNTwEenY1agohKETfq8AM+HBhwtmJ2OP0dIZyUffEzJeGIkOj +aC1i9INy4J9Avo+bf9wieESNdaE+rn8IQpS4Gl3bSs=; X-AuditID: c39127d2-c63ec70000001d24-31-615d72e87e50 Received: from idefix.phytec.de (Unknown_Domain [172.16.0.10]) by mickerik.phytec.de (PHYTEC Mail Gateway) with SMTP id 90.92.07460.8E27D516; Wed, 6 Oct 2021 11:56:56 +0200 (CEST) Received: from augenblix2.phytec.de ([172.16.0.56]) by idefix.phytec.de (IBM Domino Release 9.0.1FP7) with ESMTP id 2021100611565659-1832259 ; Wed, 6 Oct 2021 11:56:56 +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 Subject: [PATCH 9/9] board: phytec: imx8mm-phycore: Switch to binman Date: Wed, 6 Oct 2021 11:56:54 +0200 Message-Id: <20211006095654.978408-10-t.remmet@phytec.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211006095654.978408-1-t.remmet@phytec.de> References: <20211006095654.978408-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 06.10.2021 11:56:56, Serialize by Router on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 06.10.2021 11:56:56 X-TNEFEvaluated: 1 Content-Transfer-Encoding: quoted-printable X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrFLMWRmVeSWpSXmKPExsWyRoCBS/dFUWyiwbUT5hYPr/pbfNk0gc3i x6ovrBbtp3ws3u7tZLeY8ng9uwObx9qP91k95s06weKxc9Zddo+zd3Ywemx8t4MpgDWKyyYl NSezLLVI3y6BK2PT9MVsBVc0K06dnc/WwPhRoYuRk0NCwETi5++VLF2MXBxCAtsYJfp2XmSE cM4zSvROWsoCUsUmoCHxdMVpJhBbREBC4lf/VbAiZoFdjBIz1xxl7mLk4BAWcJHYOlsNpIZF QEXi0+4nYL28ApYSG04tZobYJi8x89J3dhCbEyj+p+sBWI2QgIXEyqtPmCDqBSVOznwCdpGE wBVGiYdTZ7BDNAtJnF58FmwQs4C2xLKFr5knMArMQtIzC0lqASPTKkah3Mzk7NSizGy9gozK ktRkvZTUTYzA8D08Uf3SDsa+OR6HGJk4GA8xSnAwK4nw5tvHJgrxpiRWVqUW5ccXleakFh9i lOZgURLnvd/DlCgkkJ5YkpqdmlqQWgSTZeLglGpg3PLsAaNZlvCck/LLixx2r3v3yHfuwtLZ fXlPlX/bbu9epnHm1BmFWJ3FZfaKCnxx+55GrN85hfG7mq/LOvVDzOrsAQzHzDfWNSgr8mnO N+mceeWOuJNx2iNFtyeXGDmakqstZJr2iv2Zffmqfwjr3u31h+8ta2ErdXMPja7w9U5deeui y2ZfJZbijERDLeai4kQA9TGSkU0CAAA= 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 binman for image creation. Signed-off-by: Teresa Remmet --- arch/arm/dts/phycore-imx8mm-u-boot.dtsi | 122 ++++++++++++++++++ arch/arm/mach-imx/imx8m/Kconfig | 1 + board/phytec/phycore=5Fimx8mm/Kconfig | 2 +- .../phytec/phycore=5Fimx8mm/imximage-8mm-sd.cfg | 9 ++ configs/phycore-imx8mm=5Fdefconfig | 2 +- 5 files changed, 134 insertions(+), 2 deletions(-) create mode 100644 board/phytec/phycore=5Fimx8mm/imximage-8mm-sd.cfg diff --git a/arch/arm/dts/phycore-imx8mm-u-boot.dtsi b/arch/arm/dts/phycore= -imx8mm-u-boot.dtsi index 7c2dfb4a273c..f842e02c771b 100644 --- a/arch/arm/dts/phycore-imx8mm-u-boot.dtsi +++ b/arch/arm/dts/phycore-imx8mm-u-boot.dtsi @@ -7,6 +7,10 @@ #include "imx8mm-u-boot.dtsi" =20 / { + binman: binman { + multiple-images; + }; + wdt-reboot { compatible =3D "wdt-reboot"; wdt =3D <&wdog1>; @@ -69,3 +73,121 @@ &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.bin"; + size =3D <0x8000>; + }; + + blob=5F2: blob-ext@2 { + filename =3D "lpddr4=5Fpmu=5Ftrain=5F1d=5Fdmem.bin"; + size =3D <0x4000>; + }; + + blob=5F3: blob-ext@3 { + filename =3D "lpddr4=5Fpmu=5Ftrain=5F2d=5Fimem.bin"; + size =3D <0x8000>; + }; + + blob=5F4: blob-ext@4 { + filename =3D "lpddr4=5Fpmu=5Ftrain=5F2d=5Fdmem.bin"; + size =3D <0x4000>; + }; + }; + + spl { + filename =3D "spl.bin"; + + mkimage { + args =3D "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x7e1000"; + + 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 <0x920000>; + entry =3D <0x920000>; + + 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"; + }; + }; + }; + }; + + 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 <0x57c00>; + }; + }; +}; diff --git a/arch/arm/mach-imx/imx8m/Kconfig b/arch/arm/mach-imx/imx8m/Kcon= fig index ccaf106be5d8..269d9774b558 100644 --- a/arch/arm/mach-imx/imx8m/Kconfig +++ b/arch/arm/mach-imx/imx8m/Kconfig @@ -121,6 +121,7 @@ config TARGET=5FIMX8MN=5FBEACON =20 config TARGET=5FPHYCORE=5FIMX8MM bool "PHYTEC PHYCORE i.MX8MM" + select BINMAN select IMX8MM select SUPPORT=5FSPL select IMX8M=5FLPDDR4 diff --git a/board/phytec/phycore=5Fimx8mm/Kconfig b/board/phytec/phycore= =5Fimx8mm/Kconfig index 9868e984875e..25e4bf2f8367 100644 --- a/board/phytec/phycore=5Fimx8mm/Kconfig +++ b/board/phytec/phycore=5Fimx8mm/Kconfig @@ -10,6 +10,6 @@ config SYS=5FCONFIG=5FNAME default "phycore=5Fimx8mm" =20 config IMX=5FCONFIG - default "arch/arm/mach-imx/imx8m/imximage-8mm-lpddr4.cfg" + default "board/phytec/phycore=5Fimx8mm/imximage-8mm-sd.cfg" =20 endif diff --git a/board/phytec/phycore=5Fimx8mm/imximage-8mm-sd.cfg b/board/phyt= ec/phycore=5Fimx8mm/imximage-8mm-sd.cfg new file mode 100644 index 000000000000..ea74fb7e590f --- /dev/null +++ b/board/phytec/phycore=5Fimx8mm/imximage-8mm-sd.cfg @@ -0,0 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright 2021 Phytec Messtechnik GmbH + */ + +#define =5F=5FASSEMBLY=5F=5F + +BOOT=5FFROM sd +LOADER u-boot-spl-ddr.bin 0x7E1000 diff --git a/configs/phycore-imx8mm=5Fdefconfig b/configs/phycore-imx8mm=5F= defconfig index 1897cb398ffd..c22139874768 100644 --- a/configs/phycore-imx8mm=5Fdefconfig +++ b/configs/phycore-imx8mm=5Fdefconfig @@ -21,7 +21,7 @@ CONFIG=5FSYS=5FLOAD=5FADDR=3D0x40480000 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=5FDEFAULT=5FFDT=5FFILE=3D"oftree" CONFIG=5FBOARD=5FLATE=5FINIT=3Dy --=20 2.25.1