summaryrefslogtreecommitdiffstats
path: root/wic/imx-uboot-bootpart.wks.in
diff options
context:
space:
mode:
authorPierre-Jean Texier <pjtexier@koncepto.io>2019-04-13 18:08:41 +0200
committerOtavio Salvador <otavio@ossystems.com.br>2019-04-14 12:31:18 -0300
commit0ef9809cc7317760f8e51d1dde8b16521e9fe1d5 (patch)
tree899b5c962ee63190cc5a23ee23b94306ff9ff816 /wic/imx-uboot-bootpart.wks.in
parentf07fbd00d4b6dff96dc771a683a6e32260c96561 (diff)
downloadmeta-freescale-0ef9809cc7317760f8e51d1dde8b16521e9fe1d5.tar.gz
wic: Fix image generation for i.MX with bootpart script
Some boards expects a specific binary name. Example : WaRP7 required the u-boot-dtb.imx file (instead of u-boot.imx). Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io> Signed-off-by: Joris Offouga <offougajoris@gmail.com>
Diffstat (limited to 'wic/imx-uboot-bootpart.wks.in')
-rw-r--r--wic/imx-uboot-bootpart.wks.in19
1 files changed, 19 insertions, 0 deletions
diff --git a/wic/imx-uboot-bootpart.wks.in b/wic/imx-uboot-bootpart.wks.in
new file mode 100644
index 00000000..8fe019c0
--- /dev/null
+++ b/wic/imx-uboot-bootpart.wks.in
@@ -0,0 +1,19 @@
1# short-description: Create SD card image with a boot partition
2# long-description:
3# Create an image that can be written onto a SD card using dd for use
4# with i.MX SoC family
5# It uses u-boot
6#
7# The disk layout used is:
8# - --------- -------------- --------------
9# | | u-boot | boot | rootfs |
10# - --------- -------------- --------------
11# ^ ^ ^ ^
12# | | | |
13# 0 1kiB 4MiB 16MiB + rootfs + IMAGE_EXTRA_SPACE (default 10MiB)
14#
15part u-boot --source rawcopy --sourceparams="file=${UBOOT_BINARY}" --ondisk mmcblk --no-table --align 1
16part /boot --source bootimg-partition --ondisk mmcblk --fstype=vfat --label boot --active --align 4096 --size 16
17part / --source rootfs --ondisk mmcblk --fstype=ext4 --label root --align 4096
18
19bootloader --ptable msdos