imx/post-image.sh: support BR2_LINUX_KERNEL_INSTALL_TARGET=y for non-SPL
authorFabio Estevam <festevam@gmail.com>
Sun, 11 Jul 2021 20:19:52 +0000 (17:19 -0300)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 19 Jul 2021 21:32:32 +0000 (23:32 +0200)
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>
Reviewed-by: Pierre-Jean Texier <texier.pj2@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
board/freescale/common/imx/genimage.cfg.template_no_boot_part [new file with mode: 0644]
board/freescale/common/imx/post-image.sh

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 (file)
index 0000000..edc34d0
--- /dev/null
@@ -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"
+  }
+}
index 0c2ef53dc643c2d9e20071d2a0cd113ba78755d8..3bb482debda0fb599c0ad09859f3d4805d7fb729 100755 (executable)
@@ -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"