diff options
author | Daiane Angolini <daiane.angolini@nxp.com> | 2019-01-10 14:21:20 -0200 |
---|---|---|
committer | Daiane Angolini <daiane.angolini@nxp.com> | 2019-01-10 14:54:39 -0200 |
commit | 9d1463c9af81edadf8c5a343a030555b6156f8cf (patch) | |
tree | ad1d697cc82fb093827671be5da81a0b7d95814a | |
parent | a02a88de7e51fa177a1edfb67ae3ab7432e3befc (diff) | |
download | meta-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>
-rw-r--r-- | conf/machine/include/imx-base.inc | 3 | ||||
-rw-r--r-- | wic/imx-imx-boot-bootpart.wks | 20 |
2 files changed, 23 insertions, 0 deletions
diff --git a/conf/machine/include/imx-base.inc b/conf/machine/include/imx-base.inc index 572e8e5e..005b71e1 100644 --- a/conf/machine/include/imx-base.inc +++ b/conf/machine/include/imx-base.inc | |||
@@ -301,7 +301,10 @@ WKS_FILE_DEPENDS ?= " \ | |||
301 | bmap-tools-native \ | 301 | bmap-tools-native \ |
302 | " | 302 | " |
303 | 303 | ||
304 | WKS_FILE_DEPENDS_mx8 += "imx-boot" | ||
305 | |||
304 | SOC_DEFAULT_WKS_FILE ?= "imx-uboot-bootpart.wks" | 306 | SOC_DEFAULT_WKS_FILE ?= "imx-uboot-bootpart.wks" |
307 | SOC_DEFAULT_WKS_FILE_mx8 ?= "imx-imx-boot-bootpart.wks" | ||
305 | SOC_DEFAULT_WKS_FILE_mxs ?= "imx-uboot-mxs-bootpart.wks.in" | 308 | SOC_DEFAULT_WKS_FILE_mxs ?= "imx-uboot-mxs-bootpart.wks.in" |
306 | 309 | ||
307 | WKS_FILE ?= "${SOC_DEFAULT_WKS_FILE}" | 310 | WKS_FILE ?= "${SOC_DEFAULT_WKS_FILE}" |
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 | # | ||
15 | part u-boot --source rawcopy --sourceparams="file=imx-boot" --ondisk mmcblk --no-table --align 33 | ||
16 | part /boot --source bootimg-partition --ondisk mmcblk --fstype=vfat --label boot --active --align 4096 --size 16 | ||
17 | part / --source rootfs --ondisk mmcblk --fstype=ext4 --label root --align 4096 | ||
18 | |||
19 | bootloader --ptable msdos | ||
20 | |||