is there a program that will automatically configure the kernel before i install it
Linux - KernelThis forum is for all discussion relating to the Linux kernel.
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.
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.
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
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...
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".
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
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
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.
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.
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.