All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH][RFC] tree: imx: remove old fit generator script
@ 2021-08-24  7:55 Andrey Zhizhikin
  2021-09-02 16:41 ` Simon Glass
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Andrey Zhizhikin @ 2021-08-24  7:55 UTC (permalink / raw)
  To: u-boot
  Cc: sbabic, festevam, sjg, oliver.graute, jh80.chung, jagan,
	peng.fan, alice.guo, ye.li, aford173, marek.behun, tharvey, hs,
	t.remmet, Andrey Zhizhikin

Since derivatives are moving to binman from usage of the FIT generator
script, and considering the warning introduced in f4a43d2925
("Makefile: Warn against using CONFIG_SPL_FIT_GENERATOR"), usage of FIT
generator is discouraged.

Current FIT generator also generates broken output, since commit
3f04db891a ("image: Check for unit addresses in FITs") prohibits using
'@' for unit addresses but the generator script still emits the old
sematics.

Remove the generator script and corresponding call in Makefile, all
derivatives should be migrated to binman in order to provide binary
images.

Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
---
 Makefile                             |   3 -
 arch/arm/mach-imx/mkimage_fit_atf.sh | 143 ---------------------------
 2 files changed, 146 deletions(-)
 delete mode 100755 arch/arm/mach-imx/mkimage_fit_atf.sh

diff --git a/Makefile b/Makefile
index 3c8437d21a..6760ddc826 100644
--- a/Makefile
+++ b/Makefile
@@ -1350,9 +1350,6 @@ $(U_BOOT_ITS): $(subst ",,$(CONFIG_SPL_FIT_SOURCE))
 else
 ifneq ($(CONFIG_USE_SPL_FIT_GENERATOR),)
 U_BOOT_ITS := u-boot.its
-ifeq ($(CONFIG_SPL_FIT_GENERATOR),"arch/arm/mach-imx/mkimage_fit_atf.sh")
-U_BOOT_ITS_DEPS += u-boot-nodtb.bin
-endif
 ifeq ($(CONFIG_SPL_FIT_GENERATOR),"arch/arm/mach-rockchip/make_fit_atf.py")
 U_BOOT_ITS_DEPS += u-boot
 endif
diff --git a/arch/arm/mach-imx/mkimage_fit_atf.sh b/arch/arm/mach-imx/mkimage_fit_atf.sh
deleted file mode 100755
index 2a17968794..0000000000
--- a/arch/arm/mach-imx/mkimage_fit_atf.sh
+++ /dev/null
@@ -1,143 +0,0 @@
-#!/bin/sh
-# SPDX-License-Identifier: GPL-2.0+
-#
-# script to generate FIT image source for i.MX8MQ boards with
-# ARM Trusted Firmware and multiple device trees (given on the command line)
-#
-# usage: $0 <dt_name> [<dt_name> [<dt_name] ...]
-
-[ -z "$BL31" ] && BL31="bl31.bin"
-[ -z "$TEE_LOAD_ADDR" ] && TEE_LOAD_ADDR="0xfe000000"
-[ -z "$ATF_LOAD_ADDR" ] && ATF_LOAD_ADDR="0x00910000"
-[ -z "$BL33_LOAD_ADDR" ] && BL33_LOAD_ADDR="0x40200000"
-
-if [ ! -f $BL31 ]; then
-	echo "ERROR: BL31 file $BL31 NOT found" >&2
-	exit 0
-else
-	echo "$BL31 size: " >&2
-	stat -c %s $BL31 >&2
-fi
-
-BL32="tee.bin"
-
-if [ ! -f $BL32 ]; then
-	BL32=/dev/null
-else
-	echo "Building with TEE support, make sure your $BL31 is compiled with spd. If you do not want tee, please delete $BL31" >&2
-	echo "$BL32 size: " >&2
-	stat -c %s $BL32 >&2
-fi
-
-BL33="u-boot-nodtb.bin"
-
-if [ ! -f $BL33 ]; then
-	echo "ERROR: $BL33 file NOT found" >&2
-	exit 0
-else
-	echo "u-boot-nodtb.bin size: " >&2
-	stat -c %s u-boot-nodtb.bin >&2
-fi
-
-for dtname in $*
-do
-	echo "$dtname size: " >&2
-	stat -c %s $dtname >&2
-done
-
-
-cat << __HEADER_EOF
-/dts-v1/;
-
-/ {
-	description = "Configuration to load ATF before U-Boot";
-
-	images {
-		uboot@1 {
-			description = "U-Boot (64-bit)";
-			os = "u-boot";
-			data = /incbin/("$BL33");
-			type = "standalone";
-			arch = "arm64";
-			compression = "none";
-			load = <$BL33_LOAD_ADDR>;
-		};
-__HEADER_EOF
-
-cnt=1
-for dtname in $*
-do
-	cat << __FDT_IMAGE_EOF
-		fdt@$cnt {
-			description = "$(basename $dtname .dtb)";
-			data = /incbin/("$dtname");
-			type = "flat_dt";
-			compression = "none";
-		};
-__FDT_IMAGE_EOF
-cnt=$((cnt+1))
-done
-
-cat << __HEADER_EOF
-		atf@1 {
-			description = "ARM Trusted Firmware";
-			os = "arm-trusted-firmware";
-			data = /incbin/("$BL31");
-			type = "firmware";
-			arch = "arm64";
-			compression = "none";
-			load = <$ATF_LOAD_ADDR>;
-			entry = <$ATF_LOAD_ADDR>;
-		};
-__HEADER_EOF
-
-if [ -f $BL32 ]; then
-cat << __HEADER_EOF
-		tee@1 {
-			description = "TEE firmware";
-			data = /incbin/("$BL32");
-			type = "firmware";
-			arch = "arm64";
-			compression = "none";
-			load = <$TEE_LOAD_ADDR>;
-			entry = <$TEE_LOAD_ADDR>;
-		};
-__HEADER_EOF
-fi
-
-cat << __CONF_HEADER_EOF
-	};
-	configurations {
-		default = "config@1";
-
-__CONF_HEADER_EOF
-
-cnt=1
-for dtname in $*
-do
-if [ -f $BL32 ]; then
-cat << __CONF_SECTION_EOF
-		config@$cnt {
-			description = "$(basename $dtname .dtb)";
-			firmware = "uboot@1";
-			loadables = "atf@1", "tee@1";
-			fdt = "fdt@$cnt";
-		};
-__CONF_SECTION_EOF
-else
-cat << __CONF_SECTION1_EOF
-		config@$cnt {
-			description = "$(basename $dtname .dtb)";
-			firmware = "uboot@1";
-			loadables = "atf@1";
-			fdt = "fdt@$cnt";
-		};
-__CONF_SECTION1_EOF
-fi
-cnt=$((cnt+1))
-done
-
-cat << __ITS_EOF
-	};
-};
-__ITS_EOF
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH][RFC] tree: imx: remove old fit generator script
  2021-08-24  7:55 [PATCH][RFC] tree: imx: remove old fit generator script Andrey Zhizhikin
@ 2021-09-02 16:41 ` Simon Glass
  2021-09-02 17:09 ` Fabio Estevam
  2021-10-07 14:14 ` sbabic
  2 siblings, 0 replies; 4+ messages in thread
