Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
There is less than 12 hours left to vote in the 2015 LinuxQuestions.org Members Choice Awards. Click here to go to the polls. Vote now and make sure your voice is heard!
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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.
I am using a Debian distribution. I found that the Debian site has pre-packaged header files to handle my problem. In other words, it has the header files for 2.4.16 for example.
My real question is a little more complex. My small board has a special version of which is a slightly modified version of the 2.4 kernel. The company doesn't provide a sevice like Debian does to provide the header files.
I can get the entire source tree from the company, but it won't fit on my little board. I guess the only way to fix my problem is to put the entire souce tree on a regular pc, then extract the header files from the source and write over the ones on my little board?
I am extremly new at this. Am I thinking my problem through correctly??
I finally got the kernel header files from the maker of my board. I used ftp to transfer the files over. I can now compile using the gcc compiler on my little board. I will probably wind up using a cross compiler on a linux desktop and transfer the modules over to the little board..