You are not logged in.

#1 2011-06-10 19:35:25

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,697
Website

map back a specific kernel module to its option in nconfig [solved]

/lib/modules/2.6.39-ck/kernel/drivers/scsi/scsi_mod.ko.gz
/lib/modules/2.6.39-ck/kernel/drivers/ata/libata.ko.gz
/lib/modules/2.6.39-ck/kernel/drivers/ata/libahci.ko.gz
/lib/modules/2.6.39-ck/kernel/drivers/ata/ahci.ko.gz
/lib/modules/2.6.39-ck/kernel/drivers/scsi/sd_mod.ko.gz

There are 5 modules that I want to build into my kernel (i.e. not have them as modules). Does anyone have an idea how I can locate the corresponding options for them in the nconfig? Searching (F8) doesn't give me what I need.

Example:
Searching for "SCSI_MOD" gives:

Symbol: SCSI_MOD [=m]
Type : tristate

But it doesn't tell me where I need to go in the nconfig to locate that specific option. Searching on others such as "libata" or "LIBATA" gives nothing. I am reluctant to simply edit the config directly with vim because I know that some of these options may and likely will cause other options to be required as well.

Last edited by graysky (2011-06-11 10:52:55)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2011-06-10 20:01:29

jnguyen
Member
Registered: 2011-02-17
Posts: 139
Website

Re: map back a specific kernel module to its option in nconfig [solved]

Just look in the help menus. They usually mention the name of the module it would create if selected. Have a look within:

Device Drivers --> SCSI Device Support
Device Drivers --> Serial ATA and Parallel ATA Drivers


TOMOYO Linux: Mandatory Access Control.
My AUR packages

Offline

#3 2011-06-10 20:03:03

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,697
Website

Re: map back a specific kernel module to its option in nconfig [solved]

@jnguyen - I did, but it's unclear to me from there which of the myriad options correspond back to the specific 5 of interest to me.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2011-06-10 21:17:47

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,697
Website

Re: map back a specific kernel module to its option in nconfig [solved]

paste lspci -n into here for some help:

http://kmuto.jp/debian/hcl/

PCI ID   Works?   Vendor   Device   Driver   Kernel
80862e20   Yes   Intel Corporation   4 Series Chipset DRAM Controller   intel-agp   
80863a3e   Yes   Intel Corporation   82801JI (ICH10 Family) HD Audio Controller   snd-hda-intel    
8086244e   Yes   Intel Corporation   82801 PCI Bridge   i810_rng   
80863a16   Yes   Intel Corporation   82801JIR (ICH10R) LPC Interface Controller   iTCO_wdt   v2.6.28-
80863a22   Yes   Intel Corporation   82801JI (ICH10 Family) SATA AHCI Controller   ahci   v2.6.31-
80863a30   Yes   Intel Corporation   82801JI (ICH10 Family) SMBus Controller   i2c-i801   v2.6.25- 
197b2363   Yes   JMicron Technology Corp.   JMB362/JMB363 Serial ATA Controller   jmicron   
197b2363   Yes   JMicron Technology Corp.   JMB362/JMB363 Serial ATA Controller   jmicron   
10ec8168   Yes   Realtek Semiconductor Co., Ltd.   RTL8111/8168B PCI Express Gigabit Ethernet controller   r8169   v2.6.25-

Last edited by graysky (2011-06-11 01:33:29)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#5 2011-06-10 21:39:06

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: map back a specific kernel module to its option in nconfig [solved]

in your kernel src dir, run

find . -name Kconfig -exec grep -rH scsi_mod {} \;

then read the Kconfig that is returned.

Offline

#6 2011-06-10 23:12:06

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,697
Website

Re: map back a specific kernel module to its option in nconfig [solved]

@tomk -

$ find . -name Kconfig -exec grep -rH scsi_mod {} \;
./drivers/scsi/Kconfig:      The module will be called scsi_mod.
./drivers/scsi/Kconfig:      You can override this choice by specifying "scsi_mod.scan=sync"

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#7 2011-06-10 23:24:12

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: map back a specific kernel module to its option in nconfig [solved]

Yes, that's what I got too.

Now read the Kconfig.

Offline

#8 2011-06-11 10:52:37

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,697
Website

Re: map back a specific kernel module to its option in nconfig [solved]

Thanks for your help, tomk - it's working now.  My problem wasn't with what I did, it was with grub2: https://bbs.archlinux.org/viewtopic.php?id=120648


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB