>As My redhat 4.2 is already installed, and I just want to recompile the
>kernel for my ethernet card support.
>
>Question: I read that for recompiling, I should have a copy of at least
one
>source distribution of a kernel. ..In my case I imagine that the copy is
>the one that is already on my system right?
Only if you installed the Kernel source when you installed the software.
>QuestionII: In my case, I dont need to get a kernel source distribution, I
>have it already as my actual installed kernek right?
Check at /usr/src there should be a directory either named linux or
linux.2.0.xx
that is where the source for the kernel is.
>III. I guess I should do make config.
Yes you have to do the make config first to add the ethernet card support.
>But make zimage, make dep..and the others, do not apply right?
After having editing the configuration file with the make config above you
then have to re-compile the kernel to include those new drivers. That is
the nice thing about Linux is that it is customize to your configuration.
After the "make configure" you then have to "make dep" and then "make clean"
and then "make zImage" This actually creates the bootable file that you
will boot.
After having created the zImage file you will need to move it to the /boot
directory.
Then rename the file named zImage to vmlinuz1 by typing in "mv zImage
vmlinuz1".
Then you have to modify the lilo configuration to allow you to boot the new
kernel. Do this by editing /etc/lilo.conf.
Open it with vi then move the cursor to the beginning of the line that
starts with
"image=/boot/vmlinuz" type in 5yy this will load in the next 5 lines into
the buffer.
then move your cursor to the last line in the file which should be a line
that reads "read-only"
press "i" and then press enter. This should move your cursor to a new line.
Then press the letter "p", this will put a copy of the five lines above.
move your cursor to the end of the second "image=" line and modify it to
match the filename that you changed zImage too. which in this example is
vmlinuz1 you also have to change the line that starts with "label=linux" and
change it to "label=linux1"
Exit vi with :wq and type in the command "lilo -C /etc/lilo.conf" this will
tell lilo about the new boot configuration.
Then the next time you boot press "Tab" when you see the "LILO:" prompt and
you will see the two choices linux and linux1, type in linux1 and see if
everything comes up ok including the ethernet brd.
>Sony Lloyd Ponton
>5136 De Gaspe
>Montreal, QC
>H2T-1z9
>Tel: (514)279-1921
>Email adress: [EMAIL PROTECTED]
>
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.