<?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>i.MX Processors中的主题 Re: Invalid module format while loading driver in imx6</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Invalid-module-format-while-loading-driver-in-imx6/m-p/663768#M101949</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/mariusviorelgrigoras-b32331"&gt;mariusviorelgrigoras-b32331&lt;/A&gt;‌&amp;nbsp;&lt;/P&gt;&lt;P&gt;I regenerated the linux and kernel module from the same build, the driver is loading. But the problem is I want to use the USB OTG port which we use for mfgtool we make it as gadget file system. And we cant use it as gadget HID. My requirement is to use the same OTG as gadget HID.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In kernel config I should make the USB gadget as gadget Filesystem only If i make other than that I cant use mfgtool for flashing. Is there any work around for this in kernel config&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Apr 2017 10:39:00 GMT</pubDate>
    <dc:creator>chandraevolute</dc:creator>
    <dc:date>2017-04-13T10:39:00Z</dc:date>
    <item>
      <title>Invalid module format while loading driver in imx6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Invalid-module-format-while-loading-driver-in-imx6/m-p/663761#M101942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to load module through modprobe. I am getting below error&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:root@imx6ulevk:/lib/modules/3.14.38-6UL_ga+ge4944a5/kernel/drivers/usb/gadget"&gt;root@imx6ulevk:/lib/modules/3.14.38-6UL_ga+ge4944a5/kernel/drivers/usb/gadget# &lt;/A&gt;&lt;STRONG&gt;modprobe libcomposite&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;libcomposite: version magic '3.14.38-6UL_ga+ge4944a5 SMP preempt mod_unload modversions ARMv7 p2v8 ' should be '3.14.38-6UL_ga+ge4944a5 preempt mod_unload ARMv7 p2v8 '&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;modprobe: can't load module libcomposite (kernel/drivers/usb/gadget/libcomposite.ko): invalid module format&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below is the output of uname -r&amp;nbsp;&lt;/P&gt;&lt;P&gt;root@imx6ulevk:/lib/modules/3.14.38-6UL_ga+ge4944a5/kernel/drivers/usb/gadget# uname -r&lt;BR /&gt;&lt;STRONG&gt;3.14.38-6UL_ga+ge4944a5&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why is the error coming and can anyone give a solution for this&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2017 05:29:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Invalid-module-format-while-loading-driver-in-imx6/m-p/663761#M101942</guid>
      <dc:creator>chandraevolute</dc:creator>
      <dc:date>2017-04-11T05:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid module format while loading driver in imx6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Invalid-module-format-while-loading-driver-in-imx6/m-p/663762#M101943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi chandra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reason may be that &amp;nbsp;libcomposite was compiled in other kernel version, more details can be found in&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Funix.stackexchange.com%2Fquestions%2F170503%2Finsmod-error-could-not-insert-module-8188eu-ko-invalid-module-format" rel="nofollow" target="_blank"&gt;http://unix.stackexchange.com/questions/170503/insmod-error-could-not-insert-module-8188eu-ko-invalid-module-format&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.tldp.org/LDP/lkmpg/2.6/html/x380.html"&gt;http://www.tldp.org/LDP/lkmpg/2.6/html/x380.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2017 09:15:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Invalid-module-format-while-loading-driver-in-imx6/m-p/663762#M101943</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-04-11T09:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid module format while loading driver in imx6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Invalid-module-format-while-loading-driver-in-imx6/m-p/663763#M101944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi igor&lt;/P&gt;&lt;P&gt;you can see my uname -r output the kernel versions and driver mod info are same&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2017 09:44:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Invalid-module-format-while-loading-driver-in-imx6/m-p/663763#M101944</guid>
      <dc:creator>chandraevolute</dc:creator>
      <dc:date>2017-04-11T09:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid module format while loading driver in imx6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Invalid-module-format-while-loading-driver-in-imx6/m-p/663764#M101945</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;What's the output for modinfo libcomposite.ko ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Naturally, in most of the cases, this error is complaining about different version magic encapsulated inside of kernel module and compared with the one from kernel.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to use --force-vermagic as parameter for modprobe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--force-vermagic&lt;BR /&gt; Every module contains a small string containing important information, such as the kernel and compiler versions. If a module fails to load and the kernel complains that the "version magic"&lt;BR /&gt; doesn't match, you can use this option to remove it. Naturally, this check is there for your protection, so this using option is dangerous unless you know what you're doing.&lt;/P&gt;&lt;P&gt;This applies to any modules inserted: both the module (or alias) on the command line and any modules on which it depends.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2017 11:30:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Invalid-module-format-while-loading-driver-in-imx6/m-p/663764#M101945</guid>
      <dc:creator>marius_grigoras</dc:creator>
      <dc:date>2017-04-11T11:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid module format while loading driver in imx6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Invalid-module-format-while-loading-driver-in-imx6/m-p/663765#M101946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or simpler, can force the insertion using -f to avoid any versions check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-f, --force&lt;BR /&gt; Try to strip any versioning information from the module which might otherwise stop it from loading: this is the same as using both --force-vermagic and --force-modversion. Naturally, these&lt;BR /&gt; checks are there for your protection, so using this option is dangerous unless you know what you are doing.&lt;/P&gt;&lt;P&gt;This applies to any modules inserted: both the module (or alias) on the command line and any modules it on which it depends.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2017 11:35:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Invalid-module-format-while-loading-driver-in-imx6/m-p/663765#M101946</guid>
      <dc:creator>marius_grigoras</dc:creator>
      <dc:date>2017-04-11T11:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid module format while loading driver in imx6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Invalid-module-format-while-loading-driver-in-imx6/m-p/663766#M101947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maruis&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is my output of modprobe libcomposite.ko&lt;/P&gt;&lt;P&gt;root@imx6ulevk:/lib/modules/3.14.38-6UL_ga+ge4944a5/kernel/drivers/usb/gadget# modinfo libcomposite.ko&lt;BR /&gt;&lt;STRONG&gt;filename: libcomposite.ko&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;license: GPL&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;author: David Brownell&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;srcversion: 3C154B8E069FE5773D21EE2&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;depends:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;vermagic: 3.14.38-6UL_ga+ge4944a5 SMP preempt mod_unload modversions ARMv7 p2v8&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is no -f option for modprobe&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;modprobe -f libcomposite&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;modprobe: invalid option -- 'f'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;BusyBox v1.23.1 (2017-04-11 16:49:06 IST) multi-call binary.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Usage: modprobe [-alrqvsD] MODULE [SYMBOL=VALUE]...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I do modprobe libcomposite I am having the ibnvlid module format error. Even though the kernel version is same.&lt;/P&gt;&lt;P&gt;root@imx6ulevk:/lib/modules/3.14.38-6UL_ga+ge4944a5/kernel/drivers/usb/gadget# modprobe libcomposite&lt;BR /&gt;libcomposite: disagrees about version of symbol module_layout&lt;BR /&gt;modprobe: can't load module libcomposite (kernel/drivers/usb/gadget/libcomposite.ko): invalid module format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to strip versioning information from module?&lt;/P&gt;&lt;P&gt;What is causing the error invalid module format??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2017 11:57:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Invalid-module-format-while-loading-driver-in-imx6/m-p/663766#M101947</guid>
      <dc:creator>chandraevolute</dc:creator>
      <dc:date>2017-04-11T11:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid module format while loading driver in imx6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Invalid-module-format-while-loading-driver-in-imx6/m-p/663767#M101948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Indeed, the version magic seems to be ok, but somehow unfortunately you corrupted the module kernel during build time (maybe a build interrupt, a different build time, a different toolchain...and so on).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only way to fix this seems to regenerate/rebuild the linux kernel module from the same linux tree [1] and make sure you're using on the target both the linux and kernel module from the same build.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[1]&amp;nbsp;&lt;A class="link-titled" href="http://stackoverflow.com/questions/35187905/invalid-module-format-with-matching-vermagic-value" title="http://stackoverflow.com/questions/35187905/invalid-module-format-with-matching-vermagic-value"&gt;linux - Invalid module format with matching vermagic value - Stack Overflow&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2017 12:10:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Invalid-module-format-while-loading-driver-in-imx6/m-p/663767#M101948</guid>
      <dc:creator>marius_grigoras</dc:creator>
      <dc:date>2017-04-11T12:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid module format while loading driver in imx6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Invalid-module-format-while-loading-driver-in-imx6/m-p/663768#M101949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/mariusviorelgrigoras-b32331"&gt;mariusviorelgrigoras-b32331&lt;/A&gt;‌&amp;nbsp;&lt;/P&gt;&lt;P&gt;I regenerated the linux and kernel module from the same build, the driver is loading. But the problem is I want to use the USB OTG port which we use for mfgtool we make it as gadget file system. And we cant use it as gadget HID. My requirement is to use the same OTG as gadget HID.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In kernel config I should make the USB gadget as gadget Filesystem only If i make other than that I cant use mfgtool for flashing. Is there any work around for this in kernel config&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2017 10:39:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Invalid-module-format-while-loading-driver-in-imx6/m-p/663768#M101949</guid>
      <dc:creator>chandraevolute</dc:creator>
      <dc:date>2017-04-13T10:39:00Z</dc:date>
    </item>
  </channel>
</rss>

