LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 01-30-2006, 02:08 AM   #1
edgjerp
Member
 
Registered: Dec 2004
Location: Trondheim, Norway
Distribution: kubuntu 10.04
Posts: 308

Rep: Reputation: 30
replace kernel-source


I just upgraded my hardware, including a 64-bit processor. how can I replace my 32-bit kernel-source package with the 64-bit one? urpmi just tells me that the package is already installed. (and yes, I have replaced my urpmi mirrors)

I use mandriva 2006.0 on an AMD Athlon 64.

edit: of course I would like to replace other packages as well

Last edited by edgjerp; 01-30-2006 at 02:35 AM.
 
Old 01-30-2006, 03:42 AM   #2
jschiwal
Moderator
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,263

Rep: Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562
The source is probably the same. It is compiled at 64 bit. Many .src.rpm's are the same. There are separate binaries, built from the same source. The value of the "uname" command determines how the source is built. Some people override this to produce several kernels of for different targets, simultaneously.

Last edited by jschiwal; 01-30-2006 at 03:44 AM.
 
Old 01-30-2006, 04:43 AM   #3
edgjerp
Member
 
Registered: Dec 2004
Location: Trondheim, Norway
Distribution: kubuntu 10.04
Posts: 308

Original Poster
Rep: Reputation: 30
the kernel-source packages are not identical, the x86_64 version is about 600 kB bigger

seems urpmi, and possibly other parts of the system, believes I still have an i586 CPU, how can I change that? wha t address should I use for server list?

when I try to go around urpmi and use kpackage, to install the x86_64 kernel source, it protests, saying that this package requires an x86_64 architecture

uname -p reveals:

AMD Athlon(tm) 64 Processor 3700+

Last edited by edgjerp; 01-30-2006 at 04:59 AM.
 
Old 01-30-2006, 09:05 PM   #4
jschiwal
Moderator
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,263

Rep: Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562
Rather than trying to upgrade piecemeal, it may be better to upgrade or do a fresh install. Besides the different kernel, the /lib structure and contents will be different. Compiling for a different size kernel would be possible by cross compiling ( different target platform.), but this would be done if you were compiling for a different machine.

Take a look at both the "uname -i" and "uname -p" outputs. You are running a 32 bit platform on a 64 bit chip. For my laptop, they both say "x86_64".

You could ftp for the package and use "unrpm" or the Midnight Commander program to extract the contents if you want the kernel source. Also, the unpatched generic kernel is available at "www.kernel.org".
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-get kernel-source is installing the wrong kernel source. JordanH Ubuntu 10 07-08-2005 05:42 PM
difference between "pure" kernel source, and .deb packaged kernel source microsoft/linux Debian 1 06-19-2005 10:28 PM
Will Slack upgrade replace kernel? slackist Slackware 4 04-06-2005 01:37 PM
HowDo I replace my existing kernel with a precompiled distro kernel ? gmartin Slackware 1 01-06-2004 09:46 PM
problem in perl replace command with slash (/) in search/replace string ramesh_ps1 Red Hat 4 09-10-2003 01:04 AM


All times are GMT -5. The time now is 10:54 AM.

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
Open Source Consulting | Domain Registration