Friends,

I'm running SuSE 6.0, kernel 2.2.6 on plain jane hardware.

The process to get a new kernel running usually is fairly easy, plus
it is fun, and IMHO, is one major feature/difference between MS os's
and the one true OS, linux. ;-) However, note that unless you need a
feature that the stock kernel omits, or other reasons such as security, or
just keeping up, you may not "need" to re-compile a kernel.  

I found the key documents to read were the Kernel-HOWTO (available in
/usr/doc/howto/en/) and the /usr/src/linux/README file in your newly
untar'ed tree. Also helpful were the
/usr/src/linux/Documentation/Configure.help

You should also read about lilo (chapter 4) and the kernel (chapter 13) in
the SuSE Linux 6.0 doc. In fact, you should read the entire doc asap.

I got my kernel sources from ftp.kernel.org, with the file to be ftp'ed 
being /pub/linux/kernel/v2.2/linux-2.2.6.tar.gz. Of course, you can get a
patch there too.

Things I watch out for:
1. PPP must be selected during kernel config, IT IS OFF BY DEFAULT.
2. Under SuSE 6.0, kernel 2.2.*, the boot directory is /boot
3. Copy the new /usr/src/linux/System.map to /boot
4. Copy the new /usr/src/linux/arch/i386/boot/bzImage to /boot/vmlinuz or
something.
5. Make sure you have a bootable kernel setup in /etc/lilo.conf in case
your newly created kernel is sub-optimal. :-(
6. After doing step 3-5, BE SURE TO RE-RUN /sbin/lilo before you reboot.

I had started on a more complete document on how to compile a kernel under
SuSE linux, but decided it was a duplication of the very excellent
kernel-HOWTO, plus the fact I am no writer and mostly a linux novice.

However, here is the basic routine I use. 
1.ftp down, uncompress, untar source so it is in /usr/src/linux-2.2.6,
with a symlink to /usr/src/linux. You might copy your old tree to
something like /usr/src/linux-2.0.36
# cd /usr/src/linux
# make menuconfig
...configure your kernel...
# make dep;make clean
# make bzImage;make modules;make modules_install
# cp /usr/src/linux/System.map /boot
# cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz
...fixup /etc/lilo so you have a fallback kernel and a stanza for the new
kernel...
# /sbin/lilo
...take a break, think about things you might have missed...
...fingers crossing about now...
# shutdown -r now
...your new kernel should come up now...
# uname -a
...should look something like:
Linux asimov 2.2.6 #2 Tue Apr 20 23:04:48 CDT 1999 i586 unknown

Now, before you break open champagne, test your internet connection, your
connection to other boxes on your lan, your sound, your zip drive, etc.
If something does not work, make sure you activated it in your kernel.

Before you flame me, I know there's more than one way to do just about
everything here, I admit I am no writer, and that I am a novice. Pls feel
free to add constructive criticism and clarification where needed. Pls let
me know if this worked for you, but if it doesn't, well...sorry! Re-read
the kernel howto, and check USENET for people who've had the same problem
as you.

HTH someone...

Steve. 

------------------------------------
Steve Pauly (281) 496-8041
Global Marine Drilling Co.
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]


--
To get out of this list, please send email to [EMAIL PROTECTED] with
this text in its body: unsubscribe suse-linux-e
Check out the SuSE-FAQ at http://www.suse.com/Support/Doku/FAQ/ and the
archive at http://www.suse.com/Mailinglists/suse-linux-e/index.html

Reply via email to