Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
02-28-2006, 08:36 AM
|
#1
|
Member
Registered: Jan 2003
Location: Hong Kong,China
Distribution: Slackware,OpenSUSE
Posts: 472
Rep:
|
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.
|
|
|
02-28-2006, 08:42 AM
|
#2
|
Senior Member
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687
Rep:
|
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.
|
|
|
02-28-2006, 09:24 AM
|
#3
|
Member
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816
Rep:
|
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 
|
|
|
02-28-2006, 09:46 AM
|
#4
|
Member
Registered: Jan 2003
Location: Hong Kong,China
Distribution: Slackware,OpenSUSE
Posts: 472
Original Poster
Rep:
|
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. 
|
|
|
02-28-2006, 09:56 AM
|
#5
|
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
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.
|
|
|
02-28-2006, 09:59 AM
|
#6
|
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
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...
|
|
|
02-28-2006, 10:42 AM
|
#7
|
Member
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795
Rep:
|
Use the 'lspci' command to find out the actual model numbers for your components. Pretty easy after that.
|
|
|
02-28-2006, 11:40 AM
|
#8
|
Senior Member
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687
Rep:
|
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.
|
|
|
02-28-2006, 02:08 PM
|
#9
|
Member
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 770
Rep:
|
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
|
|
|
02-28-2006, 03:28 PM
|
#10
|
Member
Registered: Oct 2004
Distribution: Slackware 12
Posts: 165
Rep:
|
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
|
|
|
02-28-2006, 04:28 PM
|
#11
|
Member
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816
Rep:
|
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
|
|
|
02-28-2006, 04:28 PM
|
#12
|
Member
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 770
Rep:
|
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
|
|
|
02-28-2006, 04:45 PM
|
#13
|
LQ Newbie
Registered: Feb 2006
Distribution: Slackware 10.2, LFS 6.1, Ubuntu Breezy, WinXP
Posts: 17
Rep:
|
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.
|
|
|
02-28-2006, 04:56 PM
|
#14
|
Member
Registered: Oct 2004
Distribution: Slackware 12
Posts: 165
Rep:
|
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
|
|
|
02-28-2006, 05:20 PM
|
#15
|
Member
Registered: Jan 2006
Location: Lexington, KY
Distribution: Arch and a little Slack
Posts: 139
Rep:
|
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. 
|
|
|
All times are GMT -5. The time now is 06:11 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|