Hi <span class="gmail_quote"><b class="gmail_sendername">Williams,<br><span style="font-weight: bold;"> Thanks for your reply. I tried your method but encountered below error while compiled kernel module: <br><span style="font-weight: bold;">
make[1]: *** [/home/elife/sw/src/2.6.18/dm9601.o] error 136<br>make: *** [_module_/home/elife/sw/src/2.6.18] error 2<br>make: Leaving directory `/usr/src/kernels/2.6.18-1.2824.olpc1-i586'<br><br>Same error occured when I build another kernel module. If I point kernel path to
olpc-2.6, they are build fine. Is kernel-develop package not enough?<br><br>My toolchain is:<br><span style="font-weight: bold;">gcc version 4.0.1 (4.0.1-5mdk for Mandriva Linux release 2006.0)<br>GNU ld </span></span></span>
</b></span><span class="gmail_quote"><b class="gmail_sendername"><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="font-weight: bold;">version</span></span></span></b></span><span class="gmail_quote">
<b class="gmail_sendername"><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="font-weight: bold;"> </span>2.17.50.0.1 20060427<br><br>Best regards!<br><br></span>
</span> </span></b></span><br><div><span class="gmail_quote">On 12/12/06, <b class="gmail_sendername">Dan Williams</b> <<a href="mailto:dcbw@redhat.com">dcbw@redhat.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
You do not need the kernel sourcecode. You 'yum install kernel-devel'<br>and then you have the necessary headers. If you really need the kernel<br>sourcecode for building a kernel module, then something you are doing is
<br>wrong.<br><br>yum install kernel-devel<br>cd /path/to/module/source<br>make -C /lib/modules/2.6.xxxx/build SUBDIRS=`pwd` modules<br>insmod yourmodule.ko<br><br></blockquote></div><br>