download the files as follows.
Hi
You can get them off the 3rd disk or download them. i've written a little how-to below which may be of assistance.
First you have to find your kernel version so as we can match up the right source code files (as you ahve already done). So type in:
$ uname -r <enter>
This should print on the screen the kernel version number. My system returned
kernel-2.4.20-6
Write this number down somewhere. Next you have to determine if you have the source files installed. Type in:
$ rpm -qa | fgrep kernel <enter>
This should give you amongst other things the following 2 lines:
kernel-source-2.4.20-6
kernel-2.4.20-6
Obviously the numbers should match your kernel, as in the previous section. Beware that some Red Hat 9 distributions come with the ‘kernel-2.4.20-8’. If the "kernel-source-2.4.20-6" is there it means that you don’t need the kernel source package as it’s already installed.
If the kernel-source-2.4.20-6 line isn’t there, it means you’re going to have to download, unpack and install it. You will need the following rpm:
"kernel-source-2.4.20-6.i386.rpm" (again ajust numbers to suit your version)
Which you might find on the 3rd cd if you have it, otherwise you can download it from
http://rpm.pbone.net/index.php3/sta...6.i386.rpm.html
This will probably take a while as its 35mb big. If you have access to a broadband connected computer from a friend or work, use it, otherwise it takes about 3 hours to download over a winModem. I didn’t have access to broadband so had to take the long road. The thing is, this file is crucial. Obviously change the 2.4.20-6 numbers if yours differ. Once downloaded this should give you a file called.
kernel-source-2.4.20-6.i386.rpm
Place this rpm into a new directory/folder in your home directory, then enter the directory and run the following command from the command line, as root:
# rpm –ivh kernel-source-2.4.20-6.i386.rpm <enter>
This may take a while before the command prompt is returned to you depending on your system. Basically it is creating two directories called linux-2.4.20-6 and linux-2.4 in your /usr/src directory. linux-2.4 is a symbolic link to linux-2.4.20-6. Don’t concern yourself with this fact just yet.
Once the command line is returned to you, type in
# cd /usr/src <enter>
# ls <enter>
Several directories should be printed back to the screen. The ones we are concerned with are.
linux-2.4.20-6
linux-2.4
You now need to make a symbolic link to a directory called "linux". Some older software packages need this apparently. To make this link, simply type in :
# ln -s linux-2.4.20-6 linux <enter>
Now type in:
# ls <enter>
You should now see the following files in the list
linux-2.4.20-6
linux-2.4
linux
Don’t be concerned if they appear as different colours, this just means they are links. What is relevant is that the files are there.
You should now have the appropriate kernel source files to re-build your driver.
if you update your kernel down the track, also update the source file.
regards
GT