<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Kernel Version mismatch on cross-compiling kernel modules (using onion&#x2F;omega2-source docker)]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I'm new here and I'm working on a project using omega2.</p>
<p dir="auto">I'm trying to build some kernel module (kmod-batman-adv, kmod-i2c-algo-bit, ...) using the cross-compiling docker prepared from onion (<a href="https://hub.docker.com/r/onion/omega2-source/" rel="nofollow">https://hub.docker.com/r/onion/omega2-source/</a>). I've followed the tutorial (<a href="https://onion.io/2bt-cross-compiling-c-programs-part-1/" rel="nofollow">https://onion.io/2bt-cross-compiling-c-programs-part-1/</a>) and other useful links but the result is that the modules compiled inside the docker are compiled for kernel 4.4.74-1, while the omega 0.2.0 b194 has kernel 4.4.74.</p>
<p dir="auto">When I try to install the compiled ipk on my omega, this is what I get:</p>
<p dir="auto">root@Omega-D339:/tmp# opkg install ./kmod-i2c-algo-bit_4.4.74-1_mipsel_24kc.ipk<br />
Installing kmod-i2c-algo-bit (4.4.74-1) to root...<br />
Collected errors:</p>
<ul>
<li>satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-i2c-algo-bit:</li>
<li>kernel (= 4.4.74-1-8274f1be988bfc7fa195bc75194d9e87) *</li>
<li>opkg_install_cmd: Cannot install package kmod-i2c-algo-bit.</li>
</ul>
<p dir="auto">If I run uname -a, what I see is:</p>
<p dir="auto">root@Omega-D339:/tmp# uname -a<br />
Linux Omega-D339 4.4.74 #0 Tue Jul 31 16:32:08 2018 mips GNU/Linux</p>
<p dir="auto">So, my question is: <strong>How can I cross compile kernel modules for omega2 official firmware?</strong></p>
<p dir="auto">Thank you for your help,<br />
Paolo</p>
]]></description><link>http://community.onion.io/topic/3070/kernel-version-mismatch-on-cross-compiling-kernel-modules-using-onion-omega2-source-docker</link><generator>RSS for Node</generator><lastBuildDate>Wed, 19 Aug 2026 20:16:49 GMT</lastBuildDate><atom:link href="http://community.onion.io/topic/3070.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 07 Aug 2018 13:52:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Kernel Version mismatch on cross-compiling kernel modules (using onion&#x2F;omega2-source docker) on Tue, 07 Aug 2018 13:52:28 GMT]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I'm new here and I'm working on a project using omega2.</p>
<p dir="auto">I'm trying to build some kernel module (kmod-batman-adv, kmod-i2c-algo-bit, ...) using the cross-compiling docker prepared from onion (<a href="https://hub.docker.com/r/onion/omega2-source/" rel="nofollow">https://hub.docker.com/r/onion/omega2-source/</a>). I've followed the tutorial (<a href="https://onion.io/2bt-cross-compiling-c-programs-part-1/" rel="nofollow">https://onion.io/2bt-cross-compiling-c-programs-part-1/</a>) and other useful links but the result is that the modules compiled inside the docker are compiled for kernel 4.4.74-1, while the omega 0.2.0 b194 has kernel 4.4.74.</p>
<p dir="auto">When I try to install the compiled ipk on my omega, this is what I get:</p>
<p dir="auto">root@Omega-D339:/tmp# opkg install ./kmod-i2c-algo-bit_4.4.74-1_mipsel_24kc.ipk<br />
Installing kmod-i2c-algo-bit (4.4.74-1) to root...<br />
Collected errors:</p>
<ul>
<li>satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-i2c-algo-bit:</li>
<li>kernel (= 4.4.74-1-8274f1be988bfc7fa195bc75194d9e87) *</li>
<li>opkg_install_cmd: Cannot install package kmod-i2c-algo-bit.</li>
</ul>
<p dir="auto">If I run uname -a, what I see is:</p>
<p dir="auto">root@Omega-D339:/tmp# uname -a<br />
Linux Omega-D339 4.4.74 #0 Tue Jul 31 16:32:08 2018 mips GNU/Linux</p>
<p dir="auto">So, my question is: <strong>How can I cross compile kernel modules for omega2 official firmware?</strong></p>
<p dir="auto">Thank you for your help,<br />
Paolo</p>
]]></description><link>http://community.onion.io/post/17421</link><guid isPermaLink="true">http://community.onion.io/post/17421</guid><dc:creator><![CDATA[Paolo Ciuffetti]]></dc:creator><pubDate>Tue, 07 Aug 2018 13:52:28 GMT</pubDate></item><item><title><![CDATA[Reply to Kernel Version mismatch on cross-compiling kernel modules (using onion&#x2F;omega2-source docker) on Tue, 07 Aug 2018 15:16:59 GMT]]></title><description><![CDATA[<p dir="auto">Update:<br />
I've found that the compiling process inside my docker has created a kernel_4.4.74-1-8274f1be988bfc7fa195bc75194d9e87_mipsel_24kc.ipk</p>
<p dir="auto">So, I installed this package on my onion2, rebooted (no dmesg errors) and now I can correctly install my kernel modules without errors.</p>
<p dir="auto">The question remain, because I don't want to use a custom kernel. I want to use the official omega2 firmware and then install my kernel module for the official kernel.</p>
<p dir="auto">How can I obtain this?</p>
<p dir="auto">Thanks again,<br />
Paolo</p>
]]></description><link>http://community.onion.io/post/17424</link><guid isPermaLink="true">http://community.onion.io/post/17424</guid><dc:creator><![CDATA[Paolo Ciuffetti]]></dc:creator><pubDate>Tue, 07 Aug 2018 15:16:59 GMT</pubDate></item><item><title><![CDATA[Reply to Kernel Version mismatch on cross-compiling kernel modules (using onion&#x2F;omega2-source docker) on Tue, 07 Aug 2018 17:28:03 GMT]]></title><description><![CDATA[<p dir="auto">Update 2:</p>
<p dir="auto">I've found <a href="http://community.onion.io/topic/2830/building-kernel-modules-for-the-omega2/2">this</a> topic from <a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/4683">@Maximilian-Gerhardt</a> (Thank you for your excellent guide), explaining how to build kernel module for Omega2. I've found this in his topic:</p>
<blockquote>
<p dir="auto">...<br />
It conveniently compiled the <code>hello-world.ko</code> file and even created an <code>ipk</code> package.<br />
Unfortunetly, trying to installing that package will give you a kernel mismatch error<br />
because the kernel hashes differ (see <a href="https://community.onion.io/topic/921/kernel-driver-version-mismatch" rel="nofollow">this</a> link). Loading the <code>.ko</code> file directly will still work though.<br />
...</p>
</blockquote>
<p dir="auto">So, I'm able to compile the kernel modules I need (copying the <code>.ko</code> files in <code>/lib/modules/4.4.74/</code>, but the <code>ipk</code> still does not match.</p>
<p dir="auto">Any suggestions to compile <code>ipk</code> kernel modules for official firmware?</p>
]]></description><link>http://community.onion.io/post/17428</link><guid isPermaLink="true">http://community.onion.io/post/17428</guid><dc:creator><![CDATA[Paolo Ciuffetti]]></dc:creator><pubDate>Tue, 07 Aug 2018 17:28:03 GMT</pubDate></item></channel></rss>