Hi SuSE list! I currently use SuSE 7.2 with kernel 2.4.4. I would try to make a kernel update, but since it's my first attempt to make it, I would appreciate if somebody helps me with a short description of the most important steps. First, I downloaded k_deflt-2.4.13-3.i386.rpm from /people/mantel . Is it correct? Also, do I need any other files? Then, how to perform a "minimum risk" installation? What I need to take care of? What to backup, if any? Etc... At the moment, at boot time, I have lilo menu with "linux" and "suse" options, pointing to images vmlinuz and vmlinuz.suse. Is it possible to install new kernel in such a way that it just gets added in lilo menu to the old ones, and than to choose which one I want to boot into? E.g, to have three options: "linux2.4.13", "linux" and "suse"... But, even if it's not possible, I still need short step-by-step guide. TIA rms
On Thu, Nov 01, 2001 at 05:13:55PM +0100, rms@telekom.yu wrote:
Hi SuSE list!
I currently use SuSE 7.2 with kernel 2.4.4.
I would try to make a kernel update, but since it's my first attempt to make it, I would appreciate if somebody helps me with a short description of the most important steps.
First, I downloaded k_deflt-2.4.13-3.i386.rpm from /people/mantel . Is it correct?
Yes.
Also, do I need any other files?
I don't think so. I don't think that 2.4.4 -> 2.4.13 requires a modutils update, although someone here will surely correct me.
Then, how to perform a "minimum risk" installation? What I need to take care of? What to backup, if any? Etc...
If you're paranoid, take a copy of the directory pointed to by the /usr/src/linux link (although it's big...), and /lib/modules/<kernel version> Do take a copy of /boot/vmlinuz and /boot/vmlinuz.suse. You may find these two files in the root directory (/) if you don't have a /boot partition.
At the moment, at boot time, I have lilo menu with "linux" and "suse" options, pointing to images vmlinuz and vmlinuz.suse. Is it possible to install new kernel in such a way that it just gets added in lilo menu to the old ones, and than to choose which one I want to boot into?
Yes. Edit either your /etc/lilo.conf manually, or add it as another option with YaST.
E.g, to have three options: "linux2.4.13", "linux" and "suse"...
But, even if it's not possible, I still need short step-by-step guide.
##Install the package ##move the /usr/src/linux link to point to the new version ##cd /usr/src/linux make config # or make menuconfig # or make xconfig ##(the first option is a simple text interface, the second is a semi-graphical ##(but still text-based) menu interface, and the third is an X-based graphical ##interface). ##Select the options you want ##Save and quit make clean; make dep; make bzImage cp arch/i386/boot/zImage /boot/vmlinuz.2.4.13 (or something like that) make modules; make modules_install mk_initrd (if you need an initrd) ##make sure that your lilo config setup is correct lilo ##check the output shutdown -r now ## enjoy your new kernel. -- David Smith Tel: +44 (0)1454 462380 (direct) STMicroelectronics Fax: +44 (0)1454 617910 1000 Aztec West TINA (ST only): (065) 2380 Almondsbury Home: 01454 616963 BRISTOL Mobile: 07932 642724 BS32 4SQ Work Email: Dave.Smith@st.com Home Email: David.Smith@ds-electronics.co.uk
Hi, It seems this scenario is assuming that I have the sources. But, I beleive I have binaries rpm... Is it possible? The file I downloaded is: k_deflt-2.4.13-3.i386.rpm. I thought the sources were in another file (kernel_source-2.4.13-3.i386.rpm, if I remember well...). Now I need even more help before I make first step... Thanks again rms Dave Smith wrote:
On Thu, Nov 01, 2001 at 05:13:55PM +0100, rms@telekom.yu wrote:
Hi SuSE list!
I currently use SuSE 7.2 with kernel 2.4.4.
I would try to make a kernel update, but since it's my first attempt to make it, I would appreciate if somebody helps me with a short description of the most important steps.
First, I downloaded k_deflt-2.4.13-3.i386.rpm from /people/mantel . Is it correct?
Yes.
Also, do I need any other files?
I don't think so. I don't think that 2.4.4 -> 2.4.13 requires a modutils update, although someone here will surely correct me.
Then, how to perform a "minimum risk" installation? What I need to take care of? What to backup, if any? Etc...
If you're paranoid, take a copy of the directory pointed to by the /usr/src/linux link (although it's big...), and /lib/modules/<kernel version>
Do take a copy of /boot/vmlinuz and /boot/vmlinuz.suse. You may find these two files in the root directory (/) if you don't have a /boot partition.
At the moment, at boot time, I have lilo menu with "linux" and "suse" options, pointing to images vmlinuz and vmlinuz.suse. Is it possible to install new kernel in such a way that it just gets added in lilo menu to the old ones, and than to choose which one I want to boot into?
Yes. Edit either your /etc/lilo.conf manually, or add it as another option with YaST.
E.g, to have three options: "linux2.4.13", "linux" and "suse"...
But, even if it's not possible, I still need short step-by-step guide.
##Install the package
##move the /usr/src/linux link to point to the new version
##cd /usr/src/linux
make config # or make menuconfig # or make xconfig
##(the first option is a simple text interface, the second is a semi-graphical ##(but still text-based) menu interface, and the third is an X-based graphical ##interface).
##Select the options you want
##Save and quit
make clean; make dep; make bzImage
cp arch/i386/boot/zImage /boot/vmlinuz.2.4.13 (or something like that)
make modules; make modules_install
mk_initrd (if you need an initrd)
##make sure that your lilo config setup is correct
lilo
##check the output
shutdown -r now
## enjoy your new kernel.
-- David Smith Tel: +44 (0)1454 462380 (direct) STMicroelectronics Fax: +44 (0)1454 617910 1000 Aztec West TINA (ST only): (065) 2380 Almondsbury Home: 01454 616963 BRISTOL Mobile: 07932 642724 BS32 4SQ Work Email: Dave.Smith@st.com Home Email: David.Smith@ds-electronics.co.uk
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I usually instyall both, the source and the default rpm. Make sure gcc is installed (under series d). Then go to /usr/src/linux and do a 'make cloneconfig'followed by 'make dep clean modules modules_install' you may get abi failing, do make menuconfig or make xconfig and remove binary emulation of other systems, unless you really need it (probably not, never has compiled on my machine). Finally, after 'make dep clean modules modules_install' has finished do a 'make install' then mk_initrd and then lilo. If it does fail to boot you can boot the installed system via the CD (there is an option, boot installed system, you have to enter which HD partition to boot from, eg /dev/hda1). Matt -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE74YFUWER6riTj1jIRAgsvAKCgZaCOJSy/PeRi9lRXzQZsDBCdnQCfWEug T4yDc0U2YCxmRAgnuPQDijw= =4rNT -----END PGP SIGNATURE-----
On Thu, Nov 01, 2001 at 05:59:31PM +0100, rms wrote:
Hi, It seems this scenario is assuming that I have the sources. But, I beleive I have binaries rpm... Is it possible? The file I downloaded is: k_deflt-2.4.13-3.i386.rpm. I thought the sources were in another file (kernel_source-2.4.13-3.i386.rpm, if I remember well...).
Now I need even more help before I make first step...
You will need the latest modutils, 2.4.10 I believe. I presume this comes with a binary rpm, I usually compile the source, so I cannot tell you that. They new modutils will work fine with older kernels. I have about 15 kernels in my lilo.conf :), from 2.4.4 .. 2.4.13 with stops in between. -- Regards Cliff
participants (4)
-
Cliff Sarginson
-
Dave Smith
-
rms
-
StarTux