diff mbox series

[meta-swupdate-boards,2/4] Add WKS file for wandboard

Message ID 1517249680-2996-2-git-send-email-sbabic@denx.de
State Accepted
Headers show
Series None | expand

Commit Message

Stefano Babic Jan. 29, 2018, 6:14 p.m. UTC
Add a WKS file to install u-boot and 2 partitions to be
used in the dual-copy approach.

Signed-off-by: Stefano Babic <sbabic@denx.de>
---
 scripts/lib/wic/canned-wks/wandboard.wks | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 scripts/lib/wic/canned-wks/wandboard.wks
diff mbox series

Patch

diff --git a/scripts/lib/wic/canned-wks/wandboard.wks b/scripts/lib/wic/canned-wks/wandboard.wks
new file mode 100644
index 0000000..e5dcb2c
--- /dev/null
+++ b/scripts/lib/wic/canned-wks/wandboard.wks
@@ -0,0 +1,20 @@ 
+# 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  |    rootfs    |
+#  - ----- --------- --------------
+# ^ ^     ^         ^              ^
+# | |     |         |              |
+# 0 1kiB  69kiB   4MiB + 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.img" --ondisk mmcblk --no-table --align 69
+part / --source rootfs --ondisk mmcblk --fstype=ext4 --label rootfs1 --align 4096 --fixed-size=800M
+part /mnt --ondisk mmcblk --fstype=ext4 --label rootfs2 --align 4096 --fixed-size=800M
+
+bootloader --ptable msdos