<?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:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
	>
<channel>
	<title>Comments on: The Complete Fedora Kernel Headers</title>
	<atom:link href="http://www.g-loaded.eu/2005/12/14/the-complete-fedora-kernel-headers/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.g-loaded.eu/2005/12/14/the-complete-fedora-kernel-headers/</link>
	<description>An open-source software and technology related journal</description>
	<lastBuildDate>Fri, 03 Feb 2012 18:35:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Chun-Chung Chen</title>
		<link>http://www.g-loaded.eu/2005/12/14/the-complete-fedora-kernel-headers/#comment-5774</link>
		<dc:creator>Chun-Chung Chen</dc:creator>
		<pubDate>Sun, 28 Jan 2007 05:46:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.g-loaded.eu/?p=122#comment-5774</guid>
		<description>Since you already have kernel-devel in place, wouldn&#039;t it be easier just do a &#039;rsync --ignore-existing&#039; from the source tree to your kernel-devel tree after doing the &#039;rpmbuild -bp&#039;?</description>
		<content:encoded><![CDATA[<p>Since you already have kernel-devel in place, wouldn&#8217;t it be easier just do a &#8216;rsync &#8211;ignore-existing&#8217; from the source tree to your kernel-devel tree after doing the &#8216;rpmbuild -bp&#8217;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: radix</title>
		<link>http://www.g-loaded.eu/2005/12/14/the-complete-fedora-kernel-headers/#comment-5092</link>
		<dc:creator>radix</dc:creator>
		<pubDate>Tue, 21 Nov 2006 23:58:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.g-loaded.eu/?p=122#comment-5092</guid>
		<description>GODLY TUTORIAL, THANK YOU!!!</description>
		<content:encoded><![CDATA[<p>GODLY TUTORIAL, THANK YOU!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gnot</title>
		<link>http://www.g-loaded.eu/2005/12/14/the-complete-fedora-kernel-headers/#comment-396</link>
		<dc:creator>Gnot</dc:creator>
		<pubDate>Sat, 25 Mar 2006 12:09:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.g-loaded.eu/?p=122#comment-396</guid>
		<description>Hi Anh,
The &lt;code&gt;/usr/src/kernels/&lt;/code&gt; directory is created when you install the &lt;code&gt;kernel-devel&lt;/code&gt; package.
The &lt;code&gt;Module.symvers&lt;/code&gt; file is created when we compile the kernel native modules. In order to save some time and since we use a kernel SRPM with same version as our running kernel, we use the Module.symvers file from the kernel-devel package.
Although this info is included in the above article, I re-post it here, so that it is more clear.</description>
		<content:encoded><![CDATA[<p>Hi Anh,<br />
The <code>/usr/src/kernels/</code> directory is created when you install the <code>kernel-devel</code> package.<br />
The <code>Module.symvers</code> file is created when we compile the kernel native modules. In order to save some time and since we use a kernel SRPM with same version as our running kernel, we use the Module.symvers file from the kernel-devel package.<br />
Although this info is included in the above article, I re-post it here, so that it is more clear.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anh</title>
		<link>http://www.g-loaded.eu/2005/12/14/the-complete-fedora-kernel-headers/#comment-376</link>
		<dc:creator>Anh</dc:creator>
		<pubDate>Fri, 24 Mar 2006 19:04:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.g-loaded.eu/?p=122#comment-376</guid>
		<description>Hi Raoul
I followed your instructions but I could not find the file Module.symvers.  In my /usr/src directory , I only see redhat directory , no kernels directory.
# ls /usr/src/
redhat
Can you tell how I you get /usr/src/kernels?
Thanks
Anh</description>
		<content:encoded><![CDATA[<p>Hi Raoul</p>
<p>I followed your instructions but I could not find the file Module.symvers.  In my /usr/src directory , I only see redhat directory , no kernels directory.<br />
# ls /usr/src/<br />
redhat</p>
<p>Can you tell how I you get /usr/src/kernels?<br />
Thanks<br />
Anh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gnot</title>
		<link>http://www.g-loaded.eu/2005/12/14/the-complete-fedora-kernel-headers/#comment-126</link>
		<dc:creator>Gnot</dc:creator>
		<pubDate>Thu, 12 Jan 2006 17:47:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.g-loaded.eu/?p=122#comment-126</guid>
		<description>&lt;cite&gt;Kris&lt;/cite&gt;:
This is general info regarding kernel modules. After you install them, you issue the following command so that the &quot;module database&quot; is updated:
&lt;code&gt;# depmod -a&lt;/code&gt;
Then you load the module with &lt;code&gt;modprobe&lt;/code&gt; exactly as you have written.
I believe that you should address your questions regarding commercial software to their support channels or to a professional consultant.</description>
		<content:encoded><![CDATA[<p><cite>Kris</cite>:<br />
This is general info regarding kernel modules. After you install them, you issue the following command so that the &quot;module database&quot; is updated:<br />
<code># depmod -a</code></p>
<p>Then you load the module with <code>modprobe</code> exactly as you have written.</p>
<p>I believe that you should address your questions regarding commercial software to their support channels or to a professional consultant.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Radhakrishnan</title>
		<link>http://www.g-loaded.eu/2005/12/14/the-complete-fedora-kernel-headers/#comment-124</link>
		<dc:creator>Radhakrishnan</dc:creator>
		<pubDate>Tue, 10 Jan 2006 20:52:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.g-loaded.eu/?p=122#comment-124</guid>
		<description>Hi Raoul,
Thanks a lot I just installed kernel headers as per your script for RHEL4 for the kernel 2.6.9-11.EL.
Can you tell me how to load the thirdparty drivers generally.
example: I loaded ncipher server software after installing the headers it installed their drivers as nfp.
lsmod shows the entry for new driver as nfp
if i will try to add the module as modprobe nfp , I got the error as &quot; FATAL: Module nfp not found &quot;.
Any idea to fix this ?
Thanks in advance
Kris
Kris</description>
		<content:encoded><![CDATA[<p>Hi Raoul,</p>
<p>Thanks a lot I just installed kernel headers as per your script for RHEL4 for the kernel 2.6.9-11.EL.</p>
<p>Can you tell me how to load the thirdparty drivers generally.</p>
<p>example: I loaded ncipher server software after installing the headers it installed their drivers as nfp.<br />
lsmod shows the entry for new driver as nfp</p>
<p>if i will try to add the module as modprobe nfp , I got the error as &#8221; FATAL: Module nfp not found &#8220;.</p>
<p>Any idea to fix this ?</p>
<p>Thanks in advance<br />
Kris</p>
<p>Kris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gnot</title>
		<link>http://www.g-loaded.eu/2005/12/14/the-complete-fedora-kernel-headers/#comment-107</link>
		<dc:creator>Gnot</dc:creator>
		<pubDate>Fri, 06 Jan 2006 21:27:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.g-loaded.eu/?p=122#comment-107</guid>
		<description>&lt;cite&gt;Kris&lt;/cite&gt;: I have never used any version of RHEL so I don&#039;t know about the RPM naming scheme. First of all, try to install the default &lt;strong&gt;kernel development&lt;/strong&gt; package for your running kernel. This contains the kernel headers that most 3rd party modules need in order to be compiled. You could use the above article&#039;s approach only if you cannot compile the 3rd party module using kernel-devel. But, the problem is that this info was written for a 2.6.X kernel.
I strongly suggest that you ask for help at the &lt;a href=&quot;http://www.fedoraforum.org/&quot; rel=&quot;nofollow&quot;&gt;Fedora Forum&lt;/a&gt; or contact Red Hat support.</description>
		<content:encoded><![CDATA[<p><cite>Kris</cite>: I have never used any version of RHEL so I don&#8217;t know about the RPM naming scheme. First of all, try to install the default <strong>kernel development</strong> package for your running kernel. This contains the kernel headers that most 3rd party modules need in order to be compiled. You could use the above article&#8217;s approach only if you cannot compile the 3rd party module using kernel-devel. But, the problem is that this info was written for a 2.6.X kernel.<br />
I strongly suggest that you ask for help at the <a href="http://www.fedoraforum.org/" rel="nofollow">Fedora Forum</a> or contact Red Hat support.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Radhakrishnan</title>
		<link>http://www.g-loaded.eu/2005/12/14/the-complete-fedora-kernel-headers/#comment-106</link>
		<dc:creator>Radhakrishnan</dc:creator>
		<pubDate>Fri, 06 Jan 2006 20:55:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.g-loaded.eu/?p=122#comment-106</guid>
		<description>Hello,
This is Kris from Austin,TX.
I am new to Linux, installed RHEL 3.0 on DELL 2550 and upgrded the kernel to 2.4.21-37ELsmp.
Now I am trying to install the ncipher software which needs kernel headers for the above said kernel 2.4.21-37ELsmp.
I tried your kernel header script to get the headers to install ncipher software. I couldn&#039;t get Module.symvers file in the location you mentioned or Kernel-devlop rpm pkg  in the source CD.
RHEL 3.0 by default didn&#039;t install any  kernel headers .
Appreciate if you let me know how to solve this issue.
Thanks,
Kris</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>This is Kris from Austin,TX.</p>
<p>I am new to Linux, installed RHEL 3.0 on DELL 2550 and upgrded the kernel to 2.4.21-37ELsmp.</p>
<p>Now I am trying to install the ncipher software which needs kernel headers for the above said kernel 2.4.21-37ELsmp.</p>
<p>I tried your kernel header script to get the headers to install ncipher software. I couldn&#8217;t get Module.symvers file in the location you mentioned or Kernel-devlop rpm pkg  in the source CD.</p>
<p>RHEL 3.0 by default didn&#8217;t install any  kernel headers .</p>
<p>Appreciate if you let me know how to solve this issue.</p>
<p>Thanks,<br />
Kris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gnot</title>
		<link>http://www.g-loaded.eu/2005/12/14/the-complete-fedora-kernel-headers/#comment-85</link>
		<dc:creator>Gnot</dc:creator>
		<pubDate>Tue, 03 Jan 2006 15:44:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.g-loaded.eu/?p=122#comment-85</guid>
		<description>Hello Vikram,
I&#039;m afraid that I do not have the necessary knowledge to provide an 100% accurate answer to this. My kernel sources directory occupies 268MB of space (the kernel hasn&#039;t been compiled), which is still too much, since I only need the headers. So, I guess I have the same issue somehow.
Generally, it should be safe to delete the C source &lt;code&gt;*.c&lt;/code&gt; and the intermediate build products, for example the &lt;code&gt;*.o&lt;/code&gt; files. Only the headers (&lt;code&gt;.h&lt;/code&gt; files) are needed in order to compile 3rd party modules. Taking a closer look at the contents of the official fedora &lt;code&gt;kernel-devel&lt;/code&gt; package, the needed files seem to be:
- &lt;code&gt;*.h&lt;/code&gt;
- &lt;code&gt;Makefile*&lt;/code&gt;
- &lt;code&gt;Kconfig*&lt;/code&gt;
- the &lt;code&gt;/scripts&lt;/code&gt; directory
The following command:
&lt;code&gt;# find /usr/src/kernels/2.6.14-1.1653_FC4-i686 -type f ! -name *.h ! -name Makefile* ! -name Kconfig* &#124; grep -v &#039;FC4-i686/scripts&#039;&lt;/code&gt;
shows that the &lt;code&gt;kernel-devel&lt;/code&gt; package, apart from the files mentioned above, also contains the following:
&lt;code&gt;/usr/src/kernels/2.6.14-1.1653_FC4-i686/.config
/usr/src/kernels/2.6.14-1.1653_FC4-i686/include/config/MARKER
/usr/src/kernels/2.6.14-1.1653_FC4-i686/Module.symvers
/usr/src/kernels/2.6.14-1.1653_FC4-i686/arch/i386/kernel/asm-offsets.s&lt;/code&gt;
This means, that if I erase all other files from my kernel sources directory, except for all those mentioned above, I would still have the complete kernel headers and 3rd party modules should compile properly.
So I wrote a simple script to erase all other files:
[&lt;strong&gt;UPDATE&lt;/strong&gt;]: Wordpress had removed the backslashes from the following script. This is fixed.
&lt;pre class=&quot;codesnp&quot;&gt;
#! /bin/bash
#edit - WITHOUT TRAILING SLASH
KERNSRC=&quot;/usr/src/redhat/BUILD/kernel-2.6.14-1.1653_FC4-i686-full-testing&quot;
find &quot;$KERNSRC&quot; -type f &#092;
	! -name *.h &#092;
	! -name Makefile* &#092;
	! -name Kconfig* &#092;
	! -name *.symvers &#092;
	! -name MARKER &#092;
	! -name .config &#092;
	! -name asm-offsets.s &#092;
	&#124; grep -v &quot;$KERNSRC/scripts&quot; &#092;
	&#124; xargs rm -f
exit 0
&lt;/pre&gt;
The occupied space was reduced to around 100MB. Only regular files were deleted though, the directories remained. I could further reduce the occupied space by deleting:
- all irrelevant &lt;strong&gt;asm&lt;/strong&gt; directories in &lt;code&gt;include/&lt;/code&gt;. The needed ones are &lt;code&gt;include/asm-generic&lt;/code&gt;, &lt;code&gt;include/asm-i386&lt;/code&gt; (depends on the architecture) and the &lt;code&gt;asm&lt;/code&gt; symlink.
- probably all directories under &lt;code&gt;arch/&lt;/code&gt;, which are irrelevant to the architecture. I kept the &lt;code&gt;arch/i386&lt;/code&gt;.
- the documentation
All the above, are based on the fedora kernel SRPM.
Vikram, please consider all these as a hackish-like method to reduce the occupied space. Maybe this is a completely wrong approach. Anyway, after keeping only these files, I could compile the &lt;code&gt;lirc_gpio &lt;/code&gt; and the &lt;code&gt;truecrypt&lt;/code&gt; kernel modules without the singlest of problems.
Furthermore, instead of all those actions, you could try doing a:
&lt;em&gt;NOTE&lt;/em&gt;: Keep a copy of the &lt;code&gt;Module.symvers&lt;/code&gt; file.
&lt;code&gt;# make clean&lt;/code&gt;
and then perform the extra step I describe in the above article:
&lt;code&gt;# make prepare
# make scripts&lt;/code&gt;
This way, you would get rid of the kernel compilation products which take a lot of space, but still have a usable set of kernel headers.
I hope these give you some helpful hints to investigate the issue yourself. Thanks for your comment. Very interesting indeed.</description>
		<content:encoded><![CDATA[<p>Hello Vikram,<br />
I&#8217;m afraid that I do not have the necessary knowledge to provide an 100% accurate answer to this. My kernel sources directory occupies 268MB of space (the kernel hasn&#8217;t been compiled), which is still too much, since I only need the headers. So, I guess I have the same issue somehow.</p>
<p>Generally, it should be safe to delete the C source <code>*.c</code> and the intermediate build products, for example the <code>*.o</code> files. Only the headers (<code>.h</code> files) are needed in order to compile 3rd party modules. Taking a closer look at the contents of the official fedora <code>kernel-devel</code> package, the needed files seem to be:<br />
- <code>*.h</code><br />
- <code>Makefile*</code><br />
- <code>Kconfig*</code><br />
- the <code>/scripts</code> directory</p>
<p>The following command:</p>
<p><code># find /usr/src/kernels/2.6.14-1.1653_FC4-i686 -type f ! -name *.h ! -name Makefile* ! -name Kconfig* | grep -v 'FC4-i686/scripts'</code></p>
<p>shows that the <code>kernel-devel</code> package, apart from the files mentioned above, also contains the following:</p>
<p><code>/usr/src/kernels/2.6.14-1.1653_FC4-i686/.config<br />
/usr/src/kernels/2.6.14-1.1653_FC4-i686/include/config/MARKER<br />
/usr/src/kernels/2.6.14-1.1653_FC4-i686/Module.symvers<br />
/usr/src/kernels/2.6.14-1.1653_FC4-i686/arch/i386/kernel/asm-offsets.s</code></p>
<p>This means, that if I erase all other files from my kernel sources directory, except for all those mentioned above, I would still have the complete kernel headers and 3rd party modules should compile properly.</p>
<p>So I wrote a simple script to erase all other files:</p>
<p>[<strong>UPDATE</strong>]: WordPress had removed the backslashes from the following script. This is fixed.</p>
<pre class="codesnp">
#! /bin/bash
#edit - WITHOUT TRAILING SLASH
KERNSRC="/usr/src/redhat/BUILD/kernel-2.6.14-1.1653_FC4-i686-full-testing"
find "$KERNSRC" -type f &#92;
	! -name *.h &#92;
	! -name Makefile* &#92;
	! -name Kconfig* &#92;
	! -name *.symvers &#92;
	! -name MARKER &#92;
	! -name .config &#92;
	! -name asm-offsets.s &#92;
	| grep -v "$KERNSRC/scripts" &#92;
	| xargs rm -f
exit 0
</pre>
<p>The occupied space was reduced to around 100MB. Only regular files were deleted though, the directories remained. I could further reduce the occupied space by deleting:<br />
- all irrelevant <strong>asm</strong> directories in <code>include/</code>. The needed ones are <code>include/asm-generic</code>, <code>include/asm-i386</code> (depends on the architecture) and the <code>asm</code> symlink.<br />
- probably all directories under <code>arch/</code>, which are irrelevant to the architecture. I kept the <code>arch/i386</code>.<br />
- the documentation</p>
<p>All the above, are based on the fedora kernel SRPM.</p>
<p>Vikram, please consider all these as a hackish-like method to reduce the occupied space. Maybe this is a completely wrong approach. Anyway, after keeping only these files, I could compile the <code>lirc_gpio </code> and the <code>truecrypt</code> kernel modules without the singlest of problems.</p>
<p>Furthermore, instead of all those actions, you could try doing a:<br />
<em>NOTE</em>: Keep a copy of the <code>Module.symvers</code> file.</p>
<p><code># make clean</code></p>
<p>and then perform the extra step I describe in the above article:</p>
<p><code># make prepare<br />
# make scripts</code></p>
<p>This way, you would get rid of the kernel compilation products which take a lot of space, but still have a usable set of kernel headers.</p>
<p>I hope these give you some helpful hints to investigate the issue yourself. Thanks for your comment. Very interesting indeed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vikram Goyal</title>
		<link>http://www.g-loaded.eu/2005/12/14/the-complete-fedora-kernel-headers/#comment-84</link>
		<dc:creator>Vikram Goyal</dc:creator>
		<pubDate>Tue, 03 Jan 2006 11:54:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.g-loaded.eu/?p=122#comment-84</guid>
		<description>Hi Roul,
It&#039;s a very comprehensive and usefull way of making kernel headers available for a user. I normally download the kernel from kernel.org and compile a customised lean kernel for my machine. The problem which I face is that if I have to compile a third party module, say for vmware for my running customised kernel then I have to keep the whole compiled kernel image which amounts to nearly 1.5G whereas kernel-devel package installs only around 75Mb. Even if we keep all the headers then I think it should not go beyond 100Mb.
So, I ask you, if you can post some pointers where one can delete the unneccessary files and make available kernel headers from the compiled kernel tree.</description>
		<content:encoded><![CDATA[<p>Hi Roul,</p>
<p>It&#8217;s a very comprehensive and usefull way of making kernel headers available for a user. I normally download the kernel from kernel.org and compile a customised lean kernel for my machine. The problem which I face is that if I have to compile a third party module, say for vmware for my running customised kernel then I have to keep the whole compiled kernel image which amounts to nearly 1.5G whereas kernel-devel package installs only around 75Mb. Even if we keep all the headers then I think it should not go beyond 100Mb.</p>
<p>So, I ask you, if you can post some pointers where one can delete the unneccessary files and make available kernel headers from the compiled kernel tree.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic page generated in 2.395 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-02-08 22:18:16 -->

