<?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: How to use uncompressed kernel boot.img in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-uncompressed-kernel-boot-img/m-p/368971#M52606</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roopesh,&lt;/P&gt;&lt;P&gt;You can use the Image with the followed commands:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mkbootimg&amp;nbsp; --kernel Image --ramdisk ramdisk.gz --cmdline "console=ttymxc1,115200 init=/init video=mxcfb0 fb0base=0x27b00000 fbmem=28M vmalloc=400M androidboot.console=ttymxc0 androidboot.hardware=freescale" --base 0x10800000 --output boot.img&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Nov 2014 09:08:47 GMT</pubDate>
    <dc:creator>qiang_li-mpu_se</dc:creator>
    <dc:date>2014-11-28T09:08:47Z</dc:date>
    <item>
      <title>How to use uncompressed kernel boot.img</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-uncompressed-kernel-boot-img/m-p/368968#M52603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I am trying to optimize the booting time of&amp;nbsp; android_kk4.4.2 on imx6Q (MCIMX6Q-SDP) demo board. I heard that an uncompressed kernel will give more performance than a compressed kernel. So &lt;/SPAN&gt;I want to use an uncompressed kernel image instead of compressed kernel as boot.img. Can anyone please tell me the necessary configuration changes to do the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Roopesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2014 12:37:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-uncompressed-kernel-boot-img/m-p/368968#M52603</guid>
      <dc:creator>rkp</dc:creator>
      <dc:date>2014-11-25T12:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to use uncompressed kernel boot.img</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-uncompressed-kernel-boot-img/m-p/368969#M52604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I heard that an uncompressed kernel will give more performance than a compressed kernel. &lt;/SPAN&gt;&lt;/P&gt;

