[meta-freescale] [meta-fsl-arm][PATCH 1/2] wic: add kickstart files for i.mx

Alexandre Belloni alexandre.belloni at free-electrons.com
Mon Mar 2 03:45:32 PST 2015


Add kickstart files replacing the sdcard generation capabilities of
generate_imx_sdcard(). They keep the same partition layout.

For barebox: imx-barebox.wks
For u-boot only: imx-uboot.wks
For u-boot with SPL: imx-uboot-spl.wks

Signed-off-by: Alexandre Belloni <alexandre.belloni at free-electrons.com>
---
 scripts/lib/image/canned-wks/imx-barebox.wks   | 18 ++++++++++++++++++
 scripts/lib/image/canned-wks/imx-uboot-spl.wks | 18 ++++++++++++++++++
 scripts/lib/image/canned-wks/imx-uboot.wks     | 17 +++++++++++++++++
 3 files changed, 53 insertions(+)
 create mode 100644 scripts/lib/image/canned-wks/imx-barebox.wks
 create mode 100644 scripts/lib/image/canned-wks/imx-uboot-spl.wks
 create mode 100644 scripts/lib/image/canned-wks/imx-uboot.wks

diff --git a/scripts/lib/image/canned-wks/imx-barebox.wks b/scripts/lib/image/canned-wks/imx-barebox.wks
new file mode 100644
index 000000000000..77b5554806d8
--- /dev/null
+++ b/scripts/lib/image/canned-wks/imx-barebox.wks
@@ -0,0 +1,18 @@
+# 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 barebox
+#
+# The disk layout used is:
+#  - --------- ------------ --------- --------------
+# | | barebox | bareboxenv |  /boot  |    rootfs    |
+#  - --------- ------------ --------- --------------
+# ^ ^         ^            ^         ^              ^
+# | |         |            |         |              |
+# 0 512B      512kiB       4MiB   4MiB + 8MiB    4MiB + 8Mib + rootfs + IMAGE_EXTRA_SPACE (default 10MiB)
+#
+part barebox --source rawcopy --sourceparams="file=barebox.bin,skip=512" --ondisk mmcblk --no-table
+part bareboxenv --source rawcopy --sourceparams="file=bareboxenv.bin" --ondisk mmcblk --no-table --align 512
+part /boot --source bootimg-partition --ondisk mmcblk --fstype=vfat --label boot --active --align 4096 --size 8M --extra-space 0
+part / --source rootfs --ondisk mmcblk --fstype=ext4 --label root --align 4096
diff --git a/scripts/lib/image/canned-wks/imx-uboot-spl.wks b/scripts/lib/image/canned-wks/imx-uboot-spl.wks
new file mode 100644
index 000000000000..e2bdc1452c0a
--- /dev/null
+++ b/scripts/lib/image/canned-wks/imx-uboot-spl.wks
@@ -0,0 +1,18 @@
+# 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   4MiB + 8MiB    4MiB + 8Mib + 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=u-boot.imx" --ondisk mmcblk --no-table --align 69
+part /boot --source bootimg-partition --ondisk mmcblk --fstype=vfat --label boot --active --align 4096 --size 8M --extra-space 0
+part / --source rootfs --ondisk mmcblk --fstype=ext4 --label root --align 4096
diff --git a/scripts/lib/image/canned-wks/imx-uboot.wks b/scripts/lib/image/canned-wks/imx-uboot.wks
new file mode 100644
index 000000000000..086521034edc
--- /dev/null
+++ b/scripts/lib/image/canned-wks/imx-uboot.wks
@@ -0,0 +1,17 @@
+# 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 u-boot
+#
+# The disk layout used is:
+#  - --------- --------- --------------
+# | | u-boot  |  /boot  |    rootfs    |
+#  - --------- --------- --------------
+# ^ ^         ^         ^              ^
+# | |         |         |              |
+# 0 1kiB    4MiB   4MiB + 8MiB    4MiB + 8Mib + rootfs + IMAGE_EXTRA_SPACE (default 10MiB)
+#
+part u-boot --source rawcopy --sourceparams="file=u-boot.imx" --ondisk mmcblk --no-table --align 1
+part /boot --source bootimg-partition --ondisk mmcblk --fstype=vfat --label boot --active --align 4096 --size 8M --extra-space 0
+part / --source rootfs --ondisk mmcblk --fstype=ext4 --label root --align 4096
-- 
2.1.0



More information about the meta-freescale mailing list