From: Simon Glass @ 2021-09-02 16:41 UTC (permalink / raw)
  To: Andrey Zhizhikin
  Cc: U-Boot Mailing List, Stefano Babic, Fabio Estevam, Oliver Graute,
	Jaehoon Chung, Jagan Teki, Peng Fan, alice.guo, Ye Li, Adam Ford,
	Marek Behún, Tim Harvey, Heiko Schocher, Teresa Remmet

On Tue, 24 Aug 2021 at 01:55, Andrey Zhizhikin
<andrey.zhizhikin@leica-geosystems.com> wrote:
>
> Since derivatives are moving to binman from usage of the FIT generator
> script, and considering the warning introduced in f4a43d2925
> ("Makefile: Warn against using CONFIG_SPL_FIT_GENERATOR"), usage of FIT
> generator is discouraged.
>
> Current FIT generator also generates broken output, since commit
> 3f04db891a ("image: Check for unit addresses in FITs") prohibits using
> '@' for unit addresses but the generator script still emits the old
> sematics.
>
> Remove the generator script and corresponding call in Makefile, all
> derivatives should be migrated to binman in order to provide binary
> images.
>
> Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
> ---
>  Makefile                             |   3 -
>  arch/arm/mach-imx/mkimage_fit_atf.sh | 143 ---------------------------
>  2 files changed, 146 deletions(-)
>  delete mode 100755 arch/arm/mach-imx/mkimage_fit_atf.sh

Reviewed-by: Simon Glass <sjg@chromium.org>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH][RFC] tree: imx: remove old fit generator script
  2021-08-24  7:55 [PATCH][RFC] tree: imx: remove old fit generator script Andrey Zhizhikin
  2021-09-02 16:41 ` Simon Glass
@ 2021-09-02 17:09 ` Fabio Estevam
  2021-10-07 14:14 ` sbabic
  2 siblings, 0 replies; 4+ messages in thread
From: Fabio Estevam @ 2021-09-02 17:09 UTC (permalink / raw)
  To: Andrey Zhizhikin
  Cc: U-Boot-Denx, Stefano Babic, Simon Glass, Oliver Graute,
	Jaehoon Chung, Jagan Teki, Peng Fan, Alice Guo, Ye Li, Adam Ford,
	marek.behun, Tim Harvey, Heiko Schocher, Teresa Remmet

Hi Andrey,

On Tue, Aug 24, 2021 at 4:55 AM Andrey Zhizhikin
<andrey.zhizhikin@leica-geosystems.com> wrote:
>
> Since derivatives are moving to binman from usage of the FIT generator
> script, and considering the warning introduced in f4a43d2925
> ("Makefile: Warn against using CONFIG_SPL_FIT_GENERATOR"), usage of FIT
> generator is discouraged.
>
> Current FIT generator also generates broken output, since commit
> 3f04db891a ("image: Check for unit addresses in FITs") prohibits using
> '@' for unit addresses but the generator script still emits the old
> sematics.
>
> Remove the generator script and corresponding call in Makefile, all
> derivatives should be migrated to binman in order to provide binary
> images.
>
> Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>

Reviewed-by: Fabio Estevam <festevam@gmail.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH][RFC] tree: imx: remove old fit generator script
  2021-08-24  7:55 [PATCH][RFC] tree: imx: remove old fit generator script Andrey Zhizhikin
  2021-09-02 16:41 ` Simon Glass
  2021-09-02 17:09 ` Fabio Estevam
@ 2021-10-07 14:14 ` sbabic
  2 siblings, 0 replies; 4+ messages in thread
From: sbabic @ 2021-10-07 14:14 UTC (permalink / raw)
  To: Andrey Zhizhikin, U-Boot

> Since derivatives are moving to binman from usage of the FIT generator
> script, and considering the warning introduced in f4a43d2925
> ("Makefile: Warn against using CONFIG_SPL_FIT_GENERATOR"), usage of FIT
> generator is discouraged.
> Current FIT generator also generates broken output, since commit
> 3f04db891a ("image: Check for unit addresses in FITs") prohibits using
> '@' for unit addresses but the generator script still emits the old
> sematics.
> Remove the generator script and corresponding call in Makefile, all
> derivatives should be migrated to binman in order to provide binary
> images.
> Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>
> Reviewed-by: Fabio Estevam <festevam@gmail.com>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic@denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-10-07 14:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-24  7:55 [PATCH][RFC] tree: imx: remove old fit generator script Andrey Zhizhikin
2021-09-02 16:41 ` Simon Glass
2021-09-02 17:09 ` Fabio Estevam
2021-10-07 14:14 ` sbabic

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.