<?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: Yocto WIC image creator with fixed partition sizes in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-WIC-image-creator-with-fixed-partition-sizes/m-p/500089#M80799</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Adrian McGrath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The size option defines a minimum partition size, not the total size of the partition. If the size parameter is smaller than the source the partition will have the size of the source.&lt;/P&gt;&lt;P&gt;You may use the extra-space (to add extra space at the end of the space filled by the content of the partition) or overhead-factor (to multiply the size of the partition by this factor, which has to be at least 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These parameters are similar to the ones used in the .sdcard format used by bitbake, so you may find the following document useful:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-105521"&gt;Guide to the .sdcard format&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the latest revisions of wic you may use the the parameters --grow&amp;nbsp; and&amp;nbsp; --maxsize, the first tells the partition to grow to fill available space up to the maximum size setting, which is set by the latter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can see how they work on the Kickstart documentation (below), but I haven’t tested it. It is probably not available on the BSP Release I’m using, you may want to check on the latest Community BSP Branch.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/rhinstaller/pykickstart/blob/master/docs/kickstart-docs.rst#id36"&gt;https://github.com/rhinstaller/pykickstart/blob/master/docs/kickstart-docs.rst#id36&lt;/A&gt;&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>Wed, 20 Apr 2016 16:25:43 GMT</pubDate>
    <dc:creator>gusarambula</dc:creator>
    <dc:date>2016-04-20T16:25:43Z</dc:date>
    <item>
      <title>Yocto WIC image creator with fixed partition sizes</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-WIC-image-creator-with-fixed-partition-sizes/m-p/500088#M80798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've successfully used Yocto 'wic' to create an image for my imx6 based system with 4x partitions {Boot, Rootfs, Rootfs-bkup, Userdata}. My .wks file is shown below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3334ca; font-family: courier new,courier; font-size: 8pt;"&gt;# Image Creator .wks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3334ca; font-family: courier new,courier; font-size: 8pt;"&gt;part u-boot --source rawcopy --sourceparams="file=u-boot.imx" --ondisk mmcblk --no-table --align 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3334ca; font-family: courier new,courier; font-size: 8pt;"&gt;# Boot partition&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3334ca; font-family: courier new,courier; font-size: 8pt;"&gt;part /boot --source bootimg-partition --ondisk mmcblk --fstype=vfat --label boot --active --align 4096 --size 8M --extra-space 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3334ca; font-family: courier new,courier; font-size: 8pt;"&gt;# Rootfs partition&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3334ca; font-family: courier new,courier; font-size: 8pt;"&gt;part / --source rootfs --ondisk mmcblk --fstype=ext3 --label root --align 4096 &lt;SPAN style="color: #e23d39;"&gt;--size 1024M&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3334ca; font-family: courier new,courier; font-size: 8pt;"&gt;# Rootfs backup partition&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3334ca; font-family: courier new,courier; font-size: 8pt;"&gt;part /rootfs-bkup --source rootfs --ondisk mmcblk --fstype=ext3 --label rootfs-bkup --align 4096 &lt;SPAN style="color: #e23d39;"&gt;--size 1024M&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3334ca; font-family: courier new,courier; font-size: 8pt;"&gt;# User data partition&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3334ca; font-family: courier new,courier; font-size: 8pt;"&gt;part /userdata --ondisk mmcblk --fstype=vfat --label userdata --align 4096 &lt;SPAN style="color: #e23d39;"&gt;--size 1024M&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The .wks file above uses "--size 1024M". I had expected this to create partitions with a fixed partition size of 1024M. However, it appears that this actually adds 1024M to the size of the ext3 rootfs images created by Yocto.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;My question is, how can I edit my .wks file to create 3x fixed partitions of size 1024M?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adrian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 07:19:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-WIC-image-creator-with-fixed-partition-sizes/m-p/500088#M80798</guid>
      <dc:creator>adrianmcgrath</dc:creator>
      <dc:date>2016-04-13T07:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto WIC image creator with fixed partition sizes</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-WIC-image-creator-with-fixed-partition-sizes/m-p/500089#M80799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Adrian McGrath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The size option defines a minimum partition size, not the total size of the partition. If the size parameter is smaller than the source the partition will have the size of the source.&lt;/P&gt;&lt;P&gt;You may use the extra-space (to add extra space at the end of the space filled by the content of the partition) or overhead-factor (to multiply the size of the partition by this factor, which has to be at least 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These parameters are similar to the ones used in the .sdcard format used by bitbake, so you may find the following document useful:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-105521"&gt;Guide to the .sdcard format&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the latest revisions of wic you may use the the parameters --grow&amp;nbsp; and&amp;nbsp; --maxsize, the first tells the partition to grow to fill available space up to the maximum size setting, which is set by the latter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can see how they work on the Kickstart documentation (below), but I haven’t tested it. It is probably not available on the BSP Release I’m using, you may want to check on the latest Community BSP Branch.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/rhinstaller/pykickstart/blob/master/docs/kickstart-docs.rst#id36"&gt;https://github.com/rhinstaller/pykickstart/blob/master/docs/kickstart-docs.rst#id36&lt;/A&gt;&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>Wed, 20 Apr 2016 16:25:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-WIC-image-creator-with-fixed-partition-sizes/m-p/500089#M80799</guid>
      <dc:creator>gusarambula</dc:creator>
      <dc:date>2016-04-20T16:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Yocto WIC image creator with fixed partition sizes</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Yocto-WIC-image-creator-with-fixed-partition-sizes/m-p/500090#M80800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks for the information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll have a look over those links and try some of the parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 06:52:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Yocto-WIC-image-creator-with-fixed-partition-sizes/m-p/500090#M80800</guid>
      <dc:creator>adrianmcgrath</dc:creator>
      <dc:date>2016-04-21T06:52:30Z</dc:date>
    </item>
  </channel>
</rss>

