LinuxQuestions.org
Visit Jeremy's Blog.
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-11-2006, 08:44 PM   #1
davidwillis
Member
 
Registered: Oct 2006
Posts: 40

Rep: Reputation: 16
slackware 11 kernel 2.6?


I am new to slackware. I just installed 11, and choose kernel 2.6 huge. But after that I couldn't get my mouse, or ethernet card to work. I couln't find anything to help by running menuconfig. So I did a re-install using kernel 2.4. Everything works just fine with it. But I would really like to use 2.6. What is the best way to get it? Do I have to do a re-install again, then try and get my hardware to work?

Thanks.

Edit:

By the way, I am using grub because I already had it booting other linux versions. And I am used to it. I have noticed in the instructions to upgrade the kernel it does something with lilo. I am not sure how that will work with grub.

Last edited by davidwillis; 10-11-2006 at 08:48 PM.
 
Old 10-11-2006, 09:02 PM   #2
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
You have to install the kernel modules for the 2.6 kernel.

Log in as root and place the 2nd cd in the drive and do this:
mount /mnt/cdrom
cd /mnt/cdrom/extra/linux-2.6.17.13
installpkg kernel-modules-2.6.17.13-i486-1.tgz
/etc/rc.d/rc.hotplug restart

You might have to reboot. Then you are good to go.
 
Old 10-11-2006, 09:09 PM   #3
davidwillis
Member
 
Registered: Oct 2006
Posts: 40

Original Poster
Rep: Reputation: 16
thanks. I am using 2.4 right now(did a re-install just to see is that was the problem). Do I need 2.6 before I do that? Is re-installing the easiest way to get 2.6 back? And should I use huge, or is there a normal one?

Thanks
Sorry for all the questions.
 
Old 10-11-2006, 09:12 PM   #4
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
If I were you I would just go to www.kernel.org and download your 2.6 kernel from there. Reinstalling is definitely over kill just for a new kernel. There are plenty of guides out there on howto configure and install your own kernel.
 
Old 10-11-2006, 09:14 PM   #5
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
The kernel is for the huge26 is on the first cd, in the /mnt/cdrom/kernels/huge26.s. There is a file named bzImage in there. Just copy it to your /boot and rename it something like vmlinuz-26. Then set up grub with that as a boot option. I use lilo so I do not know how to set up grub for that. If you installed your kernel modules, you should bee good.
 
Old 10-11-2006, 09:22 PM   #6
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
Quote:
default 0
timeout 5

title=Gentoo Linux 2.6.17.7-6
root (hd0,0)
kernel /boot/bzImage-2.6.17-gentoo-r7-6 root=/dev/hda3 video=vesafb:mtrr:3,ywrap,1024x768-32@70
Thats a piece of mine for an example. Everything after "root=/dev/hda3" is for framebuffer and is totally optional. Don't put that in there unless your kernel includes framebuffer.
 
Old 10-11-2006, 09:32 PM   #7
davidwillis
Member
 
Registered: Oct 2006
Posts: 40

Original Poster
Rep: Reputation: 16
Thanks guys. I can't believe how easy that was. I am now running 2.6 without any problems.
 
Old 10-11-2006, 09:37 PM   #8
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
No problem
 
Old 10-11-2006, 10:14 PM   #9
davidwillis
Member
 
Registered: Oct 2006
Posts: 40

Original Poster
Rep: Reputation: 16
sorry, I have one more question. I ran make menuconfig in /usr/src/linux, and when I was done, I noticed it was configuring my 2.4 kernel, and told me to run make dep (which I don't think you do with 2.6). How do I get rid of my 2.4 kernel, and how do I configure my 2.6 kernel?
 
Old 10-11-2006, 11:34 PM   #10
acummings
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 615

Rep: Reputation: 50
cd /var/log/packages

$ ls | grep kernel

kernel-headers-2.4.32-i386-1
kernel-sl_ac-2.6.16.20-i486-1
kernel-source-2.6.16.16-noarch-1

What *you* experienced likely was your 2.4 kern-source from when U had installed using the 2.4 kernel.

# removepkg (likely be kernel-source-2.4.something)

# installpkg (kernel-source-2.6.something from same spot on cd disk where you had installed the kern modules from)

Others can verify/add/correct on this.

They say don't ever install the 2.6.something kernel headers due to I guess gcc and glibc needs the same headers onboard that glibc had been compiled with (has to do with system calls, etc.)

P.S. the above ls is a now outdated Slack Current that I'll soon save my data and settings and do a fresh install of Slack 11.

--
Alan.
 
Old 10-12-2006, 12:07 AM   #11
Crushing Belial
Member
 
Registered: Mar 2005
Location: University of Massachusetts - Lowell
Distribution: Ubuntu, Win 7 Pro, Win 7 Enterprise
Posts: 126

Rep: Reputation: 15
Quote:
Originally Posted by Penguin of Wonder
If I were you I would just go to www.kernel.org and download your 2.6 kernel from there. Reinstalling is definitely over kill just for a new kernel. There are plenty of guides out there on howto configure and install your own kernel.

Just FYI, the 2.6 kernels that Pat packages with Slackware are the same exact kernels you would be getting from kernel.org.
 
Old 10-12-2006, 02:27 AM   #12
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Rep: Reputation: 75
You might need to change /usr/src/linux which is a soft link so that it points to /usr/src/linux-2.6 rather than /usr/src/linux-2.4

something like:

cd /usr/src
rm linux
ln -s linux-2.6xxxx linux
 
Old 10-12-2006, 08:53 AM   #13
davidwillis
Member
 
Registered: Oct 2006
Posts: 40

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by acummings
cd /var/log/packages

$ ls | grep kernel

kernel-headers-2.4.32-i386-1
kernel-sl_ac-2.6.16.20-i486-1
kernel-source-2.6.16.16-noarch-1

What *you* experienced likely was your 2.4 kern-source from when U had installed using the 2.4 kernel.

# removepkg (likely be kernel-source-2.4.something)

# installpkg (kernel-source-2.6.something from same spot on cd disk where you had installed the kern modules from)

Others can verify/add/correct on this.

They say don't ever install the 2.6.something kernel headers due to I guess gcc and glibc needs the same headers onboard that glibc had been compiled with (has to do with system calls, etc.)

P.S. the above ls is a now outdated Slack Current that I'll soon save my data and settings and do a fresh install of Slack 11.

--
Alan.
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)?
 
Old 10-12-2006, 08:55 AM   #14
davidwillis
Member
 
Registered: Oct 2006
Posts: 40

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by arubin
You might need to change /usr/src/linux which is a soft link so that it points to /usr/src/linux-2.6 rather than /usr/src/linux-2.4

something like:

cd /usr/src
rm linux
ln -s linux-2.6xxxx linux
the prblem with that is that I don't have any linux-2.6xxx in there.

here is what I have.

Quote:
root@myhost:/usr/src# ls
linux@ linux-2.4.33.3/ rpm/ speakup-2.4.33.3/
 
Old 10-12-2006, 09:01 AM   #15
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Rep: Reputation: 75
You need to install the 2.6 kernel source. I think it is on disc 2 in /extra/kernel-2.6
 
  


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
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 03:42 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