One way is to: (I imagine there's a quicker/easier way) You'll have to download the entire source tree for the kernel, and do a './configure' (and pick the right things...) and then a 'make modules'.
Assuming you're using the same glibc & gcc version it'll all work when you copy the module across... YMMV though, I did this for pwc.o for a 2.4.3, compiled it on a 2.4.9 machine, with the same glibc and gcc, you've probably got more version issues than I had. (pwc.o is the Philips webcam driver, and 2.4.3 didn't have it, but the target machine didn't have enough disk space for the kernel source tree) Good luck :-). Cheers, Chris H. ----- Original Message ----- From: "Nick Rout" <[EMAIL PROTECTED]> To: "CLUG" <[EMAIL PROTECTED]> Sent: Tuesday, July 30, 2002 5:13 PM Subject: compiling a module for a different kernel version > Can anyone tell me how to compile a kernel module for a kernel thats not > on the development machine. This module is NOT in the standard kernel, > it is a third party job. I need it compiled for 2.2.21rc1 for my ipcop > firewall. ipcop does not have development tools on board and all my > other machines are 2.4 based. > > Can I download the kernel headers for 2.2.21rc1 and then compile on a > 2.4 machine? > -- > Nick Rout <[EMAIL PROTECTED]> >
