<?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 Changing kernel provider in Yocto doesn't update sdcard image in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Changing-kernel-provider-in-Yocto-doesn-t-update-sdcard-image/m-p/328720#M44245</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying out Yocto to build core-image-minimal for imx28evk. I was able to build with the linux-imx kernel provider (which builds a 2.6.35 kernel), and then switch to linux-fslc kernel provider (3.14.19 kernel). That seemed fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now I am trying to switch back to linux-imx kernel provider, to check some things with the 2.6.35 kernel. But when I write the sdcard image then boot, I find the sdcard image still contains the 3.14.19 kernel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14156619100812403" jivemacro_uid="_14156619100812403" modifiedtitle="true"&gt;
&lt;P&gt;bitbake -c cleansstate linux-fslc&lt;/P&gt;
&lt;P&gt;bitbake -c cleansstate linux-imx&lt;/P&gt;
&lt;P&gt;bitbake core-image-minimal&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But still the sdcard image contains the 3.14.19 kernel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had a closer look at what's in the build/tmp/deploy/images/imx28evk directory. Here is the latest .sdcard file, and the latest uImage file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14156619100756434" jivemacro_uid="_14156619100756434"&gt;
&lt;P&gt;-rw-r--r-- 1 craigm craigm 83886080 Nov 10 16:25 core-image-minimal-imx28evk-20141110052334.rootfs.sdcard&lt;/P&gt;
&lt;P&gt;-rw-r--r-- 2 craigm craigm&amp;nbsp; 2612944 Nov 10 17:13 uImage--2.6.35.3-r45-imx28evk-20141110060936.bin&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I check the uImage file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14156619100693394" jivemacro_uid="_14156619100693394"&gt;
&lt;P&gt;file uImage--2.6.35.3-r45-imx28evk-20141110060936.bin&lt;/P&gt;
&lt;P&gt;uImage--2.6.35.3-r45-imx28evk-20141110060936.bin: u-boot legacy uImage, Linux-2.6.35.3-maintain+yocto+gb, Linux/ARM, OS Kernel Image (Not compressed), 2612880 bytes, Mon Nov 10 17:12:44 2014, Load Address: 0x40008000, Entry Point: 0x40008000, Header CRC: 0x35886962, Data CRC: 0x37FEB8CE&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the uImage has been built fine. But it looks as though the core-image-minimal-imx28evk-xxxx.rootfs.sdcard has not been subsequently rebuilt. Perhaps the .sdcard file is only rebuilt if the root file system changes, but not if the kernel only changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To confirm this, I mount the SD card and check its contents, and I see the uImage still contains a 3.14.19 kernel:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14156619100556354" jivemacro_uid="_14156619100556354"&gt;
&lt;P&gt;file /media/craigm/Boot\ imx28e/uImage&lt;/P&gt;
&lt;P&gt;/media/craigm/Boot imx28e/uImage: u-boot legacy uImage, Linux-3.14.19-fslc+g00e4721, Linux/ARM, OS Kernel Image (Not compressed), 3586912 bytes, Mon Nov 10 12:10:21 2014, Load Address: 0x40008000, Entry Point: 0x40008000, Header CRC: 0x9CFC9D94, Data CRC: 0x7C476150&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to update the recipe that builds the .sdcard file, to ensure it will run after any kernel change? Meanwhile as a work-around, what is the command to manually re-run this step?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Nov 2014 23:24:13 GMT</pubDate>
    <dc:creator>CraigMcQueen</dc:creator>
    <dc:date>2014-11-10T23:24:13Z</dc:date>
    <item>
      <title>Changing kernel provider in Yocto doesn't update sdcard image</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Changing-kernel-provider-in-Yocto-doesn-t-update-sdcard-image/m-p/328720#M44245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying out Yocto to build core-image-minimal for imx28evk. I was able to build with the linux-imx kernel provider (which builds a 2.6.35 kernel), and then switch to linux-fslc kernel provider (3.14.19 kernel). That seemed fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now I am trying to switch back to linux-imx kernel provider, to check some things with the 2.6.35 kernel. But when I write the sdcard image then boot, I find the sdcard image still contains the 3.14.19 kernel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14156619100812403" jivemacro_uid="_14156619100812403" modifiedtitle="true"&gt;
&lt;P&gt;bitbake -c cleansstate linux-fslc&lt;/P&gt;
&lt;P&gt;bitbake -c cleansstate linux-imx&lt;/P&gt;
&lt;P&gt;bitbake core-image-minimal&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But still the sdcard image contains the 3.14.19 kernel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had a closer look at what's in the build/tmp/deploy/images/imx28evk directory. Here is the latest .sdcard file, and the latest uImage file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14156619100756434" jivemacro_uid="_14156619100756434"&gt;
&lt;P&gt;-rw-r--r-- 1 craigm craigm 83886080 Nov 10 16:25 core-image-minimal-imx28evk-20141110052334.rootfs.sdcard&lt;/P&gt;
&lt;P&gt;-rw-r--r-- 2 craigm craigm&amp;nbsp; 2612944 Nov 10 17:13 uImage--2.6.35.3-r45-imx28evk-20141110060936.bin&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I check the uImage file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14156619100693394" jivemacro_uid="_14156619100693394"&gt;
&lt;P&gt;file uImage--2.6.35.3-r45-imx28evk-20141110060936.bin&lt;/P&gt;
&lt;P&gt;uImage--2.6.35.3-r45-imx28evk-20141110060936.bin: u-boot legacy uImage, Linux-2.6.35.3-maintain+yocto+gb, Linux/ARM, OS Kernel Image (Not compressed), 2612880 bytes, Mon Nov 10 17:12:44 2014, Load Address: 0x40008000, Entry Point: 0x40008000, Header CRC: 0x35886962, Data CRC: 0x37FEB8CE&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the uImage has been built fine. But it looks as though the core-image-minimal-imx28evk-xxxx.rootfs.sdcard has not been subsequently rebuilt. Perhaps the .sdcard file is only rebuilt if the root file system changes, but not if the kernel only changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To confirm this, I mount the SD card and check its contents, and I see the uImage still contains a 3.14.19 kernel:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14156619100556354" jivemacro_uid="_14156619100556354"&gt;
&lt;P&gt;file /media/craigm/Boot\ imx28e/uImage&lt;/P&gt;
&lt;P&gt;/media/craigm/Boot imx28e/uImage: u-boot legacy uImage, Linux-3.14.19-fslc+g00e4721, Linux/ARM, OS Kernel Image (Not compressed), 3586912 bytes, Mon Nov 10 12:10:21 2014, Load Address: 0x40008000, Entry Point: 0x40008000, Header CRC: 0x9CFC9D94, Data CRC: 0x7C476150&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to update the recipe that builds the .sdcard file, to ensure it will run after any kernel change? Meanwhile as a work-around, what is the command to manually re-run this step?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 23:24:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Changing-kernel-provider-in-Yocto-doesn-t-update-sdcard-image/m-p/328720#M44245</guid>
      <dc:creator>CraigMcQueen</dc:creator>
      <dc:date>2014-11-10T23:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Changing kernel provider in Yocto doesn't update sdcard image</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Changing-kernel-provider-in-Yocto-doesn-t-update-sdcard-image/m-p/328721#M44246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be better to report this bug in the meta-fsl-arm mailing list.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 23:26:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Changing-kernel-provider-in-Yocto-doesn-t-update-sdcard-image/m-p/328721#M44246</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2014-11-10T23:26:24Z</dc:date>
    </item>
  </channel>
</rss>

