<?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/"
	xmlns:series="http://unfoldingneurons.com/"
		>
<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>Sat, 20 Mar 2010 00:34:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Arnab Chakraborty</title>
		<link>http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-152961</link>
		<dc:creator>Arnab Chakraborty</dc:creator>
		<pubDate>Sun, 17 Jan 2010 12:07:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-152961</guid>
		<description>Hi, 

  I found the article very helpful. Unlike many other linux tutorials, this one worked (with me) within the first few attempts! Just one minor point:

I had to change 
tail -f /var/log/message
to 
tail -f /var/log/messages

Arnab.</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>  I found the article very helpful. Unlike many other linux tutorials, this one worked (with me) within the first few attempts! Just one minor point:</p>
<p>I had to change<br />
tail -f /var/log/message<br />
to<br />
tail -f /var/log/messages</p>
<p>Arnab.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: abhi</title>
		<link>http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-152834</link>
		<dc:creator>abhi</dc:creator>
		<pubDate>Sun, 10 Jan 2010 13:03:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-152834</guid>
		<description>Thanks a lot. Found this article v. useful</description>
		<content:encoded><![CDATA[<p>Thanks a lot. Found this article v. useful</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alok</title>
		<link>http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-151473</link>
		<dc:creator>Alok</dc:creator>
		<pubDate>Wed, 04 Nov 2009 13:41:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-151473</guid>
		<description>Hi
I have tried load module when Linux system comes up but it&#039;s not displaying in 
#cat /proc/modules 
I have done these things successfully.
# mkdir -p /lib/modules/$(uname -r)/kernel/drivers/hello
# cp hello.ko /lib/modules/$(uname -r)/kernel/drivers/hello/
# vi /etc/modules

and Added &quot;hello&quot; word in next line.
any suggestion would be welcome

with regards
Alok</description>
		<content:encoded><![CDATA[<p>Hi<br />
I have tried load module when Linux system comes up but it&#8217;s not displaying in<br />
#cat /proc/modules<br />
I have done these things successfully.<br />
# mkdir -p /lib/modules/$(uname -r)/kernel/drivers/hello<br />
# cp hello.ko /lib/modules/$(uname -r)/kernel/drivers/hello/<br />
# vi /etc/modules</p>
<p>and Added &#8220;hello&#8221; word in next line.<br />
any suggestion would be welcome</p>
<p>with regards<br />
Alok</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam</title>
		<link>http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-151045</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Wed, 14 Oct 2009 15:24:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-151045</guid>
		<description>Thanks, this ended a few hours of frustration.</description>
		<content:encoded><![CDATA[<p>Thanks, this ended a few hours of frustration.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: blaine</title>
		<link>http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-150780</link>
		<dc:creator>blaine</dc:creator>
		<pubDate>Wed, 23 Sep 2009 17:30:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-150780</guid>
		<description>Thank you for posting this.  It is very hard to figure out how to just make a single module manually.  This post should be ranked higher when searching &quot;How to compile a single kernel module&quot;.  Self fulfilling prophecy, perhaps?</description>
		<content:encoded><![CDATA[<p>Thank you for posting this.  It is very hard to figure out how to just make a single module manually.  This post should be ranked higher when searching &#8220;How to compile a single kernel module&#8221;.  Self fulfilling prophecy, perhaps?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shreyas karmahe</title>
		<link>http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-150325</link>
		<dc:creator>shreyas karmahe</dc:creator>
		<pubDate>Mon, 24 Aug 2009 05:42:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-150325</guid>
		<description>hi,
could u please tell me how can i install the kernel updates as I despirately need linux source code.</description>
		<content:encoded><![CDATA[<p>hi,<br />
could u please tell me how can i install the kernel updates as I despirately need linux source code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: reveil</title>
		<link>http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-149710</link>
		<dc:creator>reveil</dc:creator>
		<pubDate>Mon, 27 Jul 2009 10:53:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-149710</guid>
		<description>Be sure you have tabs instead of spaces in the Makefile. Obvious and common mistake but took me a few minutes to figure this out after copy-pasting.</description>
		<content:encoded><![CDATA[<p>Be sure you have tabs instead of spaces in the Makefile. Obvious and common mistake but took me a few minutes to figure this out after copy-pasting.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tonychen123@qq.com</title>
		<link>http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-148841</link>
		<dc:creator>tonychen123@qq.com</dc:creator>
		<pubDate>Fri, 05 Jun 2009 04:25:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-148841</guid>
		<description>Hey, check that you makefile if you make a mistake with &quot;obj-m&quot; with &quot;obj_m&quot;, I have the same problem as you do.
When I write &quot;obj-m&quot; instead of &quot;obj_m&quot;, everything goes good.</description>
		<content:encoded><![CDATA[<p>Hey, check that you makefile if you make a mistake with &#8220;obj-m&#8221; with &#8220;obj_m&#8221;, I have the same problem as you do.<br />
When I write &#8220;obj-m&#8221; instead of &#8220;obj_m&#8221;, everything goes good.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Victor</title>
		<link>http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-148601</link>
		<dc:creator>Victor</dc:creator>
		<pubDate>Mon, 18 May 2009 16:36:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-148601</guid>
		<description>Hi,

I&#039;m trying to compile your hello.c module in a Fedora Core 9  with a 2.6.27.21-78.2.41.fc9.i686 kernel. My gcc compiler is 4.3.0 20080428 (Red Hat 4.3.0-8) (GCC). My kernel-devel package is installed with my current kernel version.

When I try to compile I get the following:

&lt;i&gt;root@leela:[~/pruebas-modulos]$ make
make -C /lib/modules/2.6.27.21-78.2.41.fc9.i686/build M=/root/pruebas-modulos modules
make[1]: se ingresa al directorio `/usr/src/kernels/2.6.27.21-78.2.41.fc9.i686&#039;
  Building modules, stage 2.
  MODPOST 0 modules
make[1]: se sale del directorio `/usr/src/kernels/2.6.27.21-78.2.41.fc9.i686&#039;

root@leela:[~/pruebas-modulos]$ ls
hello.c  hello.o  Makefile  Module.markers  modules.order  Module.symvers
root@leela:[~/pruebas-modulos]$ 
&lt;/i&gt;

As you can see I do not obtain the .ko file. I have searched across the web in order to understand why I am not getting my .ko file, but I am not able to find anything useful. I would appreciate if you could help me to find why the makefile is not working

Thanks in advance,
Víctor.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I&#8217;m trying to compile your hello.c module in a Fedora Core 9  with a 2.6.27.21-78.2.41.fc9.i686 kernel. My gcc compiler is 4.3.0 20080428 (Red Hat 4.3.0-8) (GCC). My kernel-devel package is installed with my current kernel version.</p>
<p>When I try to compile I get the following:</p>
<p><i>root@leela:[~/pruebas-modulos]$ make<br />
make -C /lib/modules/2.6.27.21-78.2.41.fc9.i686/build M=/root/pruebas-modulos modules<br />
make[1]: se ingresa al directorio `/usr/src/kernels/2.6.27.21-78.2.41.fc9.i686&#8242;<br />
  Building modules, stage 2.<br />
  MODPOST 0 modules<br />
make[1]: se sale del directorio `/usr/src/kernels/2.6.27.21-78.2.41.fc9.i686&#8242;</p>
<p>root@leela:[~/pruebas-modulos]$ ls<br />
hello.c  hello.o  Makefile  Module.markers  modules.order  Module.symvers<br />
root@leela:[~/pruebas-modulos]$<br />
</i></p>
<p>As you can see I do not obtain the .ko file. I have searched across the web in order to understand why I am not getting my .ko file, but I am not able to find anything useful. I would appreciate if you could help me to find why the makefile is not working</p>
<p>Thanks in advance,<br />
Víctor.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: scrat</title>
		<link>http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-146859</link>
		<dc:creator>scrat</dc:creator>
		<pubDate>Fri, 23 Jan 2009 20:25:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-146859</guid>
		<description>Oh, big thanks, source of Makefile is very helpful.</description>
		<content:encoded><![CDATA[<p>Oh, big thanks, source of Makefile is very helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kernelmodule</title>
		<link>http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-146845</link>
		<dc:creator>kernelmodule</dc:creator>
		<pubDate>Thu, 22 Jan 2009 11:48:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-146845</guid>
		<description>After executing the insmod the message is not being displayed...Can u pls guide me on whats goin wrong?</description>
		<content:encoded><![CDATA[<p>After executing the insmod the message is not being displayed&#8230;Can u pls guide me on whats goin wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mix</title>
		<link>http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-146595</link>
		<dc:creator>mix</dc:creator>
		<pubDate>Wed, 07 Jan 2009 02:53:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-146595</guid>
		<description>The reason that make: Nothing to be done for ‘all’ is you should modify the Makefile, replace the space in each make command with tab.</description>
		<content:encoded><![CDATA[<p>The reason that make: Nothing to be done for ‘all’ is you should modify the Makefile, replace the space in each make command with tab.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mangesh</title>
		<link>http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-145654</link>
		<dc:creator>mangesh</dc:creator>
		<pubDate>Thu, 20 Nov 2008 10:49:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-145654</guid>
		<description>how do I cross compile a module using kbuild. Please help</description>
		<content:encoded><![CDATA[<p>how do I cross compile a module using kbuild. Please help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: touristguy87</title>
		<link>http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-145524</link>
		<dc:creator>touristguy87</dc:creator>
		<pubDate>Sat, 08 Nov 2008 06:56:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-145524</guid>
		<description>ok I got it somehow, honestly I am not sure how but I patched my install (now running kernel-headers 2.6.24-21 generic) and rebooted, sudo -i, just tried running make and it worked. 

before I was getting &quot;can&#039;t find target &#039;make&#039; error that seems so common. It now is working!!!</description>
		<content:encoded><![CDATA[<p>ok I got it somehow, honestly I am not sure how but I patched my install (now running kernel-headers 2.6.24-21 generic) and rebooted, sudo -i, just tried running make and it worked. </p>
<p>before I was getting &#8220;can&#8217;t find target &#8216;make&#8217; error that seems so common. It now is working!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: touristguy87</title>
		<link>http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-145471</link>
		<dc:creator>touristguy87</dc:creator>
		<pubDate>Tue, 04 Nov 2008 06:19:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-145471</guid>
		<description>I followed the instructions as written even copying and pasting the code, I got nada. 

I was able to install the headers using
apt-get install linux-headers-$(uname -r)

then I copied and pasted the hello.c text and the Makefile from this page but I got nothing. 
make: Nothing to be done for &#039;all&#039;. 

I must be missing something

this is in Ubuntu 8.04</description>
		<content:encoded><![CDATA[<p>I followed the instructions as written even copying and pasting the code, I got nada. </p>
<p>I was able to install the headers using<br />
apt-get install linux-headers-$(uname -r)</p>
<p>then I copied and pasted the hello.c text and the Makefile from this page but I got nothing.<br />
make: Nothing to be done for &#8216;all&#8217;. </p>
<p>I must be missing something</p>
<p>this is in Ubuntu 8.04</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mohammad</title>
		<link>http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-144627</link>
		<dc:creator>Mohammad</dc:creator>
		<pubDate>Mon, 11 Aug 2008 16:21:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-144627</guid>
		<description>Dear  Vivek ,
Thanks alots for yr teaching.
i compile a new module on fedora core 6 and make it very good. but in fedora i dont know how to submit for when linux start up , can load automaticly. i didnot find /etc/modules in fedora.</description>
		<content:encoded><![CDATA[<p>Dear  Vivek ,<br />
Thanks alots for yr teaching.<br />
i compile a new module on fedora core 6 and make it very good. but in fedora i dont know how to submit for when linux start up , can load automaticly. i didnot find /etc/modules in fedora.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: john</title>
		<link>http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-143992</link>
		<dc:creator>john</dc:creator>
		<pubDate>Fri, 06 Jun 2008 19:27:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-143992</guid>
		<description>how to cross compile lkm for arm?</description>
		<content:encoded><![CDATA[<p>how to cross compile lkm for arm?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nitin</title>
		<link>http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-143946</link>
		<dc:creator>Nitin</dc:creator>
		<pubDate>Tue, 03 Jun 2008 14:22:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-143946</guid>
		<description>Hi, This was very much helpful but now I&#039;m stuck because i didn&#039;t understand how this particular makefile is working, so i&#039;m not able to write it for multiple files. Please could anyone explain how this makefile works with a example for multiple files.
Thanks,
Nitin.</description>
		<content:encoded><![CDATA[<p>Hi, This was very much helpful but now I&#8217;m stuck because i didn&#8217;t understand how this particular makefile is working, so i&#8217;m not able to write it for multiple files. Please could anyone explain how this makefile works with a example for multiple files.<br />
Thanks,<br />
Nitin.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nitin</title>
		<link>http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-143874</link>
		<dc:creator>Nitin</dc:creator>
		<pubDate>Sat, 24 May 2008 16:56:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-143874</guid>
		<description>Hi swift, I guess u have not created Makefile in ur present directory, plz make sure that makefile name is correct and its case sensitive, it should be &#039;Makefile&#039;.</description>
		<content:encoded><![CDATA[<p>Hi swift, I guess u have not created Makefile in ur present directory, plz make sure that makefile name is correct and its case sensitive, it should be &#8216;Makefile&#8217;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shan</title>
		<link>http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-142529</link>
		<dc:creator>shan</dc:creator>
		<pubDate>Fri, 18 Jan 2008 06:23:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html#comment-142529</guid>
		<description>dis s wat i encountered wen using





 CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
  HOSTCC  scripts/basic/fixdep
In file included from /usr/include/bits/posix1_lim.h:153,
                 from /usr/include/limits.h:145,
                 from /usr/lib/gcc/i486-linux-gnu/4.1.2/include/limits.h:122,
                 from /usr/lib/gcc/i486-linux-gnu/4.1.2/include/syslimits.h:7,
                 from /usr/lib/gcc/i486-linux-gnu/4.1.2/include/limits.h:11,
                 from scripts/basic/fixdep.c:113:
/usr/include/bits/local_lim.h:36:26: error: linux/limits.h: No such file or directory
In file included from /usr/include/sys/socket.h:35,
                 from /usr/include/netinet/in.h:24,
                 from /usr/include/arpa/inet.h:23,
                 from scripts/basic/fixdep.c:115:
/usr/include/bits/socket.h:310:24: error: asm/socket.h: No such file or directory
scripts/basic/fixdep.c: In function ‘use_config’:
scripts/basic/fixdep.c:204: error: ‘PATH_MAX’ undeclared (first use in this function)
scripts/basic/fixdep.c:204: error: (Each undeclared identifier is reported only once
scripts/basic/fixdep.c:204: error: for each function it appears in.)
scripts/basic/fixdep.c:204: warning: unused variable ‘s’
scripts/basic/fixdep.c: In function ‘parse_dep_file’:
scripts/basic/fixdep.c:300: error: ‘PATH_MAX’ undeclared (first use in this function)
scripts/basic/fixdep.c:300: warning: unused variable ‘s’
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2</description>
		<content:encoded><![CDATA[<p>dis s wat i encountered wen using</p>
<p> CHK     include/linux/version.h<br />
  CHK     include/linux/utsrelease.h<br />
  HOSTCC  scripts/basic/fixdep<br />
In file included from /usr/include/bits/posix1_lim.h:153,<br />
                 from /usr/include/limits.h:145,<br />
                 from /usr/lib/gcc/i486-linux-gnu/4.1.2/include/limits.h:122,<br />
                 from /usr/lib/gcc/i486-linux-gnu/4.1.2/include/syslimits.h:7,<br />
                 from /usr/lib/gcc/i486-linux-gnu/4.1.2/include/limits.h:11,<br />
                 from scripts/basic/fixdep.c:113:<br />
/usr/include/bits/local_lim.h:36:26: error: linux/limits.h: No such file or directory<br />
In file included from /usr/include/sys/socket.h:35,<br />
                 from /usr/include/netinet/in.h:24,<br />
                 from /usr/include/arpa/inet.h:23,<br />
                 from scripts/basic/fixdep.c:115:<br />
/usr/include/bits/socket.h:310:24: error: asm/socket.h: No such file or directory<br />
scripts/basic/fixdep.c: In function ‘use_config’:<br />
scripts/basic/fixdep.c:204: error: ‘PATH_MAX’ undeclared (first use in this function)<br />
scripts/basic/fixdep.c:204: error: (Each undeclared identifier is reported only once<br />
scripts/basic/fixdep.c:204: error: for each function it appears in.)<br />
scripts/basic/fixdep.c:204: warning: unused variable ‘s’<br />
scripts/basic/fixdep.c: In function ‘parse_dep_file’:<br />
scripts/basic/fixdep.c:300: error: ‘PATH_MAX’ undeclared (first use in this function)<br />
scripts/basic/fixdep.c:300: warning: unused variable ‘s’<br />
make[1]: *** [scripts/basic/fixdep] Error 1<br />
make: *** [scripts_basic] Error 2</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.204 seconds -->
<!-- Cached page served by WP-Cache -->
