From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 3F396E00873; Mon, 2 Mar 2015 03:45:41 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail.free-electrons.com (down.free-electrons.com [37.187.137.238]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id EA5DEE0086D for ; Mon, 2 Mar 2015 03:45:39 -0800 (PST) Received: by mail.free-electrons.com (Postfix, from userid 106) id 11EF8497; Mon, 2 Mar 2015 12:45:39 +0100 (CET) Received: from localhost (128-79-216-6.hfc.dyn.abo.bbox.fr [128.79.216.6]) by mail.free-electrons.com (Postfix) with ESMTPSA id CC8931AA; Mon, 2 Mar 2015 12:45:38 +0100 (CET) From: Alexandre Belloni To: meta-freescale@yoctoproject.org Date: Mon, 2 Mar 2015 12:45:32 +0100 Message-Id: <1425296733-32438-1-git-send-email-alexandre.belloni@free-electrons.com> X-Mailer: git-send-email 2.1.0 Subject: [meta-fsl-arm][PATCH 1/2] wic: add kickstart files for i.mx X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Mar 2015 11:45:41 -0000 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 --- 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