[opensuse] How do I manage kernels in opensuse
I would like to try out the realtime kernel but I have problems getting my Nvidia drivers working. I have the kernel-source installed. I wonder: -How do I manage kernel symlinks in openSUSE? -How do I get the Nvidia driver working? In Gentoo I would switch the kernel symlink to the rt kernel and reinstall the Nvidia driver then reboot in the new kernel. What is the openSUSE way? -- Regards, Aniruddha Please adhere to the OpenSUSE_mailing_list_netiquette http://en.opensuse.org/OpenSUSE_mailing_list_netiquette -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Aniruddha wrote:
I would like to try out the realtime kernel but I have problems getting my Nvidia drivers working. I have the kernel-source installed. I wonder:
-How do I manage kernel symlinks in openSUSE? -How do I get the Nvidia driver working?
In Gentoo I would switch the kernel symlink to the rt kernel and reinstall the Nvidia driver then reboot in the new kernel. What is the openSUSE way?
While running the new kernel, invoke the nvidia installer? Joe -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, 2007-10-29 at 15:37 -0700, Sloan wrote:
Aniruddha wrote:
I would like to try out the realtime kernel but I have problems getting my Nvidia drivers working. I have the kernel-source installed. I wonder:
-How do I manage kernel symlinks in openSUSE? -How do I get the Nvidia driver working?
In Gentoo I would switch the kernel symlink to the rt kernel and reinstall the Nvidia driver then reboot in the new kernel. What is the openSUSE way?
While running the new kernel, invoke the nvidia installer?
Joe
I tried that by removing and reinstalling the nvidia driver with zypper. unfortunately this didn't work. What else can I try? It should also be possible to do this before rebooting if you change the symlink to the kernel source. Is there a openSUSE tool for this? -- Regards, Aniruddha Please adhere to the OpenSUSE_mailing_list_netiquette http://en.opensuse.org/OpenSUSE_mailing_list_netiquette -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Aniruddha wrote:
On Mon, 2007-10-29 at 15:37 -0700, Sloan wrote:
Aniruddha wrote:
I would like to try out the realtime kernel but I have problems getting my Nvidia drivers working. I have the kernel-source installed. I wonder:
-How do I manage kernel symlinks in openSUSE? -How do I get the Nvidia driver working?
In Gentoo I would switch the kernel symlink to the rt kernel and reinstall the Nvidia driver then reboot in the new kernel. What is the openSUSE way?
While running the new kernel, invoke the nvidia installer?
Joe
I tried that by removing and reinstalling the nvidia driver with zypper. unfortunately this didn't work. What else can I try?
It should also be possible to do this before rebooting if you change the symlink to the kernel source. Is there a openSUSE tool for this?
AFAIK the suse tools will manage the suse nvidia packages, which are built for the suse kernels - but if you're using the -rt kernel, you're going to be downloading the driver from nvidia.com and doing a manual install. Also, IIRC there are ways to build for a kernel you're not running, you'd have to run the nvidia installer with the help option to get the exact syntax needed, as I've never done that, but only remember seeing something about it in the nvidia installer options. Joe -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, 2007-10-29 at 16:27 -0700, Sloan wrote:
I tried that by removing and reinstalling the nvidia driver with zypper. unfortunately this didn't work. What else can I try?
It should also be possible to do this before rebooting if you change the symlink to the kernel source. Is there a openSUSE tool for this?
AFAIK the suse tools will manage the suse nvidia packages, which are built for the suse kernels - but if you're using the -rt kernel, you're going to be downloading the driver from nvidia.com and doing a manual install.
Also, IIRC there are ways to build for a kernel you're not running, you'd have to run the nvidia installer with the help option to get the exact syntax needed, as I've never done that, but only remember seeing something about it in the nvidia installer options.
Joe
Thank you for answer. By looking around in yast2 package manager I determined that kernel-rt is at version 2.6.22.5-31. My current kernel is version 2.6.22.9-0.4. The current symlink points to 2.6.22.9-0.4. Changing this to linux-2.6.22.5-31-obj (with ln -sfn linux-2.6.22.5-31-obj) should solve the Nvidia driver issue. Is there an easy way to manage kernel symlinks in openSUSE? ls -l linux lrwxrwxrwx 1 root root 18 2007-10-14 20:49 linux -> linux-2.6.22.9-0.4 /usr/src> ls linux linux-2.6.22.9-0.4 linux-obj linux-2.6.22.5-31-obj linux-2.6.22.9-0.4-obj packages -- Regards, Aniruddha Please adhere to the OpenSUSE_mailing_list_netiquette http://en.opensuse.org/OpenSUSE_mailing_list_netiquette -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Aniruddha wrote:
On Mon, 2007-10-29 at 16:27 -0700, Sloan wrote:
I tried that by removing and reinstalling the nvidia driver with zypper. unfortunately this didn't work. What else can I try?
It should also be possible to do this before rebooting if you change the symlink to the kernel source. Is there a openSUSE tool for this?
AFAIK the suse tools will manage the suse nvidia packages, which are built for the suse kernels - but if you're using the -rt kernel, you're going to be downloading the driver from nvidia.com and doing a manual install.
Also, IIRC there are ways to build for a kernel you're not running, you'd have to run the nvidia installer with the help option to get the exact syntax needed, as I've never done that, but only remember seeing something about it in the nvidia installer options.
Joe
Thank you for answer. By looking around in yast2 package manager I determined that kernel-rt is at version 2.6.22.5-31. My current kernel is version 2.6.22.9-0.4.
The current symlink points to 2.6.22.9-0.4. Changing this to linux-2.6.22.5-31-obj (with ln -sfn linux-2.6.22.5-31-obj) should solve the Nvidia driver issue.
The drivers built for the suse kernel won't work with the -rt kernel. I'd expect at the very least, no hardware-accelerated 3D, and perhaps a crash upon attempting to load the drivers.
Is there an easy way to manage kernel symlinks in openSUSE?
The ln command seems easy to me - but then again, I guess I'm not familiar with whatever "symlink management" software you've used before. In any case, I've not had to do any sort of manual kernel symlink management on suse. The kernel versions I've built all coexist happily in /usr/src/ along with the suse supplied kernels and the init scripts are smart enough to load the correct modules on boot. Joe -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Aniruddha wrote:
I would like to try out the realtime kernel but I have problems getting my Nvidia drivers working. I have the kernel-source installed. I wonder:
-How do I manage kernel symlinks in openSUSE? -How do I get the Nvidia driver working?
In Gentoo I would switch the kernel symlink to the rt kernel and reinstall the Nvidia driver then reboot in the new kernel. What is the openSUSE way?
There's no reason to switch the kernel symlink. You should be able to just add the new kernal to the grub files in the /boot directory (this allows you to boot to either the regular kernel or the realtime kernel by just selecting a menu item at boot time. read up grub... unfortunate the complete documentation in one of those dispicable Texinfo files rather than a man file. Unless you use emacs regularly, pinfo is easier to use than info, so pinfo grub. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, 2007-10-29 at 21:39 -0400, Aaron Kulkis wrote:
There's no reason to switch the kernel symlink.
You should be able to just add the new kernal to the grub files in the /boot directory
(this allows you to boot to either the regular kernel or the realtime kernel by just selecting a menu item at boot time.
read up grub... unfortunate the complete documentation in one of those dispicable Texinfo files rather than a man file.
Unless you use emacs regularly, pinfo is easier to use than info, so
pinfo grub.
Ok I can do that :). I also discovered that there is a kernel source available kernel-rt. You only see it when you search for it in zypper (in yast2 it's invisible). I currently have the 2.6.22.9-0.4 kernel-source version installed, how do I install the 2.6.22.5-31 kernel-source next to it? # zypper search kernel | package | kernel-rt | 2.6.22.5-31 | x86_64 | package | kernel-rt_debug | 2.6.22.5-31 | x86_64 | package | kernel-source | 2.6.22.5-31 | x86_64 | package | kernel-source | 2.6.22.9-0.4 | x86_64 | package | kernel-syms | 2.6.22.5-31 | x86_64 | package | kernel-syms | 2.6.22.9-0.4 | x86_64 # yast [Filterv] [Actionsv] ┌───────────────────────────────────────────────────── │ │Name │Avail. Vers.│Inst. Vers.│ │ │kernel-bigsmp │2.6.22.9 │ │ │ │kernel-debug │2.6.22.5 │ │ │ i │kernel-default │2.6.22.9 │2.6.22.9 │ │ i │kernel-docs │2.6.22.5 │2.6.22.5 │ │ i │kernel-rt │2.6.22.5 │2.6.22.5 │ │ │kernel-rt_debug │2.6.22.5 │ │ │ i │kernel-source │2.6.22.9 │2.6.22.9 │ │ │kernel-syms │2.6.22.9 │ │ │ │kernel-vanilla │2.6.22.5 │ │ │ i │kernel-xen │2.6.22.9 │2.6.22.9 │ │ │kernel-xenpae │2.6.22.9 │ │ │ i │linux-kernel-headers │2.6.22 │2.6.22 │ │ i │linux-kernel-nutshell│1 │1 │ │ │nfs-kernel-server │1.1.0 │ │ │ -- Regards, Aniruddha Please adhere to the OpenSUSE_mailing_list_netiquette http://en.opensuse.org/OpenSUSE_mailing_list_netiquette -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 30 October 2007 10:09:13 am Aniruddha wrote:
I currently have the 2.6.22.9-0.4 kernel-source version installed, how do I install the 2.6.22.5-31 kernel-source next to it?
Whatever method you use check symlinks /boot/vmlinuz for kernel, /boot/initrd for initrd. and /usr/src/linux and /usr/src/linux-obj for sources. I installed it recently, but I can't recall did installation changed symlinks. I can't recall why I didn't used it. Did nvidia compilation failed, or server didn't started. -- Regards, Rajko. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Rajko M. wrote:
[...] Whatever method you use check symlinks /boot/vmlinuz for kernel, /boot/initrd for initrd. and /usr/src/linux and /usr/src/linux-obj for sources.
The last two links should not be required. In fact, these links should not be used at all. Use /lib/modules/`uname -r`/{build,source}. Th. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Aniruddha wrote:
On Mon, 2007-10-29 at 21:39 -0400, Aaron Kulkis wrote:
There's no reason to switch the kernel symlink.
You should be able to just add the new kernal to the grub files in the /boot directory
(this allows you to boot to either the regular kernel or the realtime kernel by just selecting a menu item at boot time.
read up grub... unfortunate the complete documentation in one of those dispicable Texinfo files rather than a man file.
Unless you use emacs regularly, pinfo is easier to use than info, so
pinfo grub.
Ok I can do that :). I also discovered that there is a kernel source available kernel-rt. You only see it when you search for it in zypper (in yast2 it's invisible).
I currently have the 2.6.22.9-0.4 kernel-source version installed, how do I install the 2.6.22.5-31 kernel-source next to it?
Aniruddha, That will be no problem. The kernel will install in /boot and the source will go in its own directory in /usr/src. I have 11 different kernels and kernel sources available for booting on a openSuSE 10 server. Like Rajko says, what determines which kernel is "active" is the sym links in boot that point to vmlinuz and the /usr/src/linux symlink that points to the "active" kernel source tree. No tricks, just treats ;-) -- David C. Rankin, J.D., P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, 2007-10-31 at 00:38 -0500, David C. Rankin wrote:
Ok I can do that :). I also discovered that there is a kernel source available kernel-rt. You only see it when you search for it in zypper (in yast2 it's invisible).
I currently have the 2.6.22.9-0.4 kernel-source version installed, how do I install the 2.6.22.5-31 kernel-source next to it?
Aniruddha,
That will be no problem. The kernel will install in /boot and the source will go in its own directory in /usr/src. I have 11 different kernels and kernel sources available for booting on a openSuSE 10 server. Like Rajko says, what determines which kernel is "active" is the sym links in boot that point to vmlinuz and the /usr/src/linux symlink that points to the "active" kernel source tree. No tricks, just treats ;-)
--
Great! Only how do I let the package manager know that I want to install a different version? # zypper in kernel-source gives me: "skipping package 'kernel-source' (already installed) Nothing to do." And # zypper in kernel-source-2.6.22.5-31 gives me: "package 'kernel-source-2.6.22.5-31' not found Nothing to do." -- Regards, Aniruddha Please adhere to the OpenSUSE_mailing_list_netiquette http://en.opensuse.org/OpenSUSE_mailing_list_netiquette -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, 2007-10-31 at 10:35 +0100, Aniruddha wrote:
Great! Only how do I let the package manager know that I want to install a different version? # zypper in kernel-source gives me: "skipping package 'kernel-source' (already installed) Nothing to do."
And # zypper in kernel-source-2.6.22.5-31 gives me: "package 'kernel-source-2.6.22.5-31' not found Nothing to do."
-- Regards,
Aniruddha
Fortunately I can specify a version smart, however I am still trying to find out how to do the same in zypper/yast2. # smart install kernel-source-2.6.22.5-31 Loading cache... Updating cache... ############################################################################ [100%] Computing transaction... Downgrading packages (1): kernel-source-2.6.22.5-31@x86_64 49.3MB of package files are needed. 14.9kB will be freed. Confirm changes? (Y/n): Fetching packages... -> http://download.opensuse.org/distribution/10.3/repo/oss/suse/x86_64/kernel-s... kernel-source-2.6.22.5-31.x86_64.rpm ############################################################################ [100%] Committing transaction... Preparing... ############################################################################ [ 0%] 1:Installing kernel-source ############################################################################ [ 50%] Output from kernel-source-2.6.22.5-31@x86_64: Changing symlink /usr/src/linux from linux-2.6.22.9-0.4 to linux-2.6.22.5-31 Changing symlink /usr/src/linux-obj from linux-2.6.22.9-0.4-obj to linux-2.6.22.5-31-obj 2:Cleaning kernel-source ############################################################################ [100%] -- Regards, Aniruddha Please adhere to the OpenSUSE_mailing_list_netiquette http://en.opensuse.org/OpenSUSE_mailing_list_netiquette -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Aniruddha wrote:
On Wed, 2007-10-31 at 10:35 +0100, Aniruddha wrote:
Great! Only how do I let the package manager know that I want to install a different version? # zypper in kernel-source gives me: "skipping package 'kernel-source' (already installed) Nothing to do."
And # zypper in kernel-source-2.6.22.5-31 gives me: "package 'kernel-source-2.6.22.5-31' not found Nothing to do."
-- Regards,
Aniruddha
Fortunately I can specify a version smart, however I am still trying to find out how to do the same in zypper/yast2.
# smart install kernel-source-2.6.22.5-31 Loading cache... Updating cache... ############################################################################ [100%]
Computing transaction...
Downgrading packages (1): kernel-source-2.6.22.5-31@x86_64
49.3MB of package files are needed. 14.9kB will be freed.
Confirm changes? (Y/n):
Fetching packages... -> http://download.opensuse.org/distribution/10.3/repo/oss/suse/x86_64/kernel-s... kernel-source-2.6.22.5-31.x86_64.rpm ############################################################################ [100%]
Committing transaction... Preparing... ############################################################################ [ 0%] 1:Installing kernel-source ############################################################################ [ 50%] Output from kernel-source-2.6.22.5-31@x86_64: Changing symlink /usr/src/linux from linux-2.6.22.9-0.4 to linux-2.6.22.5-31 Changing symlink /usr/src/linux-obj from linux-2.6.22.9-0.4-obj to linux-2.6.22.5-31-obj 2:Cleaning kernel-source ############################################################################ [100%]
I don't know how to do it in Yast anymore. Yast changed between opensuse 10.0 and 10.3. The good responses I have obtained from the list suggest a manual download of the kernels and patches and then installing from the command line with "rpm -ivh" Evidently, as you have found, you can do it with smart. However, I have never used smart, so I can't speak to it. See my earlier post of "HowTo Install New 2.6.23.1-900.ccj58-default kernel and SAVE my present one too" Good luck. -- David C. Rankin, J.D., P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (6)
-
Aaron Kulkis
-
Aniruddha
-
David C. Rankin
-
Rajko M.
-
Sloan
-
Thomas Hertweck