All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peng Fan <peng.fan@nxp.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [patch v2 05/13] imx: introduce mkimage_fit.sh
Date: Wed,  9 Aug 2017 20:51:59 +0800	[thread overview]
Message-ID: <1502283127-21666-6-git-send-email-peng.fan@nxp.com> (raw)
In-Reply-To: <1502283127-21666-1-git-send-email-peng.fan@nxp.com>

Introduce mkimage_fit.sh which is modifed from
board/sunxi/mksunxi_fit_atf.sh.
ATF is dropped and modified for arm32 arch.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Fabio Estevam <fabio.estevam@nxp.com>
---
 arch/arm/mach-imx/mkimage_fit.sh | 63 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 63 insertions(+)
 create mode 100755 arch/arm/mach-imx/mkimage_fit.sh

diff --git a/arch/arm/mach-imx/mkimage_fit.sh b/arch/arm/mach-imx/mkimage_fit.sh
new file mode 100755
index 0000000..18628de
--- /dev/null
+++ b/arch/arm/mach-imx/mkimage_fit.sh
@@ -0,0 +1,63 @@
+#!/bin/sh
+#
+# script to generate FIT image source for 32-bit imx boards with
+# multiple device trees (given on the command line)
+#
+# usage: $0 <dt_name> [<dt_name> [<dt_name] ...]
+
+cat << __HEADER_EOF
+/dts-v1/;
+
+/ {
+	description = "Configuration to load ATF before U-Boot";
+	#address-cells = <1>;
+
+	images {
+		uboot at 1 {
+			description = "U-Boot (32-bit)";
+			data = /incbin/("u-boot-nodtb.bin");
+			type = "standalone";
+			arch = "arm32";
+			compression = "none";
+			load = <0x17800000>;
+		};
+__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 << __CONF_HEADER_EOF
+	};
+	configurations {
+		default = "config at 1";
+
+__CONF_HEADER_EOF
+
+cnt=1
+for dtname in $*
+do
+	cat << __CONF_SECTION_EOF
+		config@$cnt {
+			description = "$(basename $dtname .dtb)";
+			firmware = "uboot@1";
+			fdt = "fdt@$cnt";
+		};
+__CONF_SECTION_EOF
+	cnt=$((cnt+1))
+done
+
+cat << __ITS_EOF
+	};
+};
+__ITS_EOF
-- 
2.6.2

  parent reply	other threads:[~2017-08-09 12:51 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-09 12:51 [U-Boot] [patch v2 00/13] imx: mx6sabresd: support SPL FIT Peng Fan
2017-08-09 12:51 ` [U-Boot] [patch v2 01/13] scripts: spl: fix typo Peng Fan
2017-08-09 12:51 ` [U-Boot] [patch v2 02/13] arm: dts: include dts for imx6sabresd Peng Fan
2017-08-09 12:51 ` [U-Boot] [patch v2 03/13] power: pmic/regulator allow dm be omited by SPL Peng Fan
2017-08-09 12:51 ` [U-Boot] [patch v2 04/13] Makefile: build FIT image if CONFIG_SPL_FIT_GENERATOR defined Peng Fan
2017-08-09 12:51 ` Peng Fan [this message]
2017-08-09 12:52 ` [U-Boot] [patch v2 06/13] imx: mx6sabresd: implement board_fit_config_name_match Peng Fan
2017-08-09 12:52 ` [U-Boot] [patch v2 07/13] imx: mx6sabresd: enable SPL FIT Peng Fan
2017-08-09 12:52 ` [U-Boot] [patch v2 08/13] scripts: spl: Disable DM MMC when SPL DM not enabled Peng Fan
2017-08-09 12:52 ` [U-Boot] [patch v2 09/13] mmc: fsl_esdhc: switch to use CONFIG_IS_ENABLED Peng Fan
2017-08-09 12:52 ` [U-Boot] [patch v2 10/13] power: pmic.h: include dm/ofnode.h Peng Fan
2017-08-13 21:36   ` Simon Glass
2017-08-09 12:52 ` [U-Boot] [patch v2 11/13] board: freescale: common: add pfuze dm code Peng Fan
2017-08-09 12:52 ` [U-Boot] [patch v2 12/13] imx: mx6sabresd: enable dm drivers Peng Fan
2017-08-09 12:52 ` [U-Boot] [patch v2 13/13] imx: mx6sabresd: update README Peng Fan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1502283127-21666-6-git-send-email-peng.fan@nxp.com \
    --to=peng.fan@nxp.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.