Hi Williams,
 Thanks for your reply. I tried your method but encountered below error
while compiled kernel module:
make[1]: *** [/home/elife/sw/src/2.6.18/dm9601.o] error 136
make: *** [_module_/home/elife/sw/src/2.6.18] error 2
make: Leaving directory `/usr/src/kernels/2.6.18-1.2824.olpc1-i586'

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?

My toolchain is:
gcc version 4.0.1 (4.0.1-5mdk for Mandriva Linux release 2006.0)
GNU ld version 2.17.50.0.1 20060427

Best regards!


On 12/12/06, Dan Williams <[EMAIL PROTECTED]> wrote:

You do not need the kernel sourcecode.  You 'yum install kernel-devel'
and then you have the necessary headers.  If you really need the kernel
sourcecode for building a kernel module, then something you are doing is
wrong.

yum install kernel-devel
cd /path/to/module/source
make -C /lib/modules/2.6.xxxx/build SUBDIRS=`pwd` modules
insmod yourmodule.ko


_______________________________________________
Devel mailing list
[email protected]
http://mailman.laptop.org/mailman/listinfo/devel

Reply via email to