LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-12-2006, 09:03 AM   #16
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78

You need to install the 2.6 kernel source. I think it is on the second cd in the extra directory. You install it the way you installed the modules. It will create the soft link /usr/src/linux to your /usr/src/linux-2.6.27.13.
 
Old 10-12-2006, 09:21 AM   #17
davidwillis
Member
 
Registered: Oct 2006
Posts: 40

Original Poster
Rep: Reputation: 16
Thanks, that worked. You guys are awsome.
 
Old 10-12-2006, 09:41 AM   #18
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
Quote:
Originally Posted by davidwillis
Thanks, that worked. You guys are awsome.
Nah, we just been down the road you are on now.
 
Old 10-12-2006, 09:52 AM   #19
2Gnu
Senior Member
 
Registered: Jan 2002
Location: Southern California
Distribution: Slackware
Posts: 1,880

Rep: Reputation: 51
Ah, so that explains the McDonald's wrappers.

 
Old 10-12-2006, 10:10 AM   #20
TNWestTex
Member
 
Registered: May 2006
Location: Tennessee
Distribution: current, rawhide
Posts: 88

Rep: Reputation: 16
Do I want to remove all the 2.4 stuff, then install the 2.6 stuff (all except the headers)?[/QUOTE]
It is good to save for backup. You can set up your boot to choose a default and allow the other kernel as an option.
 
Old 10-12-2006, 10:20 AM   #21
davidwillis
Member
 
Registered: Oct 2006
Posts: 40

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by TNWestTex
Do I want to remove all the 2.4 stuff, then install the 2.6 stuff (all except the headers)?
It is good to save for backup. You can set up your boot to choose a default and allow the other kernel as an option.
So to change kernels, all I have to do is change grub (or lilo) to point to a new kernel? So could I point to say my pclinuxos kernel and boot slackware on that kernel? Not that I would want to, but am just trying to figure out how this works.
 
Old 10-12-2006, 11:02 AM   #22
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
You could do that I suppose, and only use 1 kernel for like 5 distributions. You'd have to make sure your kernel is on a partition that is mounted by all the distros though to make sure it can be accessed. My guess is, though I can't say for sure, that even though this is possible its probably not a good idea.

Definatly somehting I'd like you to try so I don't have to

Last edited by Penguin of Wonder; 10-12-2006 at 11:35 AM.
 
Old 10-12-2006, 11:24 AM   #23
Vincent_Vega
Member
 
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826

Rep: Reputation: 31
Technically you could but it might not be that simple since you will have to have all of the correct headers and modules to support that kernel. If you're just using a couple installations of Slackware, you could use a /boot partition that each installation mounts and then you could just point to that with lilo or grub.
I'm not completely sure but I think sharing kernels between distros might end up getting messy but you could try it. It won't hurt anything to have a few lilo/grub entries pointing to different kernels.
 
Old 10-12-2006, 11:51 AM   #24
davidwillis
Member
 
Registered: Oct 2006
Posts: 40

Original Poster
Rep: Reputation: 16
Ok, thanks. I think I am starting to understand. So when I run makemenuconfig, and then make && make modules. Does it compile a new kernel, and also make all the modules and headers for that kernel? Then all I need to do is copy the new kernel found in /usr/src/linux/arch/i386/boot/bzImage to /boot, and call it vmlinuz-whatever. Then just point grub or lilo to it.
 
Old 10-12-2006, 11:57 AM   #25
nykey
Member
 
Registered: Nov 2003
Posts: 360

Rep: Reputation: 30
Exactly
 
Old 10-12-2006, 12:03 PM   #26
davidwillis
Member
 
Registered: Oct 2006
Posts: 40

Original Poster
Rep: Reputation: 16
Thanks guys. It feels so good to actually start to understand what I am doing.
 
Old 10-12-2006, 12:04 PM   #27
acummings
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 615

Rep: Reputation: 50
Quote:
here is what I get when I type ls | grep kernel

