All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexandre Belloni <alexandre.belloni@free-electrons.com>
To: meta-freescale@yoctoproject.org
Subject: [meta-fsl-arm][PATCH 1/2] wic: add kickstart files for i.mx
Date: Mon,  2 Mar 2015 12:45:32 +0100	[thread overview]
Message-ID: <1425296733-32438-1-git-send-email-alexandre.belloni@free-electrons.com> (raw)

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



             reply	other threads:[~2015-03-02 11:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-02 11:45 Alexandre Belloni [this message]
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

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=1425296733-32438-1-git-send-email-alexandre.belloni@free-electrons.com \
    --to=alexandre.belloni@free-electrons.com \
    --cc=meta-freescale@yoctoproject.org \
    /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 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.