LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-14-2003, 11:43 PM   #1
muzicman82
Member
 
Registered: Nov 2003
Posts: 79

Rep: Reputation: 15
Mandrake 9.2: Kernel Recompile / Update


Ok, I am a total Linux newbie, and I just installed Mandrake 9.2 Final.

I have been advised by several to update the Kernel hoping that it will solve many of the issues I am having with my Dell Inspiron 8000. I've checked out Linux-Laptop site and nothing seems relavant enough for me.

So.. I have read that 9.2 doesn't have the Kernel source installed. So, I'd like to know, in newbie-detail, how to install, configure, and recompile the current Kernel, which is 2.4.22. Then, how do I update the Kernel to 2.60 test 9?

Any info would rock!
 
Old 11-15-2003, 10:05 AM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,333

Rep: Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547
Here is a HOWTO for compiling kernels.


http://www.linux.org/docs/ldp/howto/Kernel-HOWTO/



___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 11-15-2003, 03:11 PM   #3
tricky_linux
Member
 
Registered: Jul 2003
Distribution: Red Hat Linux 9.0; Old and Solid
Posts: 674

Rep: Reputation: 30
but how did you get Mandrake 9.2??
Did you pay for it ?
If you had download it free, please post the links.
 
Old 11-15-2003, 03:52 PM   #4
muzicman82
Member
 
Registered: Nov 2003
Posts: 79

Original Poster
Rep: Reputation: 15
I read that HOWTO, and tried it, but I got a ton of errors in the process... too many to troubleshoot just one.

I had to install the Kernel source from the CDs AFTER install of Mandrake 9.2. They didn't include it by default. So, all of the steps to back up my configs didn't really apply...

I'm lost!

Is there an easy way to just get 2.60 test 9 and patch against 2.4.22? Does it matter what you're patching against?

I don't remember where I downloaded from... but if you search Google, you'll find a few.
 
Old 11-15-2003, 05:15 PM   #5
Nu-Bee
Member
 
Registered: Dec 2002
Location: USA
Distribution: Mandrake 9.2
Posts: 269

Rep: Reputation: 30
Re: Mandrake 9.2: Kernel Recompile / Update

Quote:
Originally posted by muzicman82
Ok, I am a total Linux newbie, and I just installed Mandrake 9.2 Final.

I have been advised by several to update the Kernel hoping that it will solve many of the issues I am having with my Dell Inspiron 8000. I've checked out Linux-Laptop site and nothing seems relavant enough for me.

So.. I have read that 9.2 doesn't have the Kernel source installed. So, I'd like to know, in newbie-detail, how to install, configure, and recompile the current Kernel, which is 2.4.22. Then, how do I update the Kernel to 2.60 test 9?

Any info would rock!
It's simple...see:

http://www.mandrakesecure.net/en/kernelupdate.php
 
Old 11-15-2003, 07:29 PM   #6
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,333

Rep: Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547
"Is there an easy way to just get 2.60 test 9 and patch against 2.4.22? Does it matter what you're patching against?"

A patch file works only against a very specific base file. So, no to patching 2.60 anything against 2.4.22. Some of the distributors such as SuSE and Red Hat sometimes build some of the latest kernel code into back releases but this is not a trivial task.

You do not have to install the kernels in version order and you do not have to use kernel source packaged by Mandrake. If you are interested in 2.60 test 9 then download it from www.kernel.org and install it (dual boot), regardless of what Mandrake kernel you are using. Personally, I prefer to use source from www.kernel.org rather than SuSE, not because there is anything wrong with SuSE, but because the SuSE kernel is always several months behind www.kernel.org.


___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 11-15-2003, 07:32 PM   #7
muzicman82
Member
 
Registered: Nov 2003
Posts: 79

Original Poster
Rep: Reputation: 15
I guess I'm still having a hard time finding out how to simply install a new kernel.

I'll give that site a shot.. Thanx.
 
Old 11-15-2003, 08:12 PM   #8
Gary987
Member
 
Registered: Oct 2003
Distribution: Gentoo, Mint, Ubuntu, Vector
Posts: 174

Rep: Reputation: 17
Hi all.

Firstly, what are your hardware issues?

You may not have to be so drastic

Secondly, Upgrading your kernel to 2.6 is not a task for the faint of heart..

Mandrake customizeds it's kernels, so if you do decide to get the 2.6prex kernel from www.kernel.org be prepared for some extra headaches..

Mandrake has made additions to their linux kernel, one major one being supermount the way in which drives are mounted. You may be in trouble here.. It might be good to learn about mtab and fstab before proceeding or your drives will not all be mounted.

After reading the linux how to compile the kernel thing... it would be wise to write down all the modules that Mandrake (lsmod) is running ie sound driver, video driver, etc and make sure that at a bare minimun you make sure they are compiled in.

If at all possilbe wait until Mandrake releases kernel-source-2.6xxx rpm. This will ensure that you won't lose maximum functionality of your system..

Either way , here's the skinny of it..I'd back up EVERYTHING first... *just in case*

grab the kernel,
become root
install the files to /usr/src/linux
make xconfig
*heres where a gui menu comes up.. select what best fits your computer..* Most of the options should be already fine.. but make sure there is support being compiled in for your computer setup... for now don't worry too much about getting rid of all the extra stuff*
*save and exit*
make dep
make bzImage
make modules
make modules_install
depmod -a
cd /usr/src/linux/arch/i386/boot
cp bzImage /boot
edit /etc/lilo.conf and add your kernel.
lilo
reboot select your new kernel and hope for the best..

READ THE HOW-TO's THOUROUGHLY to grasp these steps better..


Have fun

Gary
 
Old 11-16-2003, 12:31 AM   #9
muzicman82
Member
 
Registered: Nov 2003
Posts: 79

Original Poster
Rep: Reputation: 15
Well I was reading the HOWTO listed above, but WHILE I was reading it, it was "removed for review". I can't find anything anywhere else..

I started that HOWTO... and it compiled ok I think... However, the make modules_install didn't work.

I have a problem now though, when Lilo tries to load, I get a screen full of 9's. I've run Lilo again, but that doesn't fix it.

I've been booting using a CD which is working fine.

I'm actually trying the HOWTO with Kernel 2.5.75.

Any other info would rock...
 
  


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
trying to update kernel using mandrake 10 surlymike Mandriva 1 03-28-2005 10:25 PM
can not recompile kernel 2.6.7 after update with swaret alexrait1 Slackware 1 07-09-2004 08:22 AM
How do I recompile my own kernel for Mandrake? TheOneAndOnlySM Linux - Newbie 3 08-02-2003 06:49 PM
recompile mandrake kernel to let e100. know nourou6 Linux - Networking 1 01-06-2002 11:13 AM
recompile mandrake kernel to let e100. nourou6 Linux - Networking 0 01-06-2002 06:40 AM

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

All times are GMT -5. The time now is 10:29 PM.

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