On 8/11/08, onnm <on2008nm@xxxxxxxxx> wrote: > Hi , that was an Idea taken from your book Greg (LKN !) :-) but I am really > looking out to automate this task - this will save lot of time and put in > that time into something more interesting ;-) ! > > > On Mon, Aug 11, 2008 at 10:27 AM, Greg KH <greg@xxxxxxxxx> wrote: > >> On Mon, Aug 11, 2008 at 09:04:30AM +0530, onnm wrote: >> > I am trying to write a script which will enable (update) Kernel to be >> > automatically configured based on following things : >> > >> > (1) active modules in /proc/modules >> > (2) output of lspci >> > >> > where else can I see to get a very minimal kernel image which will be >> > required to run on a given machine ( obviously , running all devices >> which >> > were previously working !!) I did it a little differently. Objective was to run a minimal linux kernel on a verity of hardware(different make of nic's, scsi controller etc). So I prepared a kernel with most of the things as installable modules. Very few thing were compiled into the kernel. That few things was ext2/3, ramdisk etc... (which must be). This was about it . As Linux boots, a script runs hwinfo and modprob's the drivers. Actually as soon as i read this message, i ran to find the config.gz for that kernel i made but i could not. I do not guarantee,but if i am able to find i will post here... its being few years now. I also say its easy to prepare one. Thanks. >> >> That's pretty simple, boot a distro kernel, take the installed modules, >> and then only configure them in. >> >> > I thought Kernel configuration is a daunting task >> > kernels which are configured for various distros (for instance Debian ! >> > ) >> > are not optimally configured for a specific machine (hence, make >> oldconfig >> > does not necessarily give optimal image !) >> > >> > Automatically configured kernel would be a great Idea and save lot of >> time >> >> It would, that's why other people have done this before, you might want >> to research some of that first :) >> >> good luck, >> >> greg k-h >> > -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