LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
  Search this Thread
Old 12-16-2003, 09:27 PM   #1
thethinker101
Member
 
Registered: Nov 2003
Distribution: Slackware 9.1
Posts: 43

Rep: Reputation: 15
Question howto install new kernel in 9.2 r2


Sup guys, after RedHat made the announcement I left Redhat 9.0 and tried Fedora Core 1, ewww didnt like it, so i installed Mandrake 9.2 R2. I have to say it has given me less problems than Fedora did and havent had a complaint yet. Running seti@home right now to test a little of the stability.
I have a few newb questions though...
1. How does one go about upgrading the kernel in mandrake 9.2, i havent seen many 9.2 tutorials i guess because its still kinda new. I would like to also recompile it for i686. (BTW, i still want to keep my old kernel if possible. Is it possible to be able to boot into different kernels?)

2. How to compile rpm's from source to work on my MDK9.2. (Correct me if wrong, but dont u have to do this when there isnt a 9.2 rpm variant?)

3. This is kinda generic question: Can i make MDK rpm's from any type of Source RPM? And will it work nicely?

4. I kinda just downloaded 9.2 R2, so whats been upgraded since 9.2 and/or R1?

Thanks for anyones help.

Last edited by thethinker101; 12-16-2003 at 09:29 PM.
 
Old 12-16-2003, 10:03 PM   #2
colnago
Member
 
Registered: Nov 2003
Location: Canada
Distribution: ArchLinux
Posts: 324

Rep: Reputation: 30
Hi,

You don't have to compile the rpms from source if you do not want to, the '9.2' mdk ones are set up so that they will be 100% compatible with your system. A lot of times the older ones or 3rd party ones will work also, they are just not processed by mandrake people. Of course, there are exceptions, which is why they have the special rpms in the first place.

So yes, you can (usually) take any type of source rpm and compile it for mandrake. What will ruin your day you are the dependencies that you must resolve by hand to get everything to work (ie the compile of package x depends upon the previous existence of library y, which you ma or may not have).

As for the updates to 9.2, I have been using the 'update 5' set up by bluehawk on the redbox.cz site for a few days. It is 9.2 with some recent cooker additions. I had previously used the rc2, and I can say that there are not a lot of changes. The menus don't disappear when I use rpm, and if you have an (non compliant) LG drive, it will not scramble its firmware. But I do not notice the difference very much, I did not havce any issues with 9.2 rc2.

There is an rpm to upgrade the kernel, get the source too if you want to recompile. To do it you basically set up the .config file for the system you want (you can remove a lot of stuff that you know you dont have/need), then you compile it and then install. I will leave that for later, as there are several more authoritative posts on that here.

You can keep several kernels around, since the boot loader will give you the options as to which to use. The rpm install does this for you by default. It is very simple though, as you just need to edit a text file and set up a symbolic link. It depends if you are using lilo or grub. Grub is set up via /boot/grub/menu.lst and lilo is set up in /etc/lilo.conf. The symbolic links are in /boot, and this is where you would copy your compiled kernel if you do it by hand. the symbolic links are just there to specify the default kernel so the config file does not need to be changed. As I said, the rpm install does all of this., you could have a look, then install to see what is different. Then it might be easier for you to add your i686 recompile.

PS Here is a very nice compile instruction link, the one at http://tldp.org is offline at the moment.
http://www.vectorlinux.com/forum/viewtopic.php?t=122

Last edited by colnago; 12-16-2003 at 10:14 PM.
 
Old 12-17-2003, 03:10 PM   #3
Dr. Ephemeron
Member
 
Registered: Oct 2003
Distribution: Mandrake 10.1 & Fedora Core 4
Posts: 84

Rep: Reputation: 15
This link is exactly what you need for compiling the kernel in Mandrake 9.2, except be aware that there is a simlink in 9.2 to the initrd.img that you may want to preserve:

/boot/initrd.img -> /boot/initrd-x.x.x.img


http://tinyurl.com/zot0
 
Old 12-18-2003, 04:43 AM   #4
thethinker101
Member
 
Registered: Nov 2003
Distribution: Slackware 9.1
Posts: 43

Original Poster
Rep: Reputation: 15
thanx for info guys...
i downloaded kernel 2.6.0
If i remember correctly u have to recompile gcc or something dont you? Any idea what that is?
 
  


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
Howto: Make a bootable install CD with kernel 2.6 lemmy_kilmister Slackware 5 04-01-2006 03:45 AM
howto install an old kernel on FC3 umutkarahan Fedora 5 04-10-2005 11:11 AM
Kernel Problems. Howto Compile a new kernel from 4.2 with backwards compatibility ? ShoCkwave Linux - General 2 06-19-2004 07:02 AM
Howto install Woody with latest kernel? hellwoofer Debian 3 08-13-2003 01:15 PM
HOWTO install Slackware 8.1 with 2.4.19 kernel Fluggo Slackware 1 08-28-2002 02:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 07:37 AM.

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