summaryrefslogtreecommitdiffstats
path: root/wic
diff options
context:
space:
mode:
authorDaiane Angolini <daiane.angolini@nxp.com>2019-01-10 14:21:20 -0200
committerDaiane Angolini <daiane.angolini@nxp.com>2019-01-10 14:54:39 -0200
commit9d1463c9af81edadf8c5a343a030555b6156f8cf (patch)
treead1d697cc82fb093827671be5da81a0b7d95814a /wic
parenta02a88de7e51fa177a1edfb67ae3ab7432e3befc (diff)
downloadmeta-freescale-9d1463c9af81edadf8c5a343a030555b6156f8cf.tar.gz
wic:mx8: Create wks file for imx8 family using imx-boot
imx8 family boards use u-boot as boot loader in addition to some other binaries. The final bootloader binary is gathered by mkimage into a file called imx-boot. Add the wks file to create the wic image tailored for imx8 family. Set the wks file as default for all imx8. Signed-off-by: Daiane Angolini <daiane.angolini@nxp.com>
Diffstat (limited to 'wic')
-rw-r--r--wic/imx-imx-boot-bootpart.wks20
1 files changed, 20 insertions, 0 deletions
diff --git a/wic/imx-imx-boot-bootpart.wks b/wic/imx-imx-boot-bootpart.wks
new file mode 100644
index 00000000..11b90492
--- /dev/null
+++ b/wic/imx-imx-boot-bootpart.wks
@@ -0,0 +1,20 @@
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 + other binaries gathered together on imx-boot file
6#
7# The disk layout used is:
8# - ---------- -------------- --------------
9# | | imx-boot | boot | rootfs |
10# - ---------- -------------- --------------
11# ^ ^ ^ ^
12# | | | |
13# 0 33kiB 4MiB 16MiB + rootfs + IMAGE_EXTRA_SPACE (default 10MiB)
14#
15part u-boot --source rawcopy --sourceparams="file=imx-boot" --ondisk mmcblk --no-table --align 33
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
20