<?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 Linux: kernel vermagic not corresponding in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Linux-kernel-vermagic-not-corresponding/m-p/242919#M20574</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sirs,&lt;/P&gt;&lt;P&gt;i tried to compile a customized kernel module for the BSP, but there is something strange: when i try to load module with insmod it says "invalid module format".&lt;/P&gt;&lt;P&gt;I discovered that if i run from arm command 'uname -r' version is as following:&lt;/P&gt;&lt;P&gt;3.0.35-2026-geaaf30e&lt;/P&gt;&lt;P&gt;but if i check on the /lib/modules/ folder ltib generated &lt;/P&gt;&lt;P&gt;3.0.35-2310-gc27cb38&lt;/P&gt;&lt;P&gt;how it is possible? I'm building the module using the properly environment variables and the kernel source used is ./ltib/rpm/BUILD/linux-3.0.35/ so i cannot figure out how it can be...problem is also verified when i try command as following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;root@freescale /lib/modules$ modinfo mymodule.ko&lt;/P&gt;&lt;P&gt;modinfo: can't open '/lib/modules/3.0.35-2026-geaaf30e/modules.dep': No such file or directory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If any idea please let me know, thanks for support!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Miroglio Paolo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Mar 2013 15:12:24 GMT</pubDate>
    <dc:creator>mirogliopaolo</dc:creator>
    <dc:date>2013-03-27T15:12:24Z</dc:date>
    <item>
      <title>Linux: kernel vermagic not corresponding</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Linux-kernel-vermagic-not-corresponding/m-p/242919#M20574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sirs,&lt;/P&gt;&lt;P&gt;i tried to compile a customized kernel module for the BSP, but there is something strange: when i try to load module with insmod it says "invalid module format".&lt;/P&gt;&lt;P&gt;I discovered that if i run from arm command 'uname -r' version is as following:&lt;/P&gt;&lt;P&gt;3.0.35-2026-geaaf30e&lt;/P&gt;&lt;P&gt;but if i check on the /lib/modules/ folder ltib generated &lt;/P&gt;&lt;P&gt;3.0.35-2310-gc27cb38&lt;/P&gt;&lt;P&gt;how it is possible? I'm building the module using the properly environment variables and the kernel source used is ./ltib/rpm/BUILD/linux-3.0.35/ so i cannot figure out how it can be...problem is also verified when i try command as following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;root@freescale /lib/modules$ modinfo mymodule.ko&lt;/P&gt;&lt;P&gt;modinfo: can't open '/lib/modules/3.0.35-2026-geaaf30e/modules.dep': No such file or directory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If any idea please let me know, thanks for support!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Miroglio Paolo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 15:12:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Linux-kernel-vermagic-not-corresponding/m-p/242919#M20574</guid>
      <dc:creator>mirogliopaolo</dc:creator>
      <dc:date>2013-03-27T15:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Linux: kernel vermagic not corresponding</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Linux-kernel-vermagic-not-corresponding/m-p/242920#M20575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paolo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you recompile the kernel separately (not using LTIB), I believe you get the issue you are observing. You got two options&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Do all the kernel changes and run just './ltib' (not ./ltib -p kernel -sc*) and use the rootfs and rootfs/boot/uImage&lt;/P&gt;&lt;P&gt;2. Compile your kernel, either manually (makes) or with ltib (as show above) BUT you need to rename /lib/modules based on the uname -a string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know if it works for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 16:24:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Linux-kernel-vermagic-not-corresponding/m-p/242920#M20575</guid>
      <dc:creator>LeonardoSandova</dc:creator>
      <dc:date>2013-03-27T16:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Linux: kernel vermagic not corresponding</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Linux-kernel-vermagic-not-corresponding/m-p/242921#M20576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Leo,&lt;/P&gt;&lt;P&gt;i'm not compiling the kernel separately but using the ltib built-in kernel 3.0.35.&lt;/P&gt;&lt;P&gt;Problem still persists, even if i rebuilt kernel, lib folder on rootfs is created with a vermagic, while system have another.&lt;/P&gt;&lt;P&gt;Renaming /lib/modules folder is not a solution, because all .ko modules have the wrong vermagic and claims the invalid module format.&lt;/P&gt;&lt;P&gt;I'll continue to investigate...Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paolo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2013 07:45:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Linux-kernel-vermagic-not-corresponding/m-p/242921#M20576</guid>
      <dc:creator>mirogliopaolo</dc:creator>
      <dc:date>2013-03-28T07:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Linux: kernel vermagic not corresponding</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Linux-kernel-vermagic-not-corresponding/m-p/242922#M20577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Leo,&lt;/P&gt;&lt;P&gt;sorry if i didn't replied anymore, problem was solved days ago.&lt;/P&gt;&lt;P&gt;I thought kernel must be placed in /boot but with my configuration it must be stored before partition by using dd.&lt;/P&gt;&lt;P&gt;Now vermagic works...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2013 06:17:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Linux-kernel-vermagic-not-corresponding/m-p/242922#M20577</guid>
      <dc:creator>mirogliopaolo</dc:creator>
      <dc:date>2013-04-05T06:17:16Z</dc:date>
    </item>
  </channel>
</rss>

