Installing a new compiled kernel.

Installing a new compiled kernel.

Post by MNR TG SCO » Fri, 05 Nov 1993 20:57:39



Hi there !

I have recently compiled my kernel with a few patches (like to mount a HPFS
system, sound patches and the Quota patch). It compiled very well (make
config; make dep; make zlilo), but what do I have to do to replace the old
kernel with the new one ?

Thanks in advance

Theo

 
 
 

Installing a new compiled kernel.

Post by Dan Simo » Sat, 06 Nov 1993 00:07:15



Quote:>Hi there !

>I have recently compiled my kernel with a few patches (like to mount a HPFS
>system, sound patches and the Quota patch). It compiled very well (make
>config; make dep; make zlilo), but what do I have to do to replace the old
>kernel with the new one ?

zlilo? I just run make and a new zImage is created.
This is what I did:

make - produces /usr/src/linux/zImage
cp /zImage /zImage.old
cp zImage /zImage
rdev /zImage (verify it has the correct root partition, if not
  change it - see 'man rdev' for specifics)
/etc/lilo/install
sync
shutdown -r now

Note that if you just copy over the kernel without running lilo
and rdev, it will probably just reboot endlessly.
I did this.  Solution?  Boot from the a1 diskette, and get into a
root shell.  Mount the root filesystem of your disk on /mnt,
and run rdev and lilo, then reboot.

This probably should be a bit more documented in the install docs
for the kernel upgrades.  It's there, but a bit cryptic...

| Dan |

--

Associate Programmer                     (914) 789-5378
Advanced Network & Services               Elmsford, NY

 
 
 

Installing a new compiled kernel.

Post by Grant Edwar » Sun, 07 Nov 1993 02:42:17



:
: >I have recently compiled my kernel with a few patches (like to mount a HPFS
: >system, sound patches and the Quota patch). It compiled very well (make
: >config; make dep; make zlilo), but what do I have to do to replace the old
: >kernel with the new one ?
:
: zlilo? I just run make and a new zImage is created.
: This is what I did:
:
: make - produces /usr/src/linux/zImage
: cp /zImage /zImage.old
: cp zImage /zImage
: rdev /zImage (verify it has the correct root partition, if not
:   change it - see 'man rdev' for specifics)
: /etc/lilo/install
: sync
: shutdown -r now

A minor suggestion:  use mv instead of cp:

$ cd /usr/src/linux
$ make
$ mv /vmlinux /vmlinux.old        # only if /vmlinux is a good kernel!
$ mv zImage /vmlinux
$ /etc/lilo/install
$ fastboot

(my system is set up to boot from the file named vmlinux)

I highly recommend that you add an entry in the lilo config file to
allow you to boot zImage.old, or vmlinux.old, or whatever you named
the kernel that you know used to work.

That way, when the shiney new kernel doesn't work (and some day you
_will_ build a kernel that doesn't work), you can just type
vmlinux.old and the LILO prompt and you're back up and running --
recompiling the kernel for another try!

--
Grant Edwards                                 |Yow!  Today, THREE WINOS from
Rosemount Inc.                                |DETROIT sold me a framed
                                              |photo of TAB HUNTER before

 
 
 

Installing a new compiled kernel.

Post by yuan tze » Mon, 08 Nov 1993 23:19:06





>:
>: >I have recently compiled my kernel with a few patches (like to mount a HPFS
>: >system, sound patches and the Quota patch). It compiled very well (make
>: >config; make dep; make zlilo), but what do I have to do to replace the old
>: >kernel with the new one ?
>:
>$ cd /usr/src/linux
>$ make
>$ mv /vmlinux /vmlinux.old        # only if /vmlinux is a good kernel!
>$ mv zImage /vmlinux

   Delete above 2 steps. I would subject don't touch the old working
kernel at this point yet(If you do so, you may have problem to bring
your system back for the no-go new kernel), instead

$ mv /usr/src/linux/vmlinux /vmlinux.test
   then add an entry for this new kernel (/vmlinux.test) to /etc/lilo/config
  (or /etc/lilo.conf if you run future Debian Linux). This way, you can
  boot your machine with a choice either old kernel or new one. LILO will
  handle this.

Quote:>$ /etc/lilo/install
>$ fastboot

>(my system is set up to boot from the file named vmlinux)

>I highly recommend that you add an entry in the lilo config file to
>allow you to boot zImage.old, or vmlinux.old, or whatever you named
>the kernel that you know used to work.

  Very important!!!

Quote:>That way, when the shiney new kernel doesn't work (and some day you
>_will_ build a kernel that doesn't work), you can just type
>vmlinux.old and the LILO prompt and you're back up and running --
>recompiling the kernel for another try!

   Above warning is valid!

--
[Tzeng Ruey Yuan] --yuan

 
 
 

1. compile new kernel => compile new iptables ?

just installed a new kernel and iptable stopped working.
I get the following error:

# iptables  -F FORWARD
iptables v1.2.4: can't initialize iptables table `filter': Module is wrong
version
Perhaps iptables or your kernel needs to be upgraded.

having kernel2.4.16 and iptables 1.2.4.  I check googles and the
netfilter-docs and the postings in googles says that this is, if iptables
wasnt compiled against the recent kernel and the netfilter-install needs
the kernel-sources in every step.

somehow this doesnt make sense to me. The netfilter-modules are included
with the kernel-sources and therefore change at every new kernel, but why
should I be forced to compile a new iptables-binary ever time I update my
kernel ?

thnx,
peter

--
peter pilsl

http://www.goldfisch.at

2. World Weather Database

3. Compiling New Kernel Question Is make install Necessary?

4. wu-ftpd, Solaris 2.6, compile trouble

5. Help needed on compiling and installing a new custumized kernel

6. startX

7. How to compile new kernel when system not installed ?

8. LILO mystery ... "LIL-"

9. Compiling New Kernel Question Is make install Necessary?

10. Instructions: Compiling an installing a new kernel.

11. compiling and installing new kernel in RedHat 5.2

12. Compile and install of a new kernel

13. Compiling New Kernel and installing