[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

compile driver file problem, different version of kernel image and kernel source, any clue?



Hi-
trying run debian in new dell poweredge server rather redhat. everything workout fine until I get stuck in the networkcard problem. Couldn't find the e1000 network card binary driver for the kernel 2.4.20 image. Then I'm trying to compile one for it. The result ... compile fine but it's give me error while probe the module and after look into, this is because the kernel image is 2.4.20 and the kernel source I have in /usr/src/ and /usr/include is 2.4.18

So download the kernel-source-2.4.20.deb and patch it, it's seem like it's the package only patch the source in /usr/src not /usr/include. so while reload the network card driver again, it's said version not compatible. And I had to manually modify the /usr/include/version.h
to linux version magic number
#define LINUX_VERSION_CODE 132116

reload again, no version problem, but new error message said that init_module error, possible cause by wrong module parameter, IO paramter and IRQ parameter.

I guess the problem in in the header file /usr/include, and I just wondering why while install kernel-source-2.4.20.deb is not replacing the /usr/include and how to replace or install 2.4.20 header file in the /usr/include without screw up the system and make my network card driver compile and work.

kean



Reply to: