LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 06-26-2007, 12:18 PM   #1
rm_-rf_windows
Member
 
Registered: Jun 2007
Location: Europe
Distribution: Ubuntu
Posts: 203

Rep: Reputation: 17
Mandriva: How do I update/upgrade my kernel...?


I'm a bit confused about updating my system in general because I haven't done so in a long, long time, and when I try, it says that there are no update! I've done so from the terminal...
Code:
 [root@localhost ~]# urpmi --auto-update
Tous les paquetages sont déjà installés
[root@localhost ~]#
...and from the GUI tool and get the same results.

My kernel has been acting funny (or at least the verbose information on boot) and I was wondering if it would be a good idea to update or upgrade. When I first installed Mandriva, the info listed on the screen during boot was impeccable (French accents in place, no problems). Now, the French accents are replaced by several different characters and I have to choose between "default" or "default.backup" configuration when booting. All of this occurred, I think, when I tried to install a driver (which, to add insult to injury, was the wrong one anyhow!)... This link explains some of what I was trying to do... Keep in mind that I'm no expert at all of this!:
http://www.linuxquestions.org/questi...d.php?t=560419
I would like to install some drivers, and, in fact, one of the drivers I want to install is a webcam driver which hasn't been tested on my current kernel (2.6.17-5mdv). It's only been tested on 2.6.15 and 2.6.18... Now don't scream... I'm already in the middle of installing this webcam driver... I'm about half way there... I keep getting an error message (if you want more information about this, check this out:
http://www.linuxquestions.org/questi...d.php?t=560059
Keep in mind that everything seems to be working okay on my system, more or less. However, I read that you need to include the kernel source with the actual kernel installation if you want to install extra drivers on your system, and I'm not sure that this is the case.

How can I know whether my kernel source is on my computer? Just out of curiosity, if I update/upgrade my system after installing a webcam driver, will that webcam driver keep working? Would I have to reinstall it? Are there other programs which would stop working if I updated/upgraded the kernel? Any other useful information regarding all of this?)...

