<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Overriding default image generation with yocto in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Overriding-default-image-generation-with-yocto/m-p/642160#M98020</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I stumbled across this post of yours where I aim to achieve a very similar goal to your question. &amp;nbsp;Did you end up finding a solution to your problem? &amp;nbsp;If so, could you please share your solution?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Aug 2017 01:31:15 GMT</pubDate>
    <dc:creator>brendanta</dc:creator>
    <dc:date>2017-08-21T01:31:15Z</dc:date>
    <item>
      <title>Overriding default image generation with yocto</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Overriding-default-image-generation-with-yocto/m-p/642156#M98016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been attempting to change the partitioning scheme implemented by default in meta-fsl-arm.&amp;nbsp; To do this simply There are only two lines I need to modify to create the image I desire in image_types_fsl.bbclass, but I know this is not the Yocto way of doing things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The two lines are:&lt;/P&gt;&lt;P&gt;Adding :&lt;/P&gt;&lt;P&gt;parted -s ${SDCARD} unit KiB mkpart primary $(expr&amp;nbsp; ${IMAGE_ROOTFS_ALIGNMENT} \+ ${BOOT_SPACE_ALIGNED} \+ $ROOTFS_SIZE) $(expr ${IMAGE_ROOTFS_ALIGNMENT} \+ ${BOOT_SPACE_ALIGNED} \+ $ROOTFS_SIZE \+ $ROOTFS_SIZE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to generate_imx_sdcard&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modifying:&lt;/P&gt;&lt;P&gt;SDCARD_SIZE=$(expr ${IMAGE_ROOTFS_ALIGNMENT} + ${BOOT_SPACE_ALIGNED} + $ROOTFS_SIZE + ${IMAGE_ROOTFS_ALIGNMENT})&lt;/P&gt;&lt;P&gt;to &lt;BR /&gt;&amp;nbsp;SDCARD_SIZE=$(expr ${IMAGE_ROOTFS_ALIGNMENT} + ${BOOT_SPACE_ALIGNED} + $ROOTFS_SIZE + ${IMAGE_ROOTFS_ALIGNMENT} + $ROOTFS_SIZE + ${IMAGE_ROOTFS_ALIGNMENT})&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in IMAGE_CMD_sdcard&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been attempting to somehow override these functions with functions in my layer with these modifications to do things the Yocto way, but am having trouble achieving this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had tried to append to the class with new versions of those two functions which caused built errors. As well as attempting to remove the classes via IMAGE_CLASSES_remove and replaced with my own version and overriding the functions in the class by having the functions in my own image_types_fsl.bbclass file.&amp;nbsp; These did not work.&amp;nbsp; Any advice as to how to proceed would be appreciated, thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2016 15:44:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Overriding-default-image-generation-with-yocto/m-p/642156#M98016</guid>
      <dc:creator>chrisratliff</dc:creator>
      <dc:date>2016-11-08T15:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Overriding default image generation with yocto</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Overriding-default-image-generation-with-yocto/m-p/642157#M98017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Chris Ratliff,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since these are all Yocto variables. I would recommend creating a recipe append in your new layer as you already did and making sure the priority of your layer is higher so the final assignment is taken into account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is information on how to create a new layer in the following document. Make sure that the append file is located on the same relative path on your new layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-331917"&gt;https://community.nxp.com/docs/DOC-331917&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps you can share the errors listed when trying to apply your patch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2016 16:18:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Overriding-default-image-generation-with-yocto/m-p/642157#M98017</guid>
      <dc:creator>gusarambula</dc:creator>
      <dc:date>2016-11-08T16:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Overriding default image generation with yocto</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Overriding-default-image-generation-with-yocto/m-p/642158#M98018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class=""&gt;&lt;P&gt;The error I receive when I attempted to create a .bbappend file was.&lt;/P&gt;&lt;PRE class=""&gt;&lt;CODE&gt;ERROR: No recipes available for:
&amp;nbsp; /home/cratliff/[...]/image_types_fsl.bbappend&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Which think is because I am unable to append to a class, I must append the recipe which includes the class. I unsuccessfully attempted this by creating both image_types_fsl.bbappend and image_types_fsl.bbclass files under meta-my-layer/classes.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With everything else I have done, it is not that I receive an error, but that anything I try to append or override in the class is ignored.&amp;nbsp; I am able to verify my layer is included by the inclusion of helloworld in the rootfs though.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I set the priority of my-layer to 9 as I saw the priority of meta-fsl-bsp-release was 8.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created the bbappend for the recipe 'fsl-image-gui' in the parallel path in my layer.&lt;/P&gt;&lt;P&gt;&amp;nbsp; meta-my-layer/imx/meta-sdk/recipes-fsl/images/fsl-image-gui.bbappend&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No error is produced, but the function runs from the original image-types-fsl instead of the modified version in the newly created fsl-image-gui.bbappend.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;running 'bitbake -e fsl-image-gui'&amp;nbsp; generates this tree: (reduced to show only relevant entries)&lt;/P&gt;&lt;P&gt;# conf/bitbake.conf includes:&lt;BR /&gt;#&amp;nbsp;&amp;nbsp; /home/cratliff/fsl-community-bsp/sources/meta-fsl-arm/conf/machine/imx6qsabresd.conf includes:&lt;BR /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /home/cratliff/fsl-community-bsp/sources/meta-fsl-arm/conf/machine/include/imx6sabresd-common.inc includes:&lt;BR /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /home/cratliff/fsl-community-bsp/sources/meta-fsl-arm/conf/machine/include/imx-base.inc includes:&lt;BR /&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /home/cratliff/fsl-community-bsp/sources/meta-fsl-arm/conf/machine/include/fsl-default-settings.inc&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with fsl-default-settings.inc being where image-types-fsl is added to the IMAGE_CLASSES variables.&lt;/P&gt;&lt;P&gt;I was able to successfully to IMAGE_CLASSES_remove and then add my own modified version of the class file by placing those commands in a .conf file instead of my&amp;nbsp; my-recipe.bb or image-types-fsl.bbappends, but this still does not seem like the ideal way to change the image generated as it requires copying and modifying a file from an fsl layer.&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2016 19:02:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Overriding-default-image-generation-with-yocto/m-p/642158#M98018</guid>
      <dc:creator>chrisratliff</dc:creator>
      <dc:date>2016-11-08T19:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Overriding default image generation with yocto</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Overriding-default-image-generation-with-yocto/m-p/642159#M98019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Chris Ratliff,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’m glad to hear you had a workaround but I agree it’s not the most elegant implementation possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the problem may be that you are appending a class file and I’m not sure this is valid, at least I haven’t seen it in practice. I would recommend trying to just place the duplicated (and updated) class on your layer. Since it has a higher priority it should take this class and not the original one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may alternatively do a bbappend for the image recipe using the class rather than the class itself. Seems that this scenario wouldn’t have troubles in your current configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 19:30:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Overriding-default-image-generation-with-yocto/m-p/642159#M98019</guid>
      <dc:creator>gusarambula</dc:creator>
      <dc:date>2016-11-22T19:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Overriding default image generation with yocto</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Overriding-default-image-generation-with-yocto/m-p/642160#M98020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I stumbled across this post of yours where I aim to achieve a very similar goal to your question. &amp;nbsp;Did you end up finding a solution to your problem? &amp;nbsp;If so, could you please share your solution?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 01:31:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Overriding-default-image-generation-with-yocto/m-p/642160#M98020</guid>
      <dc:creator>brendanta</dc:creator>
      <dc:date>2017-08-21T01:31:15Z</dc:date>
    </item>
  </channel>
</rss>