Quote:
root@myhost:/usr/src# cd /var/log/packages
root@myhost:/var/log/packages# ls | grep kernel
kernel-headers-2.4.33.3-i386-1
kernel-ide-2.4.33.3-i486-1
kernel-modules-2.4.33.3-i486-1
kernel-modules-2.6.17.13-i486-1
kernel-source-2.4.33.3-noarch-1

Do I want to remove all the 2.4 stuff, then install the 2.6 stuff (all except the headers)?
Have you found the answer by now?

It appears that, even the source, can have two different Slack packages of it installed, onboard? Is this correct?

As far as Slack pkgs go, I didn't know if some of the Slack pkg 2.6 source would overwrite some of the 2.4 source or not (if I were to install 2.6 source in addition to or while the 2.4 source is installed.

I do know that as to the remainder or everything else per your above quoted question, you can have both the 2.4 and the 2.6 stuff installed.

--
Alan.
 
Old 10-12-2006, 12:12 PM   #28
davidwillis
Member
 
Registered: Oct 2006
Posts: 40

Original Poster
Rep: Reputation: 16
I left 2.4 for now. I am not sure what would happen if I tried using it again. But I don't think I will, because 2.6 seems to work just fine.

This is what I now have.
Quote:
root@myhost:/usr/src/linux/arch/i386/boot# cd /var/log/packages
root@myhost:/var/log/packages# ls | grep kernel
kernel-headers-2.4.33.3-i386-1
kernel-ide-2.4.33.3-i486-1
kernel-modules-2.4.33.3-i486-1
kernel-modules-2.6.17.13-i486-1
kernel-source-2.4.33.3-noarch-1
kernel-source-2.6.17.13-noarch-1
 
Old 10-13-2006, 12:53 AM   #29
TNWestTex
Member
 
Registered: May 2006
Location: Tennessee
Distribution: current, rawhide
Posts: 88

Rep: Reputation: 16
Quote:
[davidwillis]Ok, thanks. I think I am starting
to understand. So when I run makemenuconfig, and then make && make modules. Does it compile a new kernel,
and also make all the modules and headers for that kernel?
Then all I need to do is copy the new kernel found in /usr/src/linux/arch/i386/boot/bzImage to /boot, and call it vmlinuz-whatever. Then just point grub or lilo to it.
If your last step is "make install" the script puts the works in /boot for you. You can have any number of kernels there. The modules are stored in /lib/modules
with the kernel release name. If you use installpkg for the source you can have any number of sources in /usr/src. The last one installed will be symlinked to /usr/src/linux. Upgradepkg cleans everything out but the designated source.

Lilo or grub can have multiple entries so you can switch back and forth from 2.4 to 2.6 with no problem.

If you use an initrd you can name each one distinctly and use that name in the boot entry to keep multiple versions.

I have

2.4.33.3
2.6.16.27
2.6.17.13
2.6.18

all available with individual initrds for the 2.6 kernels.
 
Old 10-13-2006, 04:36 PM   #30
davidwillis
Member
 
Registered: Oct 2006
Posts: 40

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by TNWestTex
If your last step is "make install" the script puts the works in /boot for you. You can have any number of kernels there. The modules are stored in /lib/modules
with the kernel release name. If you use installpkg for the source you can have any number of sources in /usr/src. The last one installed will be symlinked to /usr/src/linux. Upgradepkg cleans everything out but the designated source.

Lilo or grub can have multiple entries so you can switch back and forth from 2.4 to 2.6 with no problem.

If you use an initrd you can name each one distinctly and use that name in the boot entry to keep multiple versions.

I have

2.4.33.3
2.6.16.27
2.6.17.13
2.6.18

all available with individual initrds for the 2.6 kernels.

thanks that is good to know. I am going to have to read up on initrd. I am not sure what it does.
 
  


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
Errors Compiling Kernel 2.6 on Slackware 10.2 - Old kernel headers required? Dave S. Slackware 8 03-04-2006 12:15 AM
Slackware 10, custom 2.6.7 kernel, lilo, loads kernel very slowly entropyv Slackware 3 08-19-2004 06:06 PM
slackware kernel source install (kernel 2.6.6) ? LinuxOG Slackware 22 06-06-2004 04:34 PM

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

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