LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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-21-2003, 12:58 PM   #1
emilsoft
LQ Newbie
 
Registered: Dec 2003
Distribution: Novell Linux Desktop 9
Posts: 14

Rep: Reputation: 0
Question Compiling & Installing Kernel 2.6.0 in Mandrake 9.1


Hey Everyone, I'm running Mandrake Linux 9.1 and I recently downloaded the source of Kernel 2.6.0 (Stable Release from kernel.org). Now I want to compile and install it but don't know how.

I'm a Linux n00b (not ashamed of saying it! lol) so please explain the steps that I have to take thourouly.

Thank You!
 
Old 12-21-2003, 01:06 PM   #2
Chessman
LQ Newbie
 
Registered: Jul 2002
Distribution: Mandrake 9.2
Posts: 7

Rep: Reputation: 0
Re: Compiling & Installing Kernel 2.6.0 in Mandrake 9.1

Quote:
Originally posted by emilsoft
Hey Everyone, I'm running Mandrake Linux 9.1 and I recently downloaded the source of Kernel 2.6.0 (Stable Release from kernel.org). Now I want to compile and install it but don't know how.

I'm a Linux n00b (not ashamed of saying it! lol) so please explain the steps that I have to take thourouly.

Thank You!
I'm a newbie too and am trying to do the same thing. I found this link in an earlier post. The only thing that concerns me is that the poster instructs you to delete the earlier kernel. I'm looking around for instructions that allow you to update without deleting the "safe" working kernels. :-)

Chessman
 
Old 12-21-2003, 05:03 PM   #3
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Remember, if your using Ozz's guide there's no need to run

make dep

with 2.6........
 
Old 12-21-2003, 05:23 PM   #4
estatik
Member
 
Registered: Oct 2003
Location: CA / NY
Distribution: Mandrake 9.1, 9.2, 10.1, Cooker
Posts: 145

Rep: Reputation: 15
AGGGHHHH!!! Sorry, had to let that one out, after getting 2.6.0.1 kernel installed on 9.2 ,which was painless and sweet, (check this post) I just installed 2.6.0.1 onto 9.1 and have been going crazy/delirious with the dependency issues. Plus, the fact that I was installing kde3.2 beta2, which might had something to do with clumps of hair laying besides me.

But overall, my 9.1 turned into a 9.2 with the 2.6 and 3.2...blah. blah, blah. I see a somewhat of an overall difference in performance, yet nothing spectacular; 9.2 seems more quicker in performance. KDE 3.2 is okay, just a bit more eye-candy (love the transparent panel, btw) and a few more additions I'm still trying to get used to. No real issues yet, except floppy drive won't read/write...devfs/sysfs/udev/mount point fsck'd???

I don't know if you want to use rpms (simplicity at it's best? ) but what I did was deleted all the CD sources and add the rpm.cooker/cooker rpm2/plf repositories, plus the pubkeys, and the hellish nightmare began. You will probably have to search different repositories for the latest kernel, as most haven't updated, or in the process of updating.

Oh, this chaotic fun was done on a test box with a fresh install of 9.1.

When is Mandrake10 coming out?
 
Old 12-21-2003, 06:34 PM   #5
emilsoft
LQ Newbie
 
Registered: Dec 2003
Distribution: Novell Linux Desktop 9
Posts: 14

Original Poster
Rep: Reputation: 0
Arrow

I think they should've waited for Kernel 2.6 and then released Mandrake 9.2, cause right now, I still have no idea on where to start and what to do with the Kernel sources that I've got!
 
Old 12-21-2003, 07:56 PM   #6
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
First print out your old 2.4 config file to use as a guide when running make xconfig.

WARNING Not responsible for typos or errors.
Starting from the directory where you downloaded the kernel.

mv linux-2.6.0.tar.bz2 /usr/src
cd /usr/src
tar xjf linux-2.6.0.tar.bz2
rm -f linux
ln -s linux-2.6.0 linux
cd linux
make mrproper
make xconfig #Configure using printout from 2.4 config file.
make all
make modules_install
cat arch/i386/boot/bzImage >/boot/vmlinuz-2.6.0
cp .config /boot/config-2.6.0
cp System.map /boot/System.map-2.6.0
cd /boot
mkinitrd initrd-2.6.0.img 2.6.0 #May not be necessary

