Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel build question!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
The_Great_Sephiroth
Veteran
Veteran


Joined: 03 Oct 2014
Posts: 1364
Location: Fayetteville, NC, USA

PostPosted: Sat Nov 29, 2014 5:12 pm    Post subject: Kernel build question! Reply with quote

I am preparing to install Gentoo 64bit on my Dell laptop. I am hoping somebody out there can tell me what modules I should compile into my kernel so that all of my built-in hardware is available in-kernel, not as modules. Thank you!

PCI Devices:
Code:

00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07)
00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
00:02.1 Display controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
00:19.0 Ethernet controller: Intel Corporation 82567LM Gigabit Network Connection (rev 03)
00:1a.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03)
00:1a.2 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 03)
00:1a.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (rev 03)
00:1c.2 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 3 (rev 03)
00:1c.3 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 4 (rev 03)
00:1d.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 93)
00:1f.0 ISA bridge: Intel Corporation ICH9M-E LPC Interface Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation 82801IBM/IEM (ICH9M/ICH9M-E) 4 port SATA Controller [AHCI mode] (rev 03)
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 03)
03:01.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 04)
03:01.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 21)
03:01.2 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 11)
0c:00.0 Network controller: Intel Corporation WiFi Link 5100


USB Devices:
Code:

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 002: ID 0a5c:5800 Broadcom Corp. BCM5880 Secure Applications Processor


CPU Info:
Code:

processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Core(TM)2 Duo CPU     P8600  @ 2.40GHz
stepping        : 10
microcode       : 0xa0b
cpu MHz         : 800.000
cache size      : 3072 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 2
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm ida dtherm tpr_shadow vnmi flexpriority
bogomips        : 4787.71
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

The laptop is a Latitude E6400. I have 8GB of RAM and a 1TB SATA 3.0Gbps HDD. I will be running minimal X and minimal KDE.
_________________
Ever picture systemd as what runs "The Borg"?


Last edited by The_Great_Sephiroth on Sat Nov 29, 2014 5:55 pm; edited 1 time in total
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Sat Nov 29, 2014 5:32 pm    Post subject: Reply with quote

Try:
Code:
lspci -knn
from the live-disk.
Back to top
View user's profile Send private message
sera
Retired Dev
Retired Dev


Joined: 29 Feb 2008
Posts: 1017
Location: CET

PostPosted: Sat Nov 29, 2014 5:35 pm    Post subject: Reply with quote

There is kernel-seeds.org which should have plenty of information on configuring a kernel. Maybe there is even a seed .config suitable for you.

A list of drivers for pci devices you can get from http://kmuto.jp/debian/hcl/
Back to top
View user's profile Send private message
The_Great_Sephiroth
Veteran
Veteran


Joined: 03 Oct 2014
Posts: 1364
Location: Fayetteville, NC, USA

PostPosted: Sat Nov 29, 2014 5:43 pm    Post subject: Reply with quote

I know how to do the kernel, and my hardware IS compliant with drivers. It currently runs Debian 7.7, but I am moving away due to Debian 8 having systemd as a major dependency. What I have issues with is understanding exactly what kernel options enable which drivers. Some of them have no help or information about them, which complicates things for me since I am NOT a kernel developer. I know what options to enable for many things, such as the WiFi and internal NIC, but am not sure what to enable for audio, video, modem, smartcard reader, etc. I know to compile in EHCI USB support because I have EHCI USB in this system.

I guess the big questions are, what video options should I use for my video card? How about audio and/or modem?

*EDIT*

Sorry about this, but I just realized I posted this in the install section instead of the kernel section! Would a mod please move this? My bad!
_________________
Ever picture systemd as what runs "The Borg"?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13865

PostPosted: Sat Nov 29, 2014 6:14 pm    Post subject: Reply with quote

Please try the advice from steveL and the link from sera, both of which are good self-help resources for matching hardware that works under a reference kernel to the options you must set in your custom kernel.
Back to top
View user's profile Send private message
The_Great_Sephiroth
Veteran
Veteran


Joined: 03 Oct 2014
Posts: 1364
Location: Fayetteville, NC, USA

PostPosted: Sat Nov 29, 2014 6:32 pm    Post subject: Reply with quote

I am not yet at the live CD stage. I am still backing up about 70GB of data. Once done I intend to run the commands posted above. If you're saying they tell me what kernel options to enable in the menu, great! If not, I will still be confused as to what exactly I need. I mean I do not even know if the last laptop was done right. It had some recent Intel chipset that appeared to work with the i915 driver. I believe i915 was out years before that specific system, so that confuses me more.
_________________
Ever picture systemd as what runs "The Borg"?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43213
Location: 56N 3W

PostPosted: Sat Nov 29, 2014 7:05 pm    Post subject: Reply with quote

