All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-fsl-arm][PATCH 1/2] wic: add kickstart files for i.mx
@ 2015-03-02 11:45 Alexandre Belloni
  2015-03-02 11:45 ` [meta-fsl-arm][PATCH 2/2] machines: Add IMAGE_BOOT_FILES Alexandre Belloni
  0 siblings, 1 reply; 7+ messages in thread
From: Alexandre Belloni @ 2015-03-02 11:45 UTC (permalink / raw)
  To: meta-freescale

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@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



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-03-02 15:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-02 11:45 [meta-fsl-arm][PATCH 1/2] wic: add kickstart files for i.mx Alexandre Belloni
2015-03-02 11:45 ` [meta-fsl-arm][PATCH 2/2] machines: Add IMAGE_BOOT_FILES Alexandre Belloni
2015-03-02 12:35   ` Otavio Salvador
2015-03-02 13:04     ` Alexandre Belloni
2015-03-02 14:54       ` Otavio Salvador
2015-03-02 15:05         ` Alexandre Belloni
2015-03-02 15:06           ` Otavio Salvador

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.