LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 02-28-2006, 08:36 AM   #1
Swift&Smart
Member
 
Registered: Jan 2003
Location: Hong Kong,China
Distribution: Slackware,OpenSUSE
Posts: 472

Rep: Reputation: 30
Lazy to recompile kernel


Hello,everyone.

I haven't compiled my kernel for a long time due to its time-consumption.So,I would like to ask:
Is it possible for me to install the appropriate module only instead of compiling the new kernel again?Because I only use some new devices which my kernel doesn't support right now.e.g.Bluetooth,WLAN.

Is it possible to install module for them?Will the hardware be detected afterwards?If possible,how can I install them?

P.S. I do like compiling kernel for experimental purpose,it takes too much time,though.

Last edited by Swift&Smart; 02-28-2006 at 08:37 AM.
 
Old 02-28-2006, 08:42 AM   #2
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
You already have a configuration? ( zcat /proc/config.gz or ls /proc/config.gz or /usr/src/linux/.config)
Then only the newly selected modules would be built.
You own a P4 2.8GHZ ?
This doesn't take more than 10 minutes with that machine - configuring the kernel to include your new modules will take longer than to build it...
Also looking for another solution will be much slower...
Just build it.
 
Old 02-28-2006, 09:24 AM   #3
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 31
Quote:
Originally Posted by jomen
...configuring the kernel to include your new modules will take longer than to build it...
Also looking for another solution will be much slower...
Just build it.
that's very true, it has been a lot easier to me compiling new kernels for hardware support than hunting off the network for drivers
 
Old 02-28-2006, 09:46 AM   #4
Swift&Smart
Member
 
Registered: Jan 2003
Location: Hong Kong,China
Distribution: Slackware,OpenSUSE
Posts: 472

Original Poster
Rep: Reputation: 30
jomen,raska,thanks for the replies.

You said that kernel compilation is less than 10 mins.However,I compiled the kernel on my PIII 733,512MB RAM takes me over (definitely) 10 mins! Besides,I have to choose from menu to menu and find out which driver I need.It really takes time...Or do you have any great idea?Please drop me a line.Because I do compile my kernel,but not very into it.So,I am not vey familiar with it.

Thanks.
 
Old 02-28-2006, 09:56 AM   #5
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
i'm pretty sure it can be done, i mean, isn't that exactly what happens when you run the nvidia driver installer?? like, it compiles a new module without touching the kernel??

either way, i always recompile the whole shabang when i need to add something... honestly i don't think it takes too long on my box - about the amount of time it takes to smoke one cigarrette i think - and i'm on an old AMD Athlon 1.2ghz...

PS: it definitely takes less than 10 minutes on my box!!!

Last edited by win32sux; 02-28-2006 at 09:57 AM.
 
Old 02-28-2006, 09:59 AM   #6
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by Swift&Smart
I have to choose from menu to menu and find out which driver I need.
or you could find out which driver you need BEFORE trying to configure your kernel... google.com is great for this kinda thing... search and find which option(s) you need to select, and then when you run your menuconfig you'll know exactly where to go right away... and since you are basing yourself off your old .config there's nothing else to change...
 
Old 02-28-2006, 10:42 AM   #7
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
Use the 'lspci' command to find out the actual model numbers for your components. Pretty easy after that.
 
Old 02-28-2006, 11:40 AM   #8
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
lspci -v
yes - and you know what you need - do you? So there is not a lot of searching...
And on top of that you probably already have a configuration for your kernel - look at my other post...
All you need to do is to add the things you want now but did not compile in when you did it the last time.
Besides: your signature says:
P4 2.8GHZ
512MB DDR2 400 RAM
that is - at the very least - 4 times as fast as 733 Mhz

Last edited by jomen; 02-28-2006 at 11:41 AM.
 
Old 02-28-2006, 02:08 PM   #9
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 768

Rep: Reputation: 64
If you still have the kernel source dir, and a .config file there, then reconfigure with your new modules. So long as you dont change any 'compiled in' stuff, a make modules && make modules_install will simply add the new modules.
If you have qt installed, its make xconfig (my favourite anyhow), this loads you previous config, so you just add a module or two, save, and make modules && make modules_install.
This works for me anyway, and takes even less than 10 mins!
tobyl
 
Old 02-28-2006, 03:28 PM   #10
LocoMojo
Member
 
Registered: Oct 2004
Distribution: Slackware 12
Posts: 165

Rep: Reputation: 30
Less than 10 minutes to compile a new kernel?

WTF?

I've compiled several kernels (about 8 or 10) on my P4 1.7 GHZ box and it always takes at least two hours. That's two hours of compilation, not including the configs. I keep trying to trim my kernel each time so that I wouldn't have to build so many modules, but oftentimes I trim too much and then this or that doesn't work after boot.

I'm sure I could trim a whole lot more, but I'm just not sure exactly what I need and don't need. Many of the modules are downright obvious and I know right off the bat that I won't need them, but many are not so obvious and I'm not sure whether to include them or not.

Ten minutes to compile a working kernel? That must be pure heaven!

LocoMojo
 
Old 02-28-2006, 04:28 PM   #11
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 31
Quote:
Originally Posted by LocoMojo
Less than 10 minutes to compile a new kernel?
yup, it takes around 10 to compile on my laptop (HP pavilion zv5200), and no more than 5 minutes to compile on my (past Saturday's new) desktop system

desktop system is:
AMD Athlon64 3700+ ~ 2.2GHz
1 Gb RAM DDR400
mobo ASUS A8N-E with nVidia's nForce4 Ultra chipset
PCIx EVGA e-GeForce 6600GT 128 GDRR3 RAM
250 Gb SATA2 Maxtor HD
 
Old 02-28-2006, 04:28 PM   #12
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 768

Rep: Reputation: 64
I'm not talking about compiling a whole kernel, just adding modules. However I am lucky enough to have an Athlon 64 3500 and the full compile is as i recall only a few mins, like win32sux says. :-)

I also got a PII 366 laptop, but I fell asleep waiting for it to finish...
tobyl
 
Old 02-28-2006, 04:45 PM   #13
njmf
LQ Newbie
 
Registered: Feb 2006
Distribution: Slackware 10.2, LFS 6.1, Ubuntu Breezy, WinXP
Posts: 17

Rep: Reputation: 0
Quote:
Originally Posted by LocoMojo
I've compiled several kernels (about 8 or 10) on my P4 1.7 GHZ box and it always takes at least two hours.
Two hours on that? I remember that compiling 2.4.x on Pentium MMX 166MHz took about that much time, two years ago I think; I don't know which 2.4 was then in play. Something must be wrong in your case, or are you compiling with all modules?


Non-off-topic
When you add new modules to config, typing make will build only them, and won't touch kernel at all. Even if you patch kernel (only with patches which bring us additional modules, not some bugfixes or stuff). Make is magical tool, even if you add something to kernel itself, it won't compile all stuff, just that new thing, and link it in kernel. Only if you didn't do make clean or something, that is.
 
Old 02-28-2006, 04:56 PM   #14
LocoMojo
Member
 
Registered: Oct 2004
Distribution: Slackware 12
Posts: 165

Rep: Reputation: 30
I must be doing something wrong then. I started with Pat's configs and trimmed off everything I didn't think I needed so no, I am not compiling with all modules.

Thankfully, I'm not planning to add anything new to my machine so I won't have to deal with compiling kernels anymore.

If I ever have to, for whatever reason, I'll just start the process right before I go to bed at night

Hopefully my future machines will be faster.

LocoMojo
 
Old 02-28-2006, 05:20 PM   #15
SaintsOfTheDiamond
Member
 
Registered: Jan 2006
Location: Lexington, KY
Distribution: Arch and a little Slack
Posts: 139

Rep: Reputation: 15
Quote:
Originally Posted by LocoMojo
Less than 10 minutes to compile a new kernel?

WTF?
I compiled my first kernel the other day using Shilo's guide and it took me about 25 minutes from start to finish -- including config and compile time.
 
  


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
If I get this, do I just have to recompile my kernel? RemusX2 Linux - Hardware 1 12-08-2005 08:04 PM
how to recompile kernel? rlbewick Mandriva 6 12-15-2004 02:14 PM
kernel recompile error (kernel panic) tombaaaaa Linux - Newbie 4 08-04-2004 04:32 PM
kernel recompile synaptical Linux - General 7 08-17-2003 11:10 AM
Recompile the Kernel SkYzOpReNiCk Linux - General 3 07-13-2001 07:06 AM

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

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