The_Great_Sephiroth,

They tell what the running kernel is using for your hardware.
Code:
00:1f.2 SATA controller: Intel Corporation 82801IBM/IEM (ICH9M/ICH9M-E) 4 port SATA Controller [AHCI mode] (rev 03)
will use AHCI.
That's true but insuffcient. It will indeed be the kernel to hardware driver.
To make use of it, you need SCSI Disk too. If you want to mount your root filesystem, its handy to have that in the kernel too :)
That's only partly tongue in cheek. Its intended to illustrate that lspci will answer the question you asked but not provide all the information you need to configure your kernel.

e.g. It won't say that you need SCSI CDROM for your optical drives.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Sat Nov 29, 2014 7:11 pm    Post subject: Reply with quote

The_Great_Sephiroth wrote:
I am not yet at the live CD stage. I am still backing up about 70GB of data. Once done I intend to run the commands posted above. If you're saying they tell me what kernel options to enable in the menu, great! If not, I will still be confused as to what exactly I need.

The lspci command should tell you the drivers in use (simply lspci -k does that.) Then you just need to find them in make nconfig

If you check the website, you'd see it asks you for the output of lspci -n to lookup the id->driver and usually a bit of info, iirc.

You were already running lspci to give us a list of PCI devices so I assumed you could just add the flags.

Generally you only need the chipset drivers for your mobo and mobo-controller (SATA usually) builtin, along with the drivers for your rootfs (ext4 covers ext2 and ext3 as well) which nowadays includes the SCSI layer. I normally build my ethernet card in as well, just because. ;) Once the kernel has access to the rootfs (you will need an initramfs if that requires modules loading, or it is on lvm/luks/raid, or less commonly requires eg iSCSI and network, or a bluetooth keyboard) then it should be able to load everything else using /lib/modules.

That means we can have things like USB totally modular, unless ofc we're booting from USB media (which requires some scandelay thing.) Since we've builtin our mobo-controller/chipset we don't need to enable any of the other hard-disk controllers, so we get a much slimmer kernel/build.

HTH,
steveL
Back to top
View user's profile Send private message
The_Great_Sephiroth
Veteran
Veteran


Joined: 03 Oct 2014
Posts: 1364
Location: Fayetteville, NC, USA

PostPosted: Sat Nov 29, 2014 7:53 pm    Post subject: Reply with quote

I normally use lsmod for modules. Is lscpi -k or -n going to be better? I am now zeroing my disk out for security reasons (company laptop) and will then begin the Gentoo install. I am curious about the commands and will run them when I get to the live CD. I am zeroing using Parted Magic on a USB drive.

Now I know I need the AHCI stuff because I have that set in the BIOS. I could do IDE, AHCI, or IRRT (Intel Rapid Restore Tech). AHCI is the best option there. I was under the assumption that selecting AHCI would select SCSI as it depends on it. Either way, I know that stuff. My concern is the audio and video stuff. Thank God I do not have a webcam!

However, that does beg the question, should I enable that V4L stuff if I plan on using a USB webcam to video-conference when on the road?

Finally, my goal is that slim build you mentioned. I want ONLY my hardware built-in. I do intend to build a lot more as modules in case I need them since I do work in the IT field and who knows what I will be plugging in tomorrow.

Wait, I normally build ext2, 3, and 4 into my kernel. Are you saying that if I only build ext4, I can mount ext2 partitions? Really? I did not know that.
_________________
Ever picture systemd as what runs "The Borg"?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43213
Location: 56N 3W

PostPosted: Sat Nov 29, 2014 8:03 pm    Post subject: Reply with quote

The_Great_Sephiroth,

If ext2 and ext3 are off, ext4 has an option to be used for ext2 and ext3 too.
make menuconfig:
  │ │    < > Second extended fs support                                   │ │ 
  │ │    < > Ext3 journalling file system support                         │ │ 
  │ │    <*> The Extended 4 (ext4) filesystem                             │ │ 
  │ │    [*]   Use ext4 for ext2/ext3 file systems



If you don't have a webcam yet but want to add one later, leave the V4L off just now.
You will be rebuiling your kernel to add the correct webcam dirver anyway, once you knom what you want.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
The_Great_Sephiroth
Veteran
Veteran


Joined: 03 Oct 2014
Posts: 1364
Location: Fayetteville, NC, USA

PostPosted: Sat Nov 29, 2014 10:42 pm    Post subject: Reply with quote

I was going to add all webcam drivers as modules due to not knowing and since I may be using different ones for testing purposes anyway. Again, I plug a lot of things into my system for testing and such. When we used Windows five years ago, I had all kinds of junk in the registry/device manager that we only used once. It sucked. I love the way Linux does not store info about devices. years after they have been unplugged.
_________________
Ever picture systemd as what runs "The Borg"?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum