From 04f83447429389a44c9eb4f64933f2433438a9b9 Mon Sep 17 00:00:00 2001 From: Alexandre Belloni Date: Mon, 2 Mar 2015 12:45:32 +0100 Subject: [PATCH] wic: add kickstart files for i.mx 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 Signed-off-by: Otavio Salvador --- .../lib/image/canned-wks/imx-barebox.wks | 18 ++++++++++++++++++ .../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 meta-fsl-arm/scripts/lib/image/canned-wks/imx-barebox.wks create mode 100644 meta-fsl-arm/scripts/lib/image/canned-wks/imx-uboot-spl.wks create mode 100644 meta-fsl-arm/scripts/lib/image/canned-wks/imx-uboot.wks diff --git a/meta-fsl-arm/scripts/lib/image/canned-wks/imx-barebox.wks b/meta-fsl-arm/scripts/lib/image/canned-wks/imx-barebox.wks new file mode 100644 index 00000000..77b55548 --- /dev/null +++ b/meta-fsl-arm/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/meta-fsl-arm/scripts/lib/image/canned-wks/imx-uboot-spl.wks b/meta-fsl-arm/scripts/lib/image/canned-wks/imx-uboot-spl.wks new file mode 100644 index 00000000..e2bdc145 --- /dev/null +++ b/meta-fsl-arm/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/meta-fsl-arm/scripts/lib/image/canned-wks/imx-uboot.wks b/meta-fsl-arm/scripts/lib/image/canned-wks/imx-uboot.wks new file mode 100644 index 00000000..08652103 --- /dev/null +++ b/meta-fsl-arm/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.40.1