Would it be a good idea to change my current kernel version to 2.6.18? Here's some more info:
Code:
[root@localhost ~]# urpmq --fuzzy  kernel
abituguru-kernel-2.6.18-rc4.4mdvsmp
adm8211-kernel-2.6.17-5mdv
adm8211-kernel-2.6.17-5mdventerprise
adm8211-kernel-2.6.17-5mdvlegacy
adm8211-kernel-2.6.18-rc7.1mdvsmp
cdemu-kernel-2.6.18-rc4.4mdvsmp
em8300-kernel-2.6.17-3mdvlegacy
fortune-kernelnewbies
fuse-kernel-2.6.17.8-tmb-server-3mdvsmp
fusion-kernel-2.6.17-1mdvsmp
ipw3945-kernel-2.6.17.9-tmb-server-1mdvsmp
kernel-2.6.17.10mdv
kernel-2.6.17.11mdv
kernel-2.6.17.13mdv
kernel-2.6.17.14mdv
kernel-2.6.17.5mdv
kernel-2.6.17.6mdv
kernel-2.6.17.8mdv
kernel-doc-2.6.17.10mdv
kernel-doc-2.6.17.11mdv
kernel-doc-2.6.17.13mdv
kernel-doc-2.6.17.14mdv
kernel-doc-2.6.17.5mdv
kernel-enterprise-2.6.17.10mdv
kernel-enterprise-2.6.17.11mdv
kernel-enterprise-2.6.17.13mdv
kernel-enterprise-2.6.17.14mdv
kernel-enterprise-2.6.17.5mdv
kernel-enterprise-2.6.17.6mdv
kernel-enterprise-2.6.17.8mdv
kernel-legacy-2.6.17.10mdv
kernel-legacy-2.6.17.11mdv
kernel-legacy-2.6.17.13mdv
kernel-legacy-2.6.17.14mdv
kernel-legacy-2.6.17.5mdv
kernel-legacy-2.6.17.6mdv
kernel-legacy-2.6.17.8mdv
kernel-linus-2.6.18.6-2mdv
kernel-linus-2.6.18.8-1mdv
kernel-linus-2.6.18.rc7.1mdv
kernel-linus-doc-2.6.18.6-2mdv
kernel-linus-doc-2.6.18.8-1mdv
kernel-linus-doc-2.6.18.rc7.1mdv
kernel-linus-smp-2.6.18.6-2mdv
kernel-linus-smp-2.6.18.8-1mdv
kernel-linus-smp-2.6.18.rc7.1mdv
kernel-linus-source-2.6.18.6-2mdv
kernel-linus-source-2.6.18.8-1mdv
kernel-linus-source-2.6.18.rc7.1mdv
kernel-linus-source-stripped-2.6.18.6-2mdv
kernel-linus-source-stripped-2.6.18.8-1mdv
kernel-linus-source-stripped-2.6.18.rc7.1mdv
kernel-multimedia-desktop-2.6.17.13-3mdv
kernel-multimedia-desktop-2.6.17.14-3mdv
kernel-multimedia-desktop-2.6.17.14-5mdv
kernel-multimedia-desktop-2.6.17.14-6mdv
kernel-multimedia-desktop-devel-2.6.17.14-5mdv
kernel-multimedia-desktop-devel-2.6.17.14-6mdv
kernel-multimedia-desktop-devel-latest
kernel-multimedia-desktop-latest
kernel-multimedia-desktop-smp-2.6.17.13-3mdv
kernel-multimedia-desktop-smp-2.6.17.14-3mdv
kernel-multimedia-desktop-smp-2.6.17.14-5mdv
kernel-multimedia-desktop-smp-2.6.17.14-6mdv
kernel-multimedia-desktop-smp-devel-2.6.17.14-5mdv
kernel-multimedia-desktop-smp-devel-2.6.17.14-6mdv
kernel-multimedia-desktop-smp-devel-latest
kernel-multimedia-desktop-smp-latest
kernel-multimedia-laptop-2.6.17.13-3mdv
kernel-multimedia-laptop-2.6.17.14-3mdv
kernel-multimedia-laptop-2.6.17.14-5mdv
kernel-multimedia-laptop-2.6.17.14-6mdv
kernel-multimedia-laptop-devel-2.6.17.14-5mdv
kernel-multimedia-laptop-devel-2.6.17.14-6mdv
kernel-multimedia-laptop-devel-latest
kernel-multimedia-laptop-latest
kernel-multimedia-laptop-smp-2.6.17.13-3mdv
kernel-multimedia-laptop-smp-2.6.17.14-3mdv
kernel-multimedia-laptop-smp-2.6.17.14-5mdv
kernel-multimedia-laptop-smp-2.6.17.14-6mdv
kernel-multimedia-laptop-smp-devel-2.6.17.14-5mdv
kernel-multimedia-laptop-smp-devel-2.6.17.14-6mdv
kernel-multimedia-laptop-smp-devel-latest
kernel-multimedia-laptop-smp-latest
kernel-multimedia-source-2.6.17.13-3mdv
kernel-multimedia-source-2.6.17.14-3mdv
kernel-multimedia-source-2.6.17.14-5mdv
kernel-multimedia-source-2.6.17.14-6mdv
kernel-multimedia-source-latest
kernel-multimedia-source-stripped-2.6.17.13-3mdv
kernel-multimedia-source-stripped-2.6.17.14-3mdv
kernel-multimedia-source-stripped-latest
kernel-source-2.6.17.10mdv
kernel-source-2.6.17.11mdv
kernel-source-2.6.17.13mdv
kernel-source-2.6.17.14mdv
kernel-source-2.6.17.5mdv
kernel-source-2.6.17.6mdv
kernel-source-2.6.17.8mdv
kernel-source-stripped-2.6.17.10mdv
kernel-source-stripped-2.6.17.11mdv
kernel-source-stripped-2.6.17.13mdv
kernel-source-stripped-2.6.17.14mdv
kernel-source-stripped-2.6.17.5mdv
kernel-source-stripped-2.6.17.6mdv
kernel-source-stripped-2.6.17.8mdv
kernel-tmb-desktop-2.6.17.13-4mdv
kernel-tmb-desktop-2.6.17.14-5mdv
kernel-tmb-desktop-2.6.17.14-6mdv
kernel-tmb-desktop-2.6.17.14-7mdv
kernel-tmb-desktop-latest
kernel-tmb-desktop-smp-2.6.17.13-4mdv
kernel-tmb-desktop-smp-2.6.17.14-5mdv
kernel-tmb-desktop-smp-2.6.17.14-6mdv
kernel-tmb-desktop-smp-2.6.17.14-7mdv
kernel-tmb-desktop-smp-latest
kernel-tmb-desktop586-2.6.17.13-4mdv
kernel-tmb-desktop586-2.6.17.14-5mdv
kernel-tmb-desktop586-2.6.17.14-6mdv
kernel-tmb-desktop586-2.6.17.14-7mdv
kernel-tmb-desktop586-latest
kernel-tmb-desktop586-smp-2.6.17.13-4mdv
kernel-tmb-desktop586-smp-2.6.17.14-5mdv
kernel-tmb-desktop586-smp-2.6.17.14-6mdv
kernel-tmb-desktop586-smp-2.6.17.14-7mdv
kernel-tmb-desktop586-smp-latest
kernel-tmb-server-2.6.17.13-4mdv
kernel-tmb-server-2.6.17.14-5mdv
kernel-tmb-server-2.6.17.14-6mdv
kernel-tmb-server-2.6.17.14-7mdv
kernel-tmb-server-latest
kernel-tmb-server-smp-2.6.17.13-4mdv
kernel-tmb-server-smp-2.6.17.14-5mdv
kernel-tmb-server-smp-2.6.17.14-6mdv
kernel-tmb-server-smp-2.6.17.14-7mdv
kernel-tmb-server-smp-latest
kernel-tmb-source-2.6.17.13-4mdv
kernel-tmb-source-2.6.17.14-5mdv
kernel-tmb-source-2.6.17.14-6mdv
kernel-tmb-source-2.6.17.14-7mdv
kernel-tmb-source-latest
kernel-tmb-source-stripped-2.6.17.13-4mdv
kernel-tmb-source-stripped-2.6.17.14-5mdv
kernel-tmb-source-stripped-2.6.17.14-6mdv
kernel-tmb-source-stripped-2.6.17.14-7mdv
kernel-tmb-source-stripped-latest
kernel-uml
kernel-win4lin-2.6.12.12mdk
kernel-win4lin-i586-up-1GB-2.6.12.12mdk
kernel-win4lin-i686-up-4GB-2.6.12.12mdk
kernel-win4lin-smp-2.6.12.12mdk
kernel-xen0-2.6.17.10mdv
kernel-xen0-2.6.17.11mdv
kernel-xen0-2.6.17.13mdv
kernel-xen0-2.6.17.14mdv
kernel-xen0-2.6.17.5mdv
kernel-xen0-2.6.17.6mdv
kernel-xen0-2.6.17.8mdv
kernel-xenU-2.6.17.10mdv
kernel-xenU-2.6.17.11mdv
kernel-xenU-2.6.17.13mdv
kernel-xenU-2.6.17.14mdv
kernel-xenU-2.6.17.5mdv
kernel-xenU-2.6.17.6mdv
kernel-xenU-2.6.17.8mdv
libafs-kernel-2.6.17.8-tmb-server-3mdvsmp
mcs7830-kernel-2.6.18-rc4.4mdv
ndiswrapper-kernel-2.6.18-rc4.4mdvsmp
nozomi-kernel-2.6.17.9-tmb-server-1mdvsmp
omnibook-kernel-2.6.17.9-mm-laptop-1mdvsmp
pwc-kernel-2.6.17-2mdvlegacy
qc-usb-messenger-kernel-2.6.17-2mdvlegacy
qvm86-kernel-2.6.18-rc4.4mdvsmp
spca5xx-kernel-2.6.17-2mdvlegacy
visdn-kernel-2.6.18-rc4.4mdvsmp
vloopback-kernel-2.6.17-2mdvlegacy
zaptel-kernel-2.6.17-5mdv
zaptel-kernel-2.6.17-5mdventerprise
zaptel-kernel-2.6.17-5mdvlegacy
zaptel-kernel-2.6.18-rc4.4mdvsmp
zd1211-kernel-2.6.18-rc4.4mdvsmp
[root@localhost ~]#
Many thanks.
 
