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 /classes | |
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 'classes')
-rw-r--r-- | classes/image_types_fsl.bbclass | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/classes/image_types_fsl.bbclass b/classes/image_types_fsl.bbclass index 4709af95..e7627200 100644 --- a/classes/image_types_fsl.bbclass +++ b/classes/image_types_fsl.bbclass | |||
@@ -312,3 +312,17 @@ IMAGE_TYPEDEP_sdcard_append = " \ | |||
312 | ${@bb.utils.contains('IMAGE_FSTYPES', 'uboot-mxsboot-sdcard', 'uboot-mxsboot-sdcard', '', d)} \ | 312 | ${@bb.utils.contains('IMAGE_FSTYPES', 'uboot-mxsboot-sdcard', 'uboot-mxsboot-sdcard', '', d)} \ |
313 | ${@bb.utils.contains('IMAGE_FSTYPES', 'barebox-mxsboot-sdcard', 'barebox-mxsboot-sdcard', '', d)} \ | 313 | ${@bb.utils.contains('IMAGE_FSTYPES', 'barebox-mxsboot-sdcard', 'barebox-mxsboot-sdcard', '', d)} \ |
314 | " | 314 | " |
315 | |||
316 | # In case we are building for i.MX23 or i.MX28 we need to have the | ||
317 | # image stream built before the wic generation | ||
318 | do_image_wic[depends] += " \ | ||
319 | ${@bb.utils.contains('IMAGE_FSTYPES', 'uboot-mxsboot-sdcard', \ | ||
320 | '${IMAGE_BASENAME}:do_image_uboot_mxsboot_sdcard', '', d)} \ | ||
321 | " | ||
322 | |||
323 | # We need to apply a fixup inside of the partition table | ||
324 | IMAGE_CMD_wic_append_mxs() { | ||
325 | # Change partition type for mxs processor family | ||
326 | bbnote "Setting partition type to 0x53 as required for mxs' SoC family." | ||
327 | echo -n S | dd of=$out${IMAGE_NAME_SUFFIX}.wic bs=1 count=1 seek=450 conv=notrunc | ||
328 | } | ||