LinuxQuestions.org
Visit Jeremy's Blog.
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 01-12-2004, 12:44 AM   #1
fuzzhead85
Member
 
Registered: Aug 2003
Posts: 42

Rep: Reputation: 15
installing a mandrake 2.6 kernel


i got the source on there and configured it, and from what i remember with mandrake's 2.4 kernels, they have their own series of make commands. are they different with 2.6 and if so how?
 
Old 01-12-2004, 01:00 AM   #2
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
It should be the same. To make sure, look at the README file in the source tree. It will tell you what steps to take.
 
Old 01-12-2004, 01:52 AM   #3
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
If the kernel is like mine on Gentoo the commands for 2.6 are

Code:
make 
make modules_install
That was all I did and I'm running it now.

Code:
bash-2.05b# uname -r
2.6.0-test11
bash-2.05b#
That help?

 
Old 01-12-2004, 09:00 AM   #4
Kramer
Member
 
Registered: Aug 2003
Location: Somewhere south of sanity...
Distribution: Mandrake 9.1
Posts: 550

Rep: Reputation: 30
Quote:
Originally posted by dalek
If the kernel is like mine on Gentoo the commands for 2.6 are

Code:
make 
make modules_install
That was all I did and I'm running it now.

Code:
bash-2.05b# uname -r
2.6.0-test11
bash-2.05b#
That help?

Are you running the 2.6 on the Mandrake 9.1?
 
Old 01-12-2004, 11:09 AM   #5
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
Quote:
Originally posted by Kramer
Are you running the 2.6 on the Mandrake 9.1?
Don't hardly use Mandrake any more. This Gentoo is so much faster and more up to date. I am more up to date than 9.2 till it ain't funny. I just emerge sync and then emerge -u world and it downloads, compiles and installs everything on the system.

I may try it though sometime. I may just point the bootloader to the other root and see what happens.

That may get complicated. I'll figure out something though.

Later

 
Old 01-12-2004, 02:05 PM   #6
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Rep: Reputation: 30
*first mv your current kernel (e.g. at /boot/vmlinuz) to /boot/<kernelname>.old
*alter /etc/lilo.conf:
*change 'image=/boot/<kernelname>' to 'image=/boot/<kernelname>.old' and 'label=<currentlabel>' to 'label=<currentlabel>.old' on the entry you boot from
*make a second entry exactly the same as the one you altered except for 'image=/boot/vmlinuz' and 'label=<currentlabel>'
now your lilo.conf looks like:
Code:
...
image=/boot/vmlinuz-2.4.22-10mdk
        label="linux-nonfb"
        root=/dev/hda2
        initrd=/boot/initrd.img
        append="devfs=mount splash=silent splash=silent splash=silent resume=/dev/hda5"
        read-only
image=/boot/vmlinuz
        label="linux"
        root=/dev/hda2
        initrd=/boot/initrd.img
        append="devfs=mount splash=silent splash=silent splash=silent resume=/dev/hda5 
image=/boot/vmlinuz.old
        label="linux.old"
        root=/dev/hda2
        initrd=/boot/initrd.img
        append="devfs=mount splash=silent splash=silent splash=silent resume=/dev/hda5 splash=silent"
        vga=788
        read-only
image=/boot/vmlinuz-2.4.22-10mdk
        label="failsafe"
        root=/dev/hda2
        initrd=/boot/initrd.img
        append="failsafe devfs=nomount splash=silent splash=silent splash=silent resume=/dev/hda5"
        read-only
*then just type:

make config (or make menuconfig)
make
make install
make modules_install
lilo (this is very important DO NOT FORGET!!! Else you won't be able to boot!)

That's it! This way, you can use the old entry as a backup kernel if it would happen that things didn't turn out as expected...
 
Old 01-12-2004, 02:27 PM   #7
tcaptain
LQ Addict
 
Registered: Jul 2002
Location: Montreal
Distribution: Gentoo 2004 from stage 1 baby!
Posts: 1,403

Rep: Reputation: 45
I'm also going to try installing a 2.6 kernel. I have the source installed...but on a lark I tried to rpm the kernel-2.6 package...which says it needs a bunch of updated packages (which I hadn't found when looking that time) ...

Does compiling from the source require new packages also? Or can I just jump my mdk 9.2 install into a 2.6 kernel by compiling it the normal way?
 
Old 01-12-2004, 02:49 PM   #8
colnago
Member
 
Registered: Nov 2003
Location: Canada
Distribution: ArchLinux
Posts: 324

Rep: Reputation: 30
You should install the packages, as they are needed by the new kernel. There should only be 4 or 5 of them I think. When I updated, i remember they were much smaller in size than the kernel source, so it is not that bad.

There is a thread around with the minimum version of these packages, if i find it, I will link it here.
 
Old 01-12-2004, 02:50 PM   #9
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Rep: Reputation: 30
yep, you can
 
Old 01-12-2004, 02:57 PM   #10
wldkos
Member
 
Registered: Jan 2003
Distribution: Mandrake 9.2 =<3 and Red Hat 8.0 (server)
Posts: 242

Rep: Reputation: 30
no one said anything about make dep
 
Old 01-12-2004, 02:58 PM   #11
colnago
Member
 
Registered: Nov 2003
Location: Canada
Distribution: ArchLinux
Posts: 324

Rep: Reputation: 30
...elluva corrects me, sorry for being misleading.

I guess it makes sense if you are compiling yourself rather than installing the binary compilled against the other package versions.

My first attempts to compile 2.6 from scratch were unsuccessful, perhaps i was doing something else wrong in the config, anyway, at the time I assumed it was the package versions, as there ere several threads with package update lists floating around at the time.

Good luck.

PS here is the thread with the package lists, more than 4or5, but not toobad:
http://linuxquestions.org/questions/...5&pagenumber=2

Last edited by colnago; 01-12-2004 at 03:11 PM.
 
Old 01-12-2004, 03:05 PM   #12
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
Quote:
Originally posted by wldkos
no one said anything about make dep
No need for make dep in 2.6. Matter of fact, mine puked when I typed it in.

Later

 
Old 01-12-2004, 03:15 PM   #13
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Rep: Reputation: 30
Quote:
Originally posted by colnago
...elluva corrects me, sorry for being misleading.
...
My first attempts to compile 2.6 from scratch were unsuccessful, perhaps i was doing something else wrong in the config, anyway, at the time I assumed it was the package versions, as there ere several threads with package update lists floating around at the time.

Good luck.
if you are reffering to the modutils, I thought mdk 9.2 was 2.6 ready, could be wrong though I am quit sure.
It is always better to compile a kernel yourself because you can compile it exactly to the needs of your hardware and this will certainly speed up your system. It won't work at first (chances are small), but after searching what things you need in YOUR kernel, you will notice the difference in speed.
Also on a kernel compile, keep it as small as possible, if you don't have a RAID device, then don't compile support for it. You will notice it is worth the time.

another thing: Colnago, I didn't mean to correct you, since I hadn't read your post
 
Old 01-14-2004, 08:55 AM   #14
tcaptain
LQ Addict
 
Registered: Jul 2002
Location: Montreal
Distribution: Gentoo 2004 from stage 1 baby!
Posts: 1,403

Rep: Reputation: 45
I'm also compiling and installing (attempting to anyway) a 2.6 kernel in Mdk 9.2

Make dep says its unnecessary

what about make modules (I ask because only make modules_install was mentionned)?
 
Old 01-14-2004, 09:04 AM   #15
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
I assume Gentoo compile will be the same as yours. I did:

make
make modules_install

and that was it.

It says it does dep and modules during the make process and the you install them and that is it.

Hope that helps.

Later

 
  


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
Problem installing Mandrake kernel source rpm Gibson Linux - Newbie 4 07-30-2004 02:42 PM
Installing kernel sources on Mandrake 10.0? Hawklad Mandriva 5 03-24-2004 04:24 PM
Compiling & Installing Kernel 2.6.0 in Mandrake 9.1 emilsoft Mandriva 23 01-03-2004 04:37 PM
Installing the Mandrake 9.2 kernel source? adamwenner Linux - Newbie 10 12-24-2003 09:27 PM
Installing kernel-source (Mandrake) MentatMM Linux - Newbie 5 12-05-2003 12:34 AM

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

All times are GMT -5. The time now is 06:39 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration