<?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: LTIB: adding extra free space in rootfs.jffs2 without losing compression in Other NXP Products</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/LTIB-adding-extra-free-space-in-rootfs-jffs2-without-losing/m-p/175113#M1201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply!&lt;/P&gt;&lt;P&gt;So I can have a rootfs.jffs2 file of 15 MB, put it in a 30MB partition and have 15MB of free space?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be wonderful! I'll try.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bye&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Apr 2009 14:24:23 GMT</pubDate>
    <dc:creator>admin</dc:creator>
    <dc:date>2009-04-24T14:24:23Z</dc:date>
    <item>
      <title>LTIB: adding extra free space in rootfs.jffs2 without losing compression</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/LTIB-adding-extra-free-space-in-rootfs-jffs2-without-losing/m-p/175111#M1199</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;I use LTIB to build a jffs2 filesystem for a Linux iMX31 project with 32MB of flash available.&lt;/P&gt;&lt;P&gt;Launching ltib leaving at the default value (DEPLOYMENT_PADDING_KB = 0) the option "Allocate extra space (Kbytes)", my original rootfs is successfully compressed in a rootfs.jffs2 file, reducing the size from about 40MB to about 15MB.&lt;/P&gt;&lt;P&gt;But doing that, I cannot create a new file because the filesystem does not have any free space left.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use the above mentioned option adding, for example, 1000KB in order to obtain a 15+1MB filesystem, I obtain a rootfs.jffs2 file of about 41MB!&lt;/P&gt;&lt;P&gt;In fact, reading in the ltib/bin/Ltibutils.pm file, if I set a value different from 0, the --pad=X option is added to the mkfs.jffs2 command, where X is $fs_size + DEPLOYMENT_PADDING_KB, so it creates a file of that dimension and apparently with no compression.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, how can I add extra free space to my filesystem without losing compression?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;M.&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by melcataclysm on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-04-23&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;05:07 PM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2009 23:05:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/LTIB-adding-extra-free-space-in-rootfs-jffs2-without-losing/m-p/175111#M1199</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2009-04-23T23:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: LTIB: adding extra free space in rootfs.jffs2 without losing compression</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/LTIB-adding-extra-free-space-in-rootfs-jffs2-without-losing/m-p/175112#M1200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The approach I use is to specify the size of the rootfs (taking in consideration the extra space needed) into Redboot:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV align="left"&gt;&lt;SPAN class="389323420-22042009"&gt;&lt;FONT color="#0000ff" face="Arial" size="2"&gt;fis create -l 0x01E00000 root&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV align="left"&gt;&lt;SPAN class="389323420-22042009"&gt;&lt;FONT color="#0000ff" face="Arial" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV align="left"&gt;&lt;SPAN class="389323420-22042009"&gt;&lt;FONT color="#0000ff" face="Arial" size="2"&gt;This will create a 30MB roots.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV align="left"&gt;&lt;SPAN class="389323420-22042009"&gt;&lt;FONT color="#0000ff" face="Arial" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fabio Estevam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2009 01:12:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/LTIB-adding-extra-free-space-in-rootfs-jffs2-without-losing/m-p/175112#M1200</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2009-04-24T01:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: LTIB: adding extra free space in rootfs.jffs2 without losing compression</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/LTIB-adding-extra-free-space-in-rootfs-jffs2-without-losing/m-p/175113#M1201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply!&lt;/P&gt;&lt;P&gt;So I can have a rootfs.jffs2 file of 15 MB, put it in a 30MB partition and have 15MB of free space?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be wonderful! I'll try.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bye&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2009 14:24:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/LTIB-adding-extra-free-space-in-rootfs-jffs2-without-losing/m-p/175113#M1201</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2009-04-24T14:24:23Z</dc:date>
    </item>
  </channel>
</rss>

