I need to build a module from source. I have the source file but the only Makefiles included with the source are for Redhat and Mandrake. If I use the RH Makefile the build fails with voluminous errors. If I use the MD file it completes a build but with some warnings and I have not gotten the resulting module to work, though it does load with insmod and modprobe. Is there a down-and-not-so-dirty way to build the module for my kernel without taking several college programming courses? I am using 8.2 with athlon kernel. My trusty old copy of Running Linux has several pages on makefiles but it seems to assume that I also would know what should be in the makefile and what the make command is looking for, and then helps me with syntax. The source files include x.h and x.c files and Makefiles for RH and MD, as I said. Can this be done by a human being (me) or do I have to search out an etherial linux programmer? Thanks for any suggestions. Richard
* Richard (rick47@adelphia.net) [030811 20:40]:
Is there a down-and-not-so-dirty way to build the module for my kernel without taking several college programming courses?
See "How do I compile a module ?" about 2/3 down the page: http://kernelnewbies.org/faq/ -- -ckm
On Mon August 11 2003 9:21 pm, Christopher Mahmood wrote:
* Richard (rick47@adelphia.net) [030811 20:40]:
Is there a down-and-not-so-dirty way to build the module for my kernel without taking several college programming courses?
See "How do I compile a module ?" about 2/3 down the page: http://kernelnewbies.org/faq/
--
-ckm
Thanks Christopher. I will keep this file as there seems to be several other things of value also. As an additional followup I found that the module I tried to compile with make and the Makefile for Mandrake actually seems to be working: can mount the disks with it and read info already there, and copy it. Failure during installation attempts came because the module was compiled against athlon kernel and installation kernel was default...I got it to load by using "--force" when asked for parameters. Which reminds me, I hope no one else is taking pointers from this as I did not complete the new installation...wanted to insure complete backup first.... I will revert to the directions in the article you have referenced to be more certain and correct. Thanks again. Richard
participants (2)
-
Christopher Mahmood
-
Richard