LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 11-05-2011, 10:44 AM   #1
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,267

Rep: Reputation: 32
is there a program that will automatically configure the kernel before i install it


i want to be able to have a program that will automatically configure the kernel tarball to accommodate itself to my hardware, in other words i want the program to probe for all hardware my system has and when modules (or drivers) are available for it's hardware in the kernel archive it will add it to the .config file. this will make everything a lot easier since i hate having to wait a couple hours to see if everything installed correctly, i'm tired of guessing
 
Old 11-05-2011, 10:59 AM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Yes there is, it's called ... configure. Here are the simple steps to get where you may want to go...

- get the tarbal
- unpack
- enter the folder
- issue "./configure" or "make menuconfig"
- make the thing with 'duh" "make"
- then - "make modules"
- and finally - "make install...

Luck!

Thor
 
Old 11-05-2011, 11:05 AM   #3
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
This is the purpose of building modules. Your system dynamically loads the modules it needs to support your hardware.
 
Old 11-05-2011, 11:06 AM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
configure is not automatic though -- it's a time-consuming manual process. IIRC there was such a tool, newish with the 2.6.33 kernel; I tried it and found it was "in need of further development".
 
Old 11-05-2011, 11:06 AM   #5
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,267

Original Poster
Rep: Reputation: 32
i am using it the debian way, i have never seen the ./configure in the linux kernel tarball but i'll give it a shot. also when you build it with the commands
Code:
# make oldconfig
# make xconfig
# make pkg-deb
# cd ..
# dpkg -i *.deb
where would the ./configure fit in there. plus what about the modules i am not sure that the modules install themselves after installing the kernel the way i just listed so what do you think

---------- Post added 11-05-11 at 11:06 AM ----------

i am using it the debian way, i have never seen the ./configure in the linux kernel tarball but i'll give it a shot. also when you build it with the commands
Code:
# make oldconfig
# make xconfig
# make pkg-deb
# cd ..
# dpkg -i *.deb
where would the ./configure fit in there. plus what about the modules i am not sure that the modules install themselves after installing the kernel the way i just listed so what do you think
 
Old 11-05-2011, 11:09 AM   #6
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,267

Original Poster
Rep: Reputation: 32
just tried to run the ./configure in the linux tarball root directory and this is what came up
Code:
root@debian:/home/baronobeefdip/Desktop/linux-3.0.8# ./configure
bash: ./configure: No such file or directory
it's not that easy i guess so is there another way that will automatically configure the kernel source for installation on the machine with all of the right modules and drivers installed plus the new versions of them so they can perform batter than they did on previous kernels
 
Old 11-05-2011, 11:10 AM   #7
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,267

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by macemoneta View Post
This is the purpose of building modules. Your system dynamically loads the modules it needs to support your hardware.
so how do you automatically load them because thor's suggestion about the ./configure command didn't work in fact the script is non exsistent so how do you do it

and i am configuring the 3.0.8 version kernel

Last edited by baronobeefdip; 11-05-2011 at 11:18 AM.
 
Old 11-05-2011, 11:25 AM   #8
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Ehrm, my apologies to the OP, ./configure is NOT used to configure a kernel, you need make menuconfig for that...sorry :/
 
Old 11-05-2011, 12:47 PM   #9
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,267

Original Poster
Rep: Reputation: 32
well how do you get it to configure the kernel automatically
 
Old 11-05-2011, 12:57 PM   #10
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
1. Start your system with the generic standard kernel of your distribution.
2. Plugin all the hardware that you want to be supported from your new kernel, so that all the needed modules are loaded.
3a.
Code:
make localmodconfig
to configure the kernel to compile all currently loaded drivers as modules,

or
3b.
Code:
make localyesconfig
to configure the kernel to compile all currently loaded drivers into the kernel.
4. Continue the standard procedure of kernel building.
 
Old 11-05-2011, 01:01 PM   #11
Juako
Member
 
Registered: Mar 2010
Posts: 202

Rep: Reputation: 84
Yes there's a tool to include in the config all the modules that are currently loaded, I've used it as a base to start my own customized kernel. Don't recall right know what whas called it, but I'll update as soon I find it.

Nevertheless it will save you only the work of figuring out some of the modules for your hw, it's not a complete "autokernel" thing. That's something impossible.
 
Old 11-05-2011, 02:42 PM   #12
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,267

Original Poster
Rep: Reputation: 32
well at least it will seek out the modules that need to be installed as for everything else i can configure them myself since they are sort of optional since they aren't really necessary
 
Old 11-05-2011, 03:29 PM   #13
Juako
Member
 
Registered: Mar 2010
Posts: 202

Rep: Reputation: 84
Still can't recall, too bad I didn't take note . I did remember it was oddly hard to find.

This thread might have something to do with it (check post #3): http://www.linuxquestions.org/questi...ssible-752872/

Post #2 links to a script I didn't know of.
 
  


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
How to install kernel modules automatically after device insertion neversetsun Programming 5 01-19-2011 10:29 AM
LXer: Program Which Automatically Compiles and Install The Latest Kernel in Ubuntu / LXer Syndicated Linux News 0 08-25-2009 05:00 AM
can't install a program -- the 'configure' command is not found jaffa_kree Linux - Newbie 3 09-07-2006 10:39 PM
Configure kernel source for standard debian kernel (module install) twinkers Debian 2 12-22-2005 11:19 AM
How do I get X to automatically configure/re-configure at boot? BaptismOfFire Linux - Hardware 4 08-08-2005 09:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

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