LinuxQuestions.org
Visit Jeremy's Blog.
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 01-21-2006, 02:26 PM   #1
hosler
Member
 
Registered: Mar 2005
Distribution: Gentoo
Posts: 184

Rep: Reputation: 30
help with kernel 2.6.15.1


I am trying to compile the 2.6.15.1 kernel on my laptop. I get this output when running /sbin/lspci:
Code:
00:00.0 Host bridge: Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller (rev 01)
00:00.1 System peripheral: Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller (rev 01)
00:00.3 System peripheral: Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller (rev 01)
00:02.0 VGA compatible controller: Intel Corporation 82852/855GM Integrated Graphics Device (rev 01)
00:02.1 Display controller: Intel Corporation 82852/855GM Integrated Graphics Device (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 83)
00:1f.0 ISA bridge: Intel Corporation 82801DBM (ICH4-M) LPC Interface Bridge (rev 03)
00:1f.1 IDE interface: Intel Corporation 82801DBM (ICH4-M) IDE Controller (rev 03)
00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 03)
00:1f.6 Modem: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Modem Controller (rev 03)
01:08.0 Ethernet controller: Intel Corporation 82801DB PRO/100 VE (MOB) Ethernet Controller (rev 83)
01:0a.0 CardBus bridge: Texas Instruments PCI1410 PC card Cardbus Controller (rev 01)
01:0b.0 CardBus bridge: Toshiba America Info Systems ToPIC100 PCI to Cardbus Bridge with ZV Support (rev 33)
When I run make menu config to configure my kernel, I get totatlly lost when trying to choose which drivers to select. Could anyone point me in the right direction.
 
Old 01-21-2006, 02:56 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Well, basically, you need to find out which driver each device needs by searching online.

Doesn't sound like a lot of fun, I know.

You can get a pretty good idea what drivers you need by booting up to the normal Slackware kernel, and running lsmod. This shows all the modules that your hardware is currently using, so at the very least, you are going to want to include most, if not all, of those listed.

Doing:

lsmod > ./Modules.txt

And printing out the resulting file is a good idea, or at least write them down.

Now, if there is hardware on your machine that does not work with the default Slackware kernel, then you are going to have to do the leg work and find out what driver is required and enable it.

Now, it is also worth mentioning that during the process of including these drivers into your kernel, you have the option of either compiling them into the main kernel, or having them as loadable modules.

There are many schools of thought on the subject, but personally, any hardware I know is not changing anytime soon, I go ahead and compile into the kernel. For me, this results with probably 95% of my drivers being compiled in, and I generally just include support for loadable modules, and not necessarily actually compile any modules.

This leaves the option open later if I need to add something to the system (but even then, if it was something that I would likely not be removing from the system I would go ahead and recompile the kernel with support for that built in).

But the choice is yours.
 
Old 01-21-2006, 03:38 PM   #3
hosler
Member
 
Registered: Mar 2005
Distribution: Gentoo
Posts: 184

Original Poster
Rep: Reputation: 30
Is there a website that will tell me which drivers to install according to the modules i need to run?

also, i noticed that when I use my 2.4.x config file as a template for configuring my 2.6.x kernel many options were there. When I use a blank config file, i see that many options are not there. Expecially in the device drivers section. How can I view all the options?

Last edited by hosler; 01-21-2006 at 03:49 PM.
 
Old 01-21-2006, 03:57 PM   #4
con
Member
 
Registered: Jul 2005
Location: Finland
Distribution: Slackware
Posts: 213

Rep: Reputation: 30
Quote:
How can I view all the options?
there is an option in the toolbar for that
 
Old 01-21-2006, 06:14 PM   #5
hosler
Member
 
Registered: Mar 2005
Distribution: Gentoo
Posts: 184

Original Poster
Rep: Reputation: 30
How come other distrobutions, such as ubuntu, dont require you to ever compile a kernel? Do they just select everything?
 
Old 01-21-2006, 08:40 PM   #6
hosler
Member
 
Registered: Mar 2005
Distribution: Gentoo
Posts: 184

Original Poster
Rep: Reputation: 30
Slackware comes with a generic 2.6.13 kernel. Does it also come with the .config file?
 
Old 01-21-2006, 09:38 PM   #7
j79zlr
Member
 
Registered: Dec 2005
Location: Chicago
Distribution: Gentoo, Slackware, and FreeBSD
Posts: 38

Rep: Reputation: 15
Yes Ubuntu basically compiles everything as modules in their kernels. I've been using linux for years, and compiled probably 100's of kernels, and when I tried Ubuntu, I couldn't get my custom kernels to boot. Even the developers on their forum said "I don't know why it doesn't work, I can't get it to work either, why do you need a custom kernel anyways?" Regardless, I find Ubuntu to be noob friendly and power user unfriendly. It didn't last on my PC long.
 
Old 01-21-2006, 10:03 PM   #8
MQMan
Member
 
Registered: Jan 2004
Location: Los Angeles
Distribution: Slack64 14.1
Posts: 581

Rep: Reputation: 38
Quote:
Slackware comes with a generic 2.6.13 kernel. Does it also come with the .config file?
Yes. Look in /boot and /usr/src/linux-2.6.13
Quote:
How come other distrobutions, such as ubuntu, dont require you to ever compile a kernel
Who says you have to compile a kernel with Slack. I haven't.

If you want to move to a newer kernel, then for any distribution, if that version hasn't been "packaged", then you'll have to compile it yourself. Slack current has 2.6.14 in it. No doubt Pat will add 2.6.15 at some point.

Cheers,
Eddie
 
Old 01-21-2006, 10:07 PM   #9
detpenguin
Senior Member
 
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,098

Rep: Reputation: 54
i just upgraded to 2.6.14.6...no compiling...just a little bit of tweaking things after...i've never compiled a kernel, and i've been using slack for almost 2 years now...
 
  


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
Kernel 2.4 in Zipslack (Waring: unable to open an initial console | Kernel Panic...) kurtamos Linux - General 2 05-10-2006 12:58 PM
Freeze booting kernel - mdk 9.2, kernel 2.4.22-10mdk, Acer TM252LC thekro Linux - Laptop and Netbook 19 03-25-2006 04:56 AM
Kernel-Patch Debian Logo 2.6.2 not correctly working for custom kernel 2.6.11 smp deepclutch Debian 3 06-27-2005 03:59 AM
kernel panic: try passing init= option to kernel...installation with Red Hat 9 kergen Linux - Hardware 1 09-30-2004 03:28 AM
YaST Online Update + AMD kernel patch = kernel panic THX1138 Linux - General 3 10-26-2003 04:25 PM

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

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