> As far as drivers, disable what you
> don't need and enable what yo do need. 

> William Harrington

Two hints I got some time ago, which helped me a lot:

1: get a recent distro, boot it up, do

dmesg > dmesg.log,
look at dmesg.log with eg. vim and look at the kernel bootmessages for
the hardware the kernel finds, in my case as example the network card:

cat dmesg.log | grep net

gives me:

[    1.268430] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[    1.397319] nfnl_acct: registering with nfnetlink.
[    1.399892] ctnetlink v0.93: registering with nfnetlink.

so this looks like I have a gigabit r8169 network interface. The next
step is to find this driver in the unexplored voids of the kernelconfig,
which leads to my second hint:

2: in make menuconfig use the search function ( it took years until I
found this extremely useful feature...)

doesn't matter where you are in menuconfig, just type:

/

and you are prompted for a searchstring, enter in our case:

r8169

and you get:

Symbol: R8169 [=y]                                                      |
  | Type  : tristate
    |
  | Prompt: Realtek 8169 gigabit ethernet support
    |
  |   Defined at drivers/net/ethernet/realtek/Kconfig:105
    |
  |   Depends on: NETDEVICES [=y] && ETHERNET [=y] && NET_VENDOR_REALTEK
[= |
  |   Location:
    |
  |     -> Device Drivers
    |
  |       -> Network device support (NETDEVICES [=y])
    |
  |         -> Ethernet driver support (ETHERNET [=y])
    |
  | (1)       -> Realtek devices (NET_VENDOR_REALTEK [=y])
    |
  |   Selects: FW_LOADER [=y] && CRC32 [=y] && NET_CORE [=y] && MII [=y]

which tells you all you need to know:
-- the configline is called: Symbol: R8169 (which expands to
CONFIG_R8169=y in the .config file menuconfig later creates)
-- and the Location: Device Drivers -> Network dev supp -> realtek -> etc...
-- ( the Selects tells you, that menuconfig automatically selects other
options which are needed for this driver)

do this for all important driver you can find in dmesg, and you are good
to go (if you are positive you got all you need, you may disable ALL
other driver hooogh!) . to make it easier, disable modules, this only
complicates things IMO. And be prepared to do this a whole lot of times
because chances are good that you missed some important things but this
is quite normal...

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to