summaryrefslogtreecommitdiffstats
path: root/bsp/meta-freescale/wic/imx-uboot-spl-bootpart.wks.in
diff options
context:
space:
mode:
authortakeshi_hoshina <takeshi_hoshina@mail.toyota.co.jp>2020-11-02 11:07:33 +0900
committertakeshi_hoshina <takeshi_hoshina@mail.toyota.co.jp>2020-11-02 11:07:33 +0900
commit1c7d6584a7811b7785ae5c1e378f14b5ba0971cf (patch)
treecd70a267a5ef105ba32f200aa088e281fbd85747 /bsp/meta-freescale/wic/imx-uboot-spl-bootpart.wks.in
parent4204309872da5cb401cbb2729d9e2d4869a87f42 (diff)
recipes
Diffstat (limited to 'bsp/meta-freescale/wic/imx-uboot-spl-bootpart.wks.in')
-rw-r--r--bsp/meta-freescale/wic/imx-uboot-spl-bootpart.wks.in20
1 files changed, 20 insertions, 0 deletions
diff --git a/bsp/meta-freescale/wic/imx-uboot-spl-bootpart.wks.in b/bsp/meta-freescale/wic/imx-uboot-spl-bootpart.wks.in
new file mode 100644
index 00000000..8062c51e
--- /dev/null
+++ b/bsp/meta-freescale/wic/imx-uboot-spl-bootpart.wks.in
@@ -0,0 +1,20 @@
+# short-description: Create SD card image with a boot partition
+# long-description:
+# Create an image that can be written onto a SD card using dd for use
+# with i.MX SoC family.
+# It uses SPL and u-boot
+#
+# The disk layout used is:
+# - ----- --------- -------------- --------------
+# | | SPL | u-boot | boot | rootfs |
+# - ----- --------- -------------- --------------
+# ^ ^ ^ ^ ^
+# | | | | |
+# 0 1kiB 69kiB 4MiB 16MiB + rootfs + IMAGE_EXTRA_SPACE (default 10MiB)
+#
+part SPL --source rawcopy --sourceparams="file=SPL" --ondisk mmcblk --no-table --align 1
+part u-boot --source rawcopy --sourceparams="file=${UBOOT_BINARY}" --ondisk mmcblk --no-table --align 69
+part /boot --source bootimg-partition --ondisk mmcblk --fstype=vfat --label boot --active --align 4096 --size 16
+part / --source rootfs --ondisk mmcblk --fstype=ext4 --label root --align 4096
+
+bootloader --ptable msdos