Old 06-26-2007, 12:35 PM   #2
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Upgrading a kernel in a binary distribution like Mandriva is usually a matter of obtaining the new kernel and it's dependencies trough a package manager (easier; you can get the rpm packages too, and install manually, but it's a hazzle). The GUI update tools are, if I'm right, just the same as console update tools, or rather the GUI tools actually use the same console tools you do, so there's no difference which one you use.

I'm not familiar to urpmi, so can't help out with that. How old exactly is your Mandriva? Updates are available for a distribution usually only a limited time, like 6 or 12 or 18 months, depending on the distribution (Ubuntu offers normal versions, and has till day one long term support version which is supported for five years from release, a new one coming when the older one's support stops I think). If your Mandriva is not supported anymore, updates may not be there for it. Another thing is that packages for binary distributions are usually upgraded only if there are bugs or security flaws in them, and not every time a new version comes out (some binary distributions have newer packages and release them more often than others; some binary distributions' users have their own, unofficial reposities where you can get newer packages not officially released).

You can also recompile a kernel from source, it's rather easy, but it'll break up your kernel upgrade using the package manager. Kernel source is distributed, in your case, in an rpm file too; you can get it trough your package manager like you can get the kernels, if available. The source code version must match exactly the running kernel or it's no use. If you've got the source, it's usually in /usr/src/linux -- you can check that out first. A driver compilation usually warns you if you don't have the full kernel soure tree installed, as it needs it to continue. If you use a Mandriva kernel (which is probably patched in some way that the original vanilla kernel is not), you'll need the source from Mandriva too (so it matches the running kernel).
 
Old 07-07-2007, 07:55 AM   #3
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
LQ has a super search function, and Im encourage you to try it.

quote"when I try, it says that there are no update!"

To upgrade your kernel you'll need to update your package repo list (db)

do that by typing in a console, "urpmi.update -a" (-a for all)(without the quote marks) but there is no need if you've done it lately.

once that has finished, then type in "urpmi kernel" .

that should get you a nice and new shiny (unchanged) kernel. if not you may have to edit skip.list in /etc/urpmi/skip.list. Just #(hash) the line to skip from the skip list.

You may also need the sources for the kernel, may be hash that one too for now.

Once it is installed go back and reset the changes you made in skip.list to save upgrading for trivial updates.
btw, just go for the standard kernel (eg, kernel-2.6.17.14mdv), i586 for pentium class or better, smp for multiprocessor, ia64 for intel 64 bit and x86_64 for amd 64 bit processors

regards, Glenn.

(edit) you may also need to setup your package repositories, if so google easy-urpmi.

Follow the instructions given and try the above.

You should be able to undo any patches with a full kernel*.rpm install.

You'll need sources if you want to compile your sources into modules for the kernel. (kernel-sources for kernel modules)

Last edited by GlennsPref; 07-07-2007 at 08:00 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I upgrade Mandriva 2006's kernel to 2.6.15 or similar? EtherGhost Mandriva 2 11-01-2006 04:51 PM
Kernel upgrade/update?? Can I ... Basrah Linux - Newbie 2 03-02-2006 11:16 AM
Mandriva Update dianat100 Mandriva 10 12-13-2005 03:31 AM
update kernel on mandriva le 2005 chil326 Mandriva 1 08-30-2005 02:08 PM
Does Apt-get dist-upgrade automatically update the kernel? adamb10 Ubuntu 2 07-10-2005 10:57 AM


All times are GMT -5. The time now is 06:11 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration