<br><br><div class="gmail_quote">On Tue, Sep 18, 2012 at 10:10 PM, Pritam Bankar <span dir="ltr">&lt;<a href="mailto:pritambankar1988@gmail.com" target="_blank">pritambankar1988@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="im">On Tue, Sep 18, 2012 at 7:27 PM, Pritam Bankar<br>
&lt;<a href="mailto:pritambankar1988@gmail.com">pritambankar1988@gmail.com</a>&gt; wrote:<br>
&gt; Any idea what causes __versions section to get added in *.ko module. A<br>
&gt; simple hello.ko on ubuntu 12.04 i386 machine gets loaded successfully.<br>
&gt; Other module just doesn&#39;t get loaded giving error &quot; Invalid module &quot;.<br>
&gt; When I compared both modules with objdump -h I found __versions<br>
&gt; section was missing from second module and that can be the reason its<br>
&gt; not getting loaded. How can I add this section to other .ko ? What<br>
&gt; causes __versions to get added in ko ?<br>
<br>
<br>
</div>I have compiled both modules with modpost and Module.symvers.<br>
<br>
<br></blockquote><div> </div><div>The real reason why kernel prevent the module outside to insmod is ABI, 
 Application binary interface, which is referred in 
<a href="http://en.wikipedia.org/wiki/Application_binary_interface">http://en.wikipedia.org/wiki/Application_binary_interface</a>. If you do 
want to bypass it without rebuilding kernel ,you can do like this. 
<a href="http://hi.baidu.com/wzt85/item/dcea082c90c9ed0942634ad2">http://hi.baidu.com/wzt85/item/dcea082c90c9ed0942634ad2</a>  :) <br></div></div><br>