Edit /etc/lilo.conf and add this:

image=/boot/vmlinuz-2.6.0
label="2.6.0"
initrd=/boot/initrd-2.6.0.img #May not be necessary
append=" your standard append"
root="your root partition"
read-only

Save lilo.conf
lilo
reboot
 
Old 12-22-2003, 01:05 PM   #7
Chessman
LQ Newbie
 
Registered: Jul 2002
Distribution: Mandrake 9.2
Posts: 7

Rep: Reputation: 0
Quote:
Originally posted by /bin/bash
First print out your old 2.4 config file to use as a guide when running make xconfig.
Sounds like a good plan... where do I find the old 2.4 config? :-)
 
Old 12-22-2003, 05:47 PM   #8
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
For Mandrake-9.2 there is a copy of the config file in /boot.
 
Old 12-22-2003, 06:40 PM   #9
emilsoft
LQ Newbie
 
Registered: Dec 2003
Distribution: Novell Linux Desktop 9
Posts: 14

Original Poster
Rep: Reputation: 0
Unhappy

OK, I did everything you said and everything went ok with no errors, but when I rebooted the system with the 2.6.0 Kernel, I got this and then the system halted:

Code:
Loading 2.6.0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 
BIOS data check successful
Uncompressing Linux. . . .   Ok, booting the kernel.
mount: error 19 mounting ext3 flags Kernel panic: No init found. Try passing init= option to kernel.
Now, I have no idea what this means!
 
Old 12-22-2003, 10:12 PM   #10
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
Do you have a symlink to new System.map-2.6.0? Don't know if it will help.

cd /boot
rm -f System.map
ln -s System.map-2.6.0 System.map

Then I think you have to rerun lilo.
 
Old 12-23-2003, 12:46 PM   #11
emilsoft
LQ Newbie
 
Registered: Dec 2003
Distribution: Novell Linux Desktop 9
Posts: 14

Original Poster
Rep: Reputation: 0
OK, I tried that, but now istead it shows the "Loading 2.6.0 . . . . . . " and then clears the screen, changes the screen resolution 3 times and then freezes at a black screen!

Any Help?
 
Old 12-23-2003, 02:26 PM   #12
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
Sounds like you are getting closer. Are you sure it's locked up? Maybe it's just booting without video. Does the harddrive activity continue? Sometimes you can wait till the harddrive activity stops then login and type startx and that works even though there is no video while booting.

See if you have console display driver support, that is in Driver section under Graphics support.
 
Old 12-23-2003, 02:51 PM   #13
emilsoft
LQ Newbie
 
Registered: Dec 2003
Distribution: Novell Linux Desktop 9
Posts: 14

Original Poster
Rep: Reputation: 0
Arrow

It automatically turns off the Num-Lock and the Hard Drive stops working, and I can't even see a text cursor anywere, just bacl screen!
 
Old 12-23-2003, 05:45 PM   #14
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
Check the console driver support. Also double check in filesystems and make sure you have root filesystem support built into the kernel. Also check in ATA/ATAPI/MFM/RLL support -> PCI IDE chipset suppoprt and make sure you have support for your chipset.
 
Old 12-23-2003, 08:41 PM   #15
emilsoft
LQ Newbie
 
Registered: Dec 2003
Distribution: Novell Linux Desktop 9
Posts: 14

Original Poster
Rep: Reputation: 0
Arrow

I checked the configuration files and it appears that my Kernel was compiled with all those features!
 
  


Reply



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
Compiling&Switching kernel in Suse 9.2 zenith_zth Linux - General 0 12-23-2004 07:40 AM
compiling kernel & checkinstall Fascistchicken Slackware 2 10-14-2004 05:03 AM
Installing (Compiling?) the new 2.6.1 kernel LilGryphMaster Linux - Newbie 9 01-31-2004 09:45 PM
Kernel Compiling Questions & HOWTO for Debian unstable gamehack Debian 3 01-04-2004 01:28 PM
Compiling and Installing Kernel under SuSE 9 bschneider Linux - Newbie 6 12-19-2003 09:46 AM

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

All times are GMT -5. The time now is 02:35 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