kernel version 2.4 loadable kernel module
I am trying to write a simple loadable kernel module for a 2.4 kernel. It is my understanding that for a 2.4 kernel, the compiler needs only the header files for the respective kernel. The compiled kernel version and the header file's version must match.
Unlike the situation for a 2.6 kernel which requires the entire source tree on your computer, 2.4 only requires the headers.
My new Debian install includes the required headers under /usr/linux/include and /user/linux/asm. Like I said the entire source isn't there only the headers.
I suspect that normally with a new debian install the version of the headers under linux/ will agree with the compiled kernel in the computer.
I am working with a small computer board that has a version of the 2.4 kernel compiled in it. The header files under /linux have another version of 2.4 headers.
How do I replace just the header files on the board so that the compiled kernel version and the header file version agree??
I do not have room for the entire source tree on the little board, but since the header files are already on the little board, I could write over them.
Thanks for any help,