<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: How to: Compile Linux kernel modules</title> <atom:link href="http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html/feed" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html</link> <description>This is a Linux sys admin journal by Vivek about sys admin work, Linux tips &#38; tricks, hacks, news and more.</description> <lastBuildDate>Fri, 10 Feb 2012 20:37:43 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Kesava</title><link>http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-175654</link> <dc:creator>Kesava</dc:creator> <pubDate>Mon, 14 Nov 2011 06:15:08 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-175654</guid> <description>Hi,
when I try to do the same with the different code; getting the following error. Any Help is really appreciated.
&gt; make
make -C /lib/modules/2.6.25.5-1.1-default/build SUBDIRS=/home/vmware1/netp15 modules
make[1]: Entering directory `/usr/src/linux-2.6.25.5-1.1-obj/x86_64/default&#039;
make[1]: *** No rule to make target `modules&#039;.  Stop.
make[1]: Leaving directory `/usr/src/linux-2.6.25.5-1.1-obj/x86_64/default&#039;
make: *** [all] Error 2
-Thnx,
VKS.</description> <content:encoded><![CDATA[<p>Hi,<br
/> when I try to do the same with the different code; getting the following error. Any Help is really appreciated.</p><p>&gt; make<br
/> make -C /lib/modules/2.6.25.5-1.1-default/build SUBDIRS=/home/vmware1/netp15 modules<br
/> make[1]: Entering directory `/usr/src/linux-2.6.25.5-1.1-obj/x86_64/default&#8217;<br
/> make[1]: *** No rule to make target `modules&#8217;.  Stop.<br
/> make[1]: Leaving directory `/usr/src/linux-2.6.25.5-1.1-obj/x86_64/default&#8217;<br
/> make: *** [all] Error 2</p><p>-Thnx,<br
/> VKS.</p> ]]></content:encoded> </item> <item><title>By: Debian user</title><link>http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-175588</link> <dc:creator>Debian user</dc:creator> <pubDate>Fri, 11 Nov 2011 01:13:33 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-175588</guid> <description>Debian Squeeze 2.6.32-5-amd64
It worked right away!
Thank you. ^^
-- screen dump --
Module                  Size  Used by
hello                    786  0
powernow_k8            10978  1
cpufreq_stats           2740  0
cpufreq_conservative     5162  0
cpufreq_userspace       1992  0
parport_pc             18855  0
cpufreq_powersave        902  0
ppdev                   5030  0</description> <content:encoded><![CDATA[<p>Debian Squeeze 2.6.32-5-amd64</p><p>It worked right away!</p><p>Thank you. ^^</p><p>&#8211; screen dump &#8211;<br
/> Module                  Size  Used by<br
/> hello                    786  0<br
/> powernow_k8            10978  1<br
/> cpufreq_stats           2740  0<br
/> cpufreq_conservative     5162  0<br
/> cpufreq_userspace       1992  0<br
/> parport_pc             18855  0<br
/> cpufreq_powersave        902  0<br
/> ppdev                   5030  0</p> ]]></content:encoded> </item> <item><title>By: Suneel</title><link>http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-175311</link> <dc:creator>Suneel</dc:creator> <pubDate>Sat, 29 Oct 2011 07:44:26 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-175311</guid> <description>How did you fix this problem Prashanth? I&#039;m getting exactly same error make[1]: *** No rule to make target `−C’. Stop. Please help me if you have some info on this.</description> <content:encoded><![CDATA[<p>How did you fix this problem Prashanth? I&#8217;m getting exactly same error make[1]: *** No rule to make target `−C’. Stop. Please help me if you have some info on this.</p> ]]></content:encoded> </item> <item><title>By: Iranist</title><link>http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-174248</link> <dc:creator>Iranist</dc:creator> <pubDate>Thu, 22 Sep 2011 19:29:11 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-174248</guid> <description>It was so useful, thanks!</description> <content:encoded><![CDATA[<p>It was so useful, thanks!</p> ]]></content:encoded> </item> <item><title>By: alexpally</title><link>http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-170548</link> <dc:creator>alexpally</dc:creator> <pubDate>Sun, 10 Apr 2011 16:48:41 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-170548</guid> <description>You must use TABs instead of spaces in make file</description> <content:encoded><![CDATA[<p>You must use TABs instead of spaces in make file</p> ]]></content:encoded> </item> <item><title>By: touristguy87</title><link>http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-169372</link> <dc:creator>touristguy87</dc:creator> <pubDate>Tue, 01 Mar 2011 15:18:36 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-169372</guid> <description>If you&#039;re really having trouble getting this to fly, then I would suggest reading this:
http://www.gnu.org/software/make/manual/make.html#Overview
The full documentation on gnu make
probably will help a lot.
and as always
start with something that works and make minimal changes between verifications
something as small as a simple tab where the make utility expects spaces or vice-versa
will definitely keep it from working. Not to mention an out-of-date install or an install that needs a reboot.</description> <content:encoded><![CDATA[<p>If you&#8217;re really having trouble getting this to fly, then I would suggest reading this:<br
/> <a
href="http://www.gnu.org/software/make/manual/make.html#Overview" rel="nofollow">http://www.gnu.org/software/make/manual/make.html#Overview</a><br
/> The full documentation on gnu make<br
/> probably will help a lot.<br
/> and as always<br
/> start with something that works and make minimal changes between verifications<br
/> something as small as a simple tab where the make utility expects spaces or vice-versa<br
/> will definitely keep it from working. Not to mention an out-of-date install or an install that needs a reboot.</p> ]]></content:encoded> </item> <item><title>By: touristguy87</title><link>http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-168746</link> <dc:creator>touristguy87</dc:creator> <pubDate>Mon, 14 Feb 2011 02:09:22 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-168746</guid> <description>also remember that there is a difference between &#039; and `
just as between space and tab
so if you see one don&#039;t use the other</description> <content:encoded><![CDATA[<p>also remember that there is a difference between &#8216; and `<br
/> just as between space and tab<br
/> so if you see one don&#8217;t use the other</p> ]]></content:encoded> </item> <item><title>By: touristguy87</title><link>http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-168745</link> <dc:creator>touristguy87</dc:creator> <pubDate>Mon, 14 Feb 2011 02:08:07 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-168745</guid> <description>um, obviously one part of the problem here is the fact that depending on what editor you use, what exactly the offsets are between different sections of the relevant files and whether you use spaces or tabs, you will get different results.
that&#039;s on top of exactly what version of Linux you&#039;re running, and what version of the relevant libraries.
Trust me on this. Start with a working example, one that you simply download and run, with no edits. If you don&#039;t have one find one on the internet somewhere. The most that you can pick up from a guide like this are just guidelines for what should work. Doesn&#039;t mean that it will work for you on your system, the way that you&#039;ve configured it or edited the file.
When it should work and it does not? odds are that you are about to learn something new about Linux.
good luck</description> <content:encoded><![CDATA[<p>um, obviously one part of the problem here is the fact that depending on what editor you use, what exactly the offsets are between different sections of the relevant files and whether you use spaces or tabs, you will get different results.</p><p>that&#8217;s on top of exactly what version of Linux you&#8217;re running, and what version of the relevant libraries.</p><p>Trust me on this. Start with a working example, one that you simply download and run, with no edits. If you don&#8217;t have one find one on the internet somewhere. The most that you can pick up from a guide like this are just guidelines for what should work. Doesn&#8217;t mean that it will work for you on your system, the way that you&#8217;ve configured it or edited the file.<br
/> When it should work and it does not? odds are that you are about to learn something new about Linux.<br
/> good luck</p> ]]></content:encoded> </item> <item><title>By: s singh</title><link>http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-168622</link> <dc:creator>s singh</dc:creator> <pubDate>Mon, 07 Feb 2011 15:26:55 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-168622</guid> <description>i am getting the following error after executing make
make: Nothing to be done for `all&#039;.</description> <content:encoded><![CDATA[<p>i am getting the following error after executing make<br
/> make: Nothing to be done for `all&#8217;.</p> ]]></content:encoded> </item> <item><title>By: s singh</title><link>http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-168618</link> <dc:creator>s singh</dc:creator> <pubDate>Mon, 07 Feb 2011 14:27:22 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-168618</guid> <description>i am getting the same error and replacing spaces with tab is not working.
some other solution..??</description> <content:encoded><![CDATA[<p>i am getting the same error and replacing spaces with tab is not working.<br
/> some other solution..??</p> ]]></content:encoded> </item> <item><title>By: Rigved Rakshit</title><link>http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-168569</link> <dc:creator>Rigved Rakshit</dc:creator> <pubDate>Fri, 04 Feb 2011 14:36:45 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-168569</guid> <description>The line:
obj-m = foo.o
is wrong. It should be:
obj-m += foo.o</description> <content:encoded><![CDATA[<p>The line:</p><p>obj-m = foo.o</p><p>is wrong. It should be:</p><p>obj-m += foo.o</p> ]]></content:encoded> </item> <item><title>By: Romy</title><link>http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-168487</link> <dc:creator>Romy</dc:creator> <pubDate>Fri, 28 Jan 2011 18:12:53 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-168487</guid> <description>Really Thankful.....A great note for Beginners</description> <content:encoded><![CDATA[<p>Really Thankful&#8230;..A great note for Beginners</p> ]]></content:encoded> </item> <item><title>By: Anjan</title><link>http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-168259</link> <dc:creator>Anjan</dc:creator> <pubDate>Thu, 13 Jan 2011 08:09:17 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-168259</guid> <description>try looking for messages in dmesg i.e., after #insmod hello.ko
try #dmesg
u will be able to see the messages</description> <content:encoded><![CDATA[<p>try looking for messages in dmesg i.e., after #insmod hello.ko<br
/> try #dmesg<br
/> u will be able to see the messages</p> ]]></content:encoded> </item> <item><title>By: Prabhu</title><link>http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-161979</link> <dc:creator>Prabhu</dc:creator> <pubDate>Wed, 08 Dec 2010 10:44:36 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-161979</guid> <description>Cool article. My first module programming is running successfully. Thanks a lot.
- Prabhu</description> <content:encoded><![CDATA[<p>Cool article. My first module programming is running successfully. Thanks a lot.<br
/> - Prabhu</p> ]]></content:encoded> </item> <item><title>By: SIFE</title><link>http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-161590</link> <dc:creator>SIFE</dc:creator> <pubDate>Wed, 01 Dec 2010 08:48:32 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-161590</guid> <description>I have trouble with my custom kernel for the last tow days, it does not boot due &lt;b&gt;ahci&lt;/b&gt; module, can I compile it as module and then make initrd image or I have to add it to kernel configuration, if so where I have to activate it, I tried to go to:
Device drivers-&gt; Serial ATA Drivers and Parelle ATA Drivers-&gt; AHCI SATA Support
But it seems does not compile it according to this message when I install modules:
&lt;code&gt;
WARNING: No module ahci found for kernel 2.6.37-rc4, continuing anyway
&lt;/code&gt;</description> <content:encoded><![CDATA[<p>I have trouble with my custom kernel for the last tow days, it does not boot due <b>ahci</b> module, can I compile it as module and then make initrd image or I have to add it to kernel configuration, if so where I have to activate it, I tried to go to:<br
/> Device drivers-&gt; Serial ATA Drivers and Parelle ATA Drivers-&gt; AHCI SATA Support<br
/> But it seems does not compile it according to this message when I install modules:<br
/> <code><br
/> WARNING: No module ahci found for kernel 2.6.37-rc4, continuing anyway<br
/> </code></p> ]]></content:encoded> </item> <item><title>By: SIFE</title><link>http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-161589</link> <dc:creator>SIFE</dc:creator> <pubDate>Wed, 01 Dec 2010 08:47:07 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-161589</guid> <description>I have trouble with my custom kernel for the last tow days, it does not boot due [b]ahci[/b] module, can I compile it as module and then make initrd image or I have to add it to kernel configuration, if so where I have to activate it, I tried to go to:
Device drivers-&gt; Serial ATA Drivers and Parelle ATA Drivers-&gt; AHCI SATA Support
But it seems does not compile it according to this message when I install modules:
[code]
WARNING: No module ahci found for kernel 2.6.37-rc4, continuing anyway
[/code]</description> <content:encoded><![CDATA[<p>I have trouble with my custom kernel for the last tow days, it does not boot due [b]ahci[/b] module, can I compile it as module and then make initrd image or I have to add it to kernel configuration, if so where I have to activate it, I tried to go to:<br
/> Device drivers-&gt; Serial ATA Drivers and Parelle ATA Drivers-&gt; AHCI SATA Support<br
/> But it seems does not compile it according to this message when I install modules:<br
/> [code]<br
/> WARNING: No module ahci found for kernel 2.6.37-rc4, continuing anyway<br
/> [/code]</p> ]]></content:encoded> </item> <item><title>By: Prashant</title><link>http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-161442</link> <dc:creator>Prashant</dc:creator> <pubDate>Sun, 21 Nov 2010 17:00:36 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-161442</guid> <description>I made a hello-1.c and Makefile in the same directory.
when is issue &quot;make&quot; command, it gives error:
make −C /lib/modules/2.6.32-25-generic/build M=/home/prashant modules
make[1]: Entering directory `/home/prashant&#039;
make[1]: *** No rule to make target `−C&#039;.  Stop.
make[1]: Leaving directory `/home/prashant&#039;
make: *** [all] Error 2
I am getting this error from so long. I even changed my working directory to root.</description> <content:encoded><![CDATA[<p>I made a hello-1.c and Makefile in the same directory.<br
/> when is issue &#8220;make&#8221; command, it gives error:<br
/> make −C /lib/modules/2.6.32-25-generic/build M=/home/prashant modules<br
/> make[1]: Entering directory `/home/prashant&#8217;<br
/> make[1]: *** No rule to make target `−C&#8217;.  Stop.<br
/> make[1]: Leaving directory `/home/prashant&#8217;<br
/> make: *** [all] Error 2</p><p>I am getting this error from so long. I even changed my working directory to root.</p> ]]></content:encoded> </item> <item><title>By: PAgore</title><link>http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-161408</link> <dc:creator>PAgore</dc:creator> <pubDate>Fri, 19 Nov 2010 09:51:52 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-161408</guid> <description>Cool! :-)
I compiled my first module in Linux.
Thanks for your instructions!!!</description> <content:encoded><![CDATA[<p>Cool! :-)<br
/> I compiled my first module in Linux.</p><p>Thanks for your instructions!!!</p> ]]></content:encoded> </item> <item><title>By: Lucas</title><link>http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-161387</link> <dc:creator>Lucas</dc:creator> <pubDate>Thu, 18 Nov 2010 18:05:37 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-161387</guid> <description>hello,
my system is ubuntu 10.04 kernel 2.6.32-25-generic, i did everything as described in article and.. when i do(as root: sudo -i ):
# insmod hello.ko
i get answer :
# insmod: error inserting &#039;hello.ko&#039;: -1 Invalid module format
And I&#039;ve no idea what can be wrong.. or what I do wrong... would be gratefull for help</description> <content:encoded><![CDATA[<p>hello,<br
/> my system is ubuntu 10.04 kernel 2.6.32-25-generic, i did everything as described in article and.. when i do(as root: sudo -i ):<br
/> # insmod hello.ko<br
/> i get answer :<br
/> # insmod: error inserting &#8216;hello.ko&#8217;: -1 Invalid module format</p><p>And I&#8217;ve no idea what can be wrong.. or what I do wrong&#8230; would be gratefull for help</p> ]]></content:encoded> </item> <item><title>By: touristguy87</title><link>http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-159100</link> <dc:creator>touristguy87</dc:creator> <pubDate>Sat, 21 Aug 2010 06:26:00 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-159100</guid> <description>START WITH THE EXAMPLE, WHICH HAS BEEN DEBUGGED &amp; TESTED FOR YOU.
If you cannot get that to work that is one thing.
If you can get THAT to work but you cannot get YOUR code to work then
for chrissakes
figure out what you have done different that doesn&#039;t work and fix it l!!!!</description> <content:encoded><![CDATA[<p>START WITH THE EXAMPLE, WHICH HAS BEEN DEBUGGED &amp; TESTED FOR YOU.<br
/> If you cannot get that to work that is one thing.<br
/> If you can get THAT to work but you cannot get YOUR code to work then<br
/> for chrissakes<br
/> figure out what you have done different that doesn&#8217;t work and fix it l!!!!</p> ]]></content:encoded> </item> </channel> </rss>