&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not necessarily. Here's a quick chart of boot times using OMAP4 which has a comparable core: &lt;A href="http://free-electrons.com/blog/arm-xz-kernel-decompression-benchmarks/" title="http://free-electrons.com/blog/arm-xz-kernel-decompression-benchmarks/"&gt;Linux on ARM: xz kernel decompression benchmarks&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copy-pasting the important part:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Compression&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Size&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Loading time&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Uncompressing time&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Total time&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;gzip&lt;/TD&gt;&lt;TD&gt;3355768&lt;/TD&gt;&lt;TD&gt;2.213376&lt;/TD&gt;&lt;TD&gt;0.501500&lt;/TD&gt;&lt;TD&gt;2.714876&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;lzma&lt;/TD&gt;&lt;TD&gt;2488144&lt;/TD&gt;&lt;TD&gt;1.647410&lt;/TD&gt;&lt;TD&gt;1.399552&lt;/TD&gt;&lt;TD&gt;3.046962&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;xz&lt;/TD&gt;&lt;TD&gt;2366192&lt;/TD&gt;&lt;TD&gt;1.566978&lt;/TD&gt;&lt;TD&gt;1.299516&lt;/TD&gt;&lt;TD&gt;2.866494&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;lzo&lt;/TD&gt;&lt;TD&gt;3697840&lt;/TD&gt;&lt;TD&gt;2.471497&lt;/TD&gt;&lt;TD&gt;0.160596&lt;/TD&gt;&lt;TD&gt;2.632093&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;None&lt;/TD&gt;&lt;TD&gt;6965644&lt;/TD&gt;&lt;TD&gt;4.626749&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;4.626749&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see the uncompressed kernel had a worse boot time than any of the compressed kernels. This is because reading more data from storage is generally slower than uncompression that happens in memory. Even if you were booting from a fast storage device and were using a particularly slow compression algorithm, the time savings might be minimal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2014 18:57:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-uncompressed-kernel-boot-img/m-p/368969#M52604</guid>
      <dc:creator>KursadOney</dc:creator>
      <dc:date>2014-11-25T18:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to use uncompressed kernel boot.img</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-uncompressed-kernel-boot-img/m-p/368970#M52605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Oney,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the reply. I agreed this but I just want to try out the uncompressed kernel version also. Actually I don't know which one is good, but after my experiment I can take a decision depending on the result. My problem is how to use an uncompressed kernel as boot.img and the necessary configuration changes to do the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Roopesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 04:29:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-uncompressed-kernel-boot-img/m-p/368970#M52605</guid>
      <dc:creator>rkp</dc:creator>
      <dc:date>2014-11-26T04:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to use uncompressed kernel boot.img</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-uncompressed-kernel-boot-img/m-p/368971#M52606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roopesh,&lt;/P&gt;&lt;P&gt;You can use the Image with the followed commands:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mkbootimg&amp;nbsp; --kernel Image --ramdisk ramdisk.gz --cmdline "console=ttymxc1,115200 init=/init video=mxcfb0 fb0base=0x27b00000 fbmem=28M vmalloc=400M androidboot.console=ttymxc0 androidboot.hardware=freescale" --base 0x10800000 --output boot.img&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2014 09:08:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-uncompressed-kernel-boot-img/m-p/368971#M52606</guid>
      <dc:creator>qiang_li-mpu_se</dc:creator>
      <dc:date>2014-11-28T09:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to use uncompressed kernel boot.img</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-uncompressed-kernel-boot-img/m-p/368972#M52607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Qiang Li,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the reply. Which are the files I need to edit to implement this ? &lt;/P&gt;&lt;P&gt;I checked build/core/Makefile, but can't able to locate exact files. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Roopesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2014 10:38:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-uncompressed-kernel-boot-img/m-p/368972#M52607</guid>
      <dc:creator>rkp</dc:creator>
      <dc:date>2014-11-28T10:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to use uncompressed kernel boot.img</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-uncompressed-kernel-boot-img/m-p/368973#M52608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can edit the file "/build/core/Makefile", replace the zImage to Image:&lt;/P&gt;&lt;P&gt;KERNEL_ZIMAGE&amp;nbsp;&amp;nbsp;&amp;nbsp; := kernel_imx/arch/arm/boot/&lt;STRONG&gt;zImage&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 02:12:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-uncompressed-kernel-boot-img/m-p/368973#M52608</guid>
      <dc:creator>qiang_li-mpu_se</dc:creator>
      <dc:date>2014-12-01T02:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to use uncompressed kernel boot.img</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-uncompressed-kernel-boot-img/m-p/368974#M52609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I just edited the &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;KERNEL_ZIMAGE&amp;nbsp;&amp;nbsp;&amp;nbsp; := kernel_imx/arch/arm/boot/&lt;/SPAN&gt;Image line in &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;"/build/core/Makefile.Then I can able to build the uncompressed kernel, but I am&amp;nbsp; not able to flash it to the board. I noticed that my new boot.img&amp;nbsp; almost doubled in size compared to compressed one ( 5.09 MB -&amp;gt; 10.1 MB). I suspect the memory area assigned to load the boot.img may be not enough. This may be the root cause of this issue. I don't know the exact file and place to edit the memory size.&amp;nbsp; Please help me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Roopesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 06:53:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-uncompressed-kernel-boot-img/m-p/368974#M52609</guid>
      <dc:creator>rkp</dc:creator>
      <dc:date>2014-12-05T06:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to use uncompressed kernel boot.img</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-uncompressed-kernel-boot-img/m-p/368975#M52610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roopesh, in BSP user guider "i.MXAndroidKK4.4.2_1.0.0GAUserGuide.html", there is partition table, the default size for boot.img partition is 8MB, so you need increase it for your big image.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 08:30:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-uncompressed-kernel-boot-img/m-p/368975#M52610</guid>
      <dc:creator>qiang_li-mpu_se</dc:creator>
      <dc:date>2014-12-05T08:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to use uncompressed kernel boot.img</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-uncompressed-kernel-boot-img/m-p/368976#M52611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Qiang Li,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just edited the "Mfgtools-Rel-13.01.00_ER_MX6Q_UPDATER\Profiles\MX6Q Linux Update\OS Firmware\mksdcard-android.sh" file as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initially:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# partition size in MB&lt;/P&gt;&lt;P&gt;BOOTLOAD_RESERVE=8&lt;/P&gt;&lt;P&gt;BOOT_ROM_SIZE=8&lt;/P&gt;&lt;P&gt;SYSTEM_ROM_SIZE=512&lt;/P&gt;&lt;P&gt;CACHE_SIZE=512&lt;/P&gt;&lt;P&gt;RECOVERY_ROM_SIZE=8&lt;/P&gt;&lt;P&gt;VENDER_SIZE=8&lt;/P&gt;&lt;P&gt;MISC_SIZE=8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modified:&lt;/P&gt;&lt;P&gt;# partition size in MB&lt;/P&gt;&lt;P&gt;BOOTLOAD_RESERVE=8&lt;/P&gt;&lt;P&gt;BOOT_ROM_SIZE=12&lt;/P&gt;&lt;P&gt;SYSTEM_ROM_SIZE=512&lt;/P&gt;&lt;P&gt;CACHE_SIZE=512&lt;/P&gt;&lt;P&gt;RECOVERY_ROM_SIZE=12&lt;/P&gt;&lt;P&gt;VENDER_SIZE=8&lt;/P&gt;&lt;P&gt;MISC_SIZE=8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it didn't work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 09:38:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-uncompressed-kernel-boot-img/m-p/368976#M52611</guid>
      <dc:creator>rkp</dc:creator>
      <dc:date>2014-12-05T09:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to use uncompressed kernel boot.img</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-uncompressed-kernel-boot-img/m-p/368977#M52612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roopesh,&lt;/P&gt;&lt;P&gt;If you are using MFGTool, I think you should increase the two partitions to 12MB. Recovery.img was also burned by it, and its size was increased too. If you still fail to make it work, please attach the board serial log here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BOOTLOAD_RESERVE=8&lt;/P&gt;&lt;P&gt;BOOT_ROM_SIZE=8&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 10:56:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-uncompressed-kernel-boot-img/m-p/368977#M52612</guid>
      <dc:creator>qiang_li-mpu_se</dc:creator>
      <dc:date>2014-12-05T10:56:43Z</dc:date>
    </item>
  </channel>
</rss>

