LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-25-2011, 07:33 AM   #1
newb123
LQ Newbie
 
Registered: May 2011
Posts: 24

Rep: Reputation: 1
newb question about compiling a new kernel


I'm trying to compile a kernel for my Crux Linux install.

I figured I'd do a 'make defconfig' to setup a .config file with the default configuration and then try to add anything I will need for my specific system.

I found a script that scans my system and prints out a list of any current modules I am using. That way I can make sure to add these to my new kernel. It looks something like this:

Code:
ac.ko.gz 
agpgart.ko.gz 
ata_generic.ko.gz 
ata_piix.ko.gz 
battery.ko.gz 
button.ko.gz 
compal-laptop.ko.gz 
dcdbas.ko.gz 
dell-laptop.ko.gz 
drm_kms_helper.ko.gz 
drm.ko.gz 
ehci-hcd.ko.gz
My question is: Is there a way to add these to my current configuration without having to go into 'make menuconfig' and search for each one?

It's not too hard to search for many of them. But the ones with short names I'm not finding. Like ac.ko for example. 'ac.ko' returns 0 search results and 'ac' returns anything and everything with those 2 letters in it.

Any other tips on compiling a kernel are welcome too!
 
Old 05-25-2011, 07:47 AM   #2
zordrak
Member
 
Registered: Feb 2008
Distribution: Slackware
Posts: 595

Rep: Reputation: 115Reputation: 115
make localmodconfig
or
make localyesconfig

This should update your config based on the modules you currently have loaded in the system.

See the 2.6.32 release notes for more.
 
Old 05-25-2011, 07:50 AM   #3
newb123
LQ Newbie
 
Registered: May 2011
Posts: 24

Original Poster
Rep: Reputation: 1
Thanks zordrak. I was unaware of those options.
 
Old 05-25-2011, 08:16 AM   #4
newb123
LQ Newbie
 
Registered: May 2011
Posts: 24

Original Poster
Rep: Reputation: 1
I just did 'make localmodconfig and it returned the following:

Code:
uas config not found!!
module dell_laptop did not have configs CONFIG_DELL_LAPTOP
module dm_crypt did not have configs CONFIG_DM_CRYPT
module ext4 did not have configs CONFIG_EXT4_FS
module pata_acpi did not have configs CONFIG_PATA_ACPI
module fuse did not have configs CONFIG_FUSE_FS
module joydev did not have configs CONFIG_INPUT_JOYDEV
module iTCO_wdt did not have configs CONFIG_ITCO_WDT
module cryptd did not have configs CONFIG_CRYPTO_CRYPTD
module b43 did not have configs CONFIG_B43
module uvcvideo did not have configs CONFIG_USB_VIDEO_CLASS
module dcdbas did not have configs CONFIG_DCDBAS
module serio_raw did not have configs CONFIG_SERIO_RAW
module compal_laptop did not have configs CONFIG_COMPAL_LAPTOP
module jbd2 did not have configs CONFIG_JBD2
module pcspkr did not have configs CONFIG_INPUT_PCSPKR
module iTCO_vendor_support did not have configs CONFIG_ITCO_WDT
module xts did not have configs CONFIG_CRYPTO_XTS
module videodev did not have configs CONFIG_VIDEO_DEV
module gf128mul did not have configs CONFIG_CRYPTO_GF128MUL
module crc16 did not have configs CONFIG_CRC16
module mmc_core did not have configs CONFIG_MMC
module ssb did not have configs CONFIG_SSB
Does this mean that those modules didn't get included? What do I need to do here?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Compiling Kernel - question Mithrilhall Linux - General 10 01-12-2008 04:54 AM
Compiling the Linux kernel (newb warning) Aranel Linux - General 12 07-16-2006 08:46 PM
question about kernel compiling? slackwbas Slackware 2 03-02-2005 08:55 AM
Newb Question - Compiling software Linucks Linux - Distributions 4 06-30-2003 09:47 PM
Kernel Compiling question... 65_289 Linux - Software 1 03-24-2003 12:41 AM


All times are GMT -5. The time now is 08:13 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration