All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fabio Estevam <festevam@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/3] imx/post-image.sh: Support BR2_LINUX_KERNEL_INSTALL_TARGET=y for non-SPL
Date: Sun, 11 Jul 2021 17:19:52 -0300	[thread overview]
Message-ID: <20210711201954.2142662-1-festevam@gmail.com> (raw)

Currently, only SPL is supported when BR2_LINUX_KERNEL_INSTALL_TARGET=y
is selected.

Support non-SPL case too.

This is needed for booting imx7d-sabresd, for example.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
---
 .../common/imx/genimage.cfg.template_no_boot_part | 15 +++++++++++++++
 board/freescale/common/imx/post-image.sh          |  2 ++
 2 files changed, 17 insertions(+)
 create mode 100644 board/freescale/common/imx/genimage.cfg.template_no_boot_part

diff --git a/board/freescale/common/imx/genimage.cfg.template_no_boot_part b/board/freescale/common/imx/genimage.cfg.template_no_boot_part
new file mode 100644
index 000000000000..edc34d0fcd12
--- /dev/null
+++ b/board/freescale/common/imx/genimage.cfg.template_no_boot_part
@@ -0,0 +1,15 @@
+image sdcard.img {
+  hdimage {
+  }
+
+  partition u-boot {
+    in-partition-table = "no"
+    image = "%UBOOTBIN%"
+    offset = 1024
+  }
+
+  partition rootfs {
+    partition-type = 0x83
+    image = "rootfs.ext2"
+  }
+}
diff --git a/board/freescale/common/imx/post-image.sh b/board/freescale/common/imx/post-image.sh
index 0c2ef53dc643..3bb482debda0 100755
--- a/board/freescale/common/imx/post-image.sh
+++ b/board/freescale/common/imx/post-image.sh
@@ -47,6 +47,8 @@ genimage_type()
 	elif grep -Eq "^BR2_LINUX_KERNEL_INSTALL_TARGET=y$" ${BR2_CONFIG}; then
 		if grep -Eq "^BR2_TARGET_UBOOT_SPL=y$" ${BR2_CONFIG}; then
 		    echo "genimage.cfg.template_no_boot_part_spl"
+		else
+		    echo "genimage.cfg.template_no_boot_part"
 		fi
 	elif grep -Eq "^BR2_TARGET_UBOOT_SPL=y$" ${BR2_CONFIG}; then
 		echo "genimage.cfg.template_spl"
-- 
2.25.1

             reply	other threads:[~2021-07-11 20:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-11 20:19 Fabio Estevam [this message]
2021-07-11 20:19 ` [Buildroot] [PATCH 2/3] configs/imx7d-sdb: Add extlinux.conf support Fabio Estevam
2021-07-12 16:35   ` Pierre-Jean Texier
2021-07-11 20:19 ` [Buildroot] [PATCH 3/3] configs/imx7d-sdb: Bump U-Boot and kernel versions Fabio Estevam
2021-07-12 16:36   ` Pierre-Jean Texier
2021-07-12 16:33 ` [Buildroot] [PATCH 1/3] imx/post-image.sh: Support BR2_LINUX_KERNEL_INSTALL_TARGET=y for non-SPL Pierre-Jean Texier

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=20210711201954.2142662-1-festevam@gmail.com \
    --to=festevam@gmail.com \
    --cc=buildroot@busybox.net \
    /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.