[meta-freescale] [meta-fsl-arm][PATCH 4/4] wic: add a wks for mxs-barebox

Alexandre Belloni alexandre.belloni at free-electrons.com
Thu Jul 23 05:54:48 PDT 2015


Signed-off-by: Alexandre Belloni <alexandre.belloni at free-electrons.com>
---
 scripts/lib/image/canned-wks/mxs-barebox.wks | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 scripts/lib/image/canned-wks/mxs-barebox.wks

diff --git a/scripts/lib/image/canned-wks/mxs-barebox.wks b/scripts/lib/image/canned-wks/mxs-barebox.wks
new file mode 100644
index 000000000000..52bfecc35d27
--- /dev/null
+++ b/scripts/lib/image/canned-wks/mxs-barebox.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 barebox
+#
+# The disk layout used is:
+#  - --------- ------------ ---------
+# | | barebox | bareboxenv | rootfs  |
+#  - --------- ------------ ---------
+# ^ ^         ^            ^         ^
+# | |         |            |         |
+# 0 1MiB      2MiB       4MiB   4MiB + rootfs + IMAGE_EXTRA_SPACE (default 10MiB)
+#
+part barebox --source rawcopy --sourceparams="file=barebox.mxsboot-sdcard" --ondisk mmcblk --align 1024 --size 1M --fstype=ontrackdm6aux3
+part bareboxenv --source rawcopy --sourceparams="file=bareboxenv.bin" --ondisk mmcblk --align 1024 --size 512k
+part / --source rootfs --ondisk mmcblk --fstype=ext4 --label root --align 4096
-- 
2.1.4



More information about the meta-freescale mailing list