diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2018-04-26 13:52:55 -0300 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2018-07-03 18:41:08 -0300 |
commit | ecdd93874f434fc200c811392cc83f255f26a4c9 (patch) | |
tree | 492db8c050c6a1dacf6ff68decf2589027c65553 /wic/imx-uboot-mxs.wks.in | |
parent | e9820a5de4a32b80649946cdacfec9ffa9e9fe33 (diff) | |
download | meta-freescale-ecdd93874f434fc200c811392cc83f255f26a4c9.tar.gz |
wic: Fix image generation for i.MX MXS SoC family
The image needs to use the U-Boot generated, for the uSD card, so a
dependency on that must be added to ensure the file is available prior
'wic' uses it.
Besides that, the fstype needs to be changed so it sets the partition
mark allowing the bootrom to find it.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'wic/imx-uboot-mxs.wks.in')
-rw-r--r-- | wic/imx-uboot-mxs.wks.in | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/wic/imx-uboot-mxs.wks.in b/wic/imx-uboot-mxs.wks.in new file mode 100644 index 00000000..44b6f931 --- /dev/null +++ b/wic/imx-uboot-mxs.wks.in | |||
@@ -0,0 +1,18 @@ | |||
1 | # short-description: Create SD card image without 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 | rootfs | | ||
10 | # - --------- -------------- | ||
11 | # ^ ^ ^ ^ | ||
12 | # | | | | | ||
13 | # 0 1kiB 4MiB + rootfs + IMAGE_EXTRA_SPACE (default 10MiB) | ||
14 | # | ||
15 | part u-boot --source rawcopy --sourceparams="file=${IMAGE_NAME}.rootfs.uboot-mxsboot-sdcard" --ondisk mmcblk --align 1024 | ||
16 | part / --source rootfs --ondisk mmcblk --fstype=ext4 --label root --align 4096 | ||
17 | |||
18 | bootloader --ptable msdos | ||