From: Joris Offouga <offougajoris@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/3] boards/freescale/common: Introduce template_no_boot_part
Date: Sun, 9 Jun 2019 16:57:48 +0200 [thread overview]
Message-ID: <20190609145749.28766-2-offougajoris@gmail.com> (raw)
In-Reply-To: <20190609145749.28766-1-offougajoris@gmail.com>
This includes the no_boot_part templates which use a /boot
included in rootfs.
Signed-off-by: Joris Offouga <offougajoris@gmail.com>
Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
---
.../imx/genimage.cfg.template_no_boot_part | 23 +++++++++++++++
.../genimage.cfg.template_no_boot_part_spl | 29 +++++++++++++++++++
board/freescale/common/imx/post-image.sh | 6 ++++
3 files changed, 58 insertions(+)
create mode 100644 board/freescale/common/imx/genimage.cfg.template_no_boot_part
create mode 100644 board/freescale/common/imx/genimage.cfg.template_no_boot_part_spl
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 0000000000..9e19b4ee3e
--- /dev/null
+++ b/board/freescale/common/imx/genimage.cfg.template_no_boot_part
@@ -0,0 +1,23 @@
+# Minimal SD card image for the Freescale boards Template
+#
+# We mimic the .sdcard Freescale's image format:
+# * the SD card must have 1 kB free space at the beginning,
+# * U-Boot is dumped as is,
+# * a single root filesystem partition is required (ext2, ext3 or ext4)
+#
+
+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/genimage.cfg.template_no_boot_part_spl b/board/freescale/common/imx/genimage.cfg.template_no_boot_part_spl
new file mode 100644
index 0000000000..6d3ae183e3
--- /dev/null
+++ b/board/freescale/common/imx/genimage.cfg.template_no_boot_part_spl
@@ -0,0 +1,29 @@
+# Minimal SD card image for the Freescale boards Template for SPL Boot
+#
+# We mimic the .sdcard Freescale's image format:
+# * the SD card must have 1 kB free space at the beginning,
+# * U-Boot is dumped as is,
+# * a single root filesystem partition is required (ext2, ext3 or ext4)
+#
+
+image sdcard.img {
+ hdimage {
+ }
+
+ partition spl {
+ in-partition-table = "no"
+ image = "SPL"
+ offset = 1024
+ }
+
+ partition u-boot-img {
+ in-partition-table = "no"
+ image = "u-boot.img"
+ offset = 69K
+ }
+
+ 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 12a5bea73b..851ce97c57 100755
--- a/board/freescale/common/imx/post-image.sh
+++ b/board/freescale/common/imx/post-image.sh
@@ -36,6 +36,12 @@ genimage_type()
echo "genimage.cfg.template_imx8"
elif grep -Eq "^BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X=y$" ${BR2_CONFIG}; then
echo "genimage.cfg.template_imx8"
+ 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"
else
--
2.17.1
next prev parent reply other threads:[~2019-06-09 14:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-09 14:57 [Buildroot] [PATCH 1/3] configs/imx7dpico: Bump Linux and U-Boot Joris Offouga
2019-06-09 14:57 ` Joris Offouga [this message]
2019-06-09 22:17 ` [Buildroot] [PATCH 2/3] boards/freescale/common: Introduce template_no_boot_part Arnout Vandecappelle
2019-06-10 18:43 ` Joris Offouga
2019-06-10 18:43 ` Joris Offouga
2019-06-10 19:00 ` Arnout Vandecappelle
2019-06-10 19:12 ` Joris Offouga
2019-06-09 14:57 ` [Buildroot] [PATCH 3/3] configs/imx7dpico: Add Wifi support Joris Offouga
2019-06-09 22:27 ` Arnout Vandecappelle
2019-06-09 16:44 ` [Buildroot] [PATCH 1/3] configs/imx7dpico: Bump Linux and U-Boot Pierre-Jean Texier
2019-06-09 22:08 ` Arnout Vandecappelle
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=20190609145749.28766-2-offougajoris@gmail.com \
--to=offougajoris@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox