Outre la sélection par Y/N,oui/non, la sélection de modules présente une difficulté supplémentaire.Il est des options critiques qu’il ne faut surtout pas valider en modules mais en options pleines. Déterminer ce qu’il est essentiel de comprendre dans le noyau et ce qu’il est possible de compiler en module du noyau est l’une des difficultés de la compilation personnelle. Il n’est pas simple de résumer ça à deux ou trois banales opérations.
Tu te bases sur un noyau fonctionnel en récupérant son config, en regardant les modules qui se chargent par $ lsmod, le matériel qui nécessite la prise en charge …pour bâtir un config neuf.
Si ça foire, tu recommences…
linuxtopia.org/online_books/ … #id2568259
[quote]Finding Which Module Is Needed
A configuration file that comes from a distribution takes a very long time to build, because of all of the different drivers being built. You want to build only the drivers for the hardware that you have, which will save time on building the kernel, and allows you to build some or all of the drivers into the kernel itself, possibly saving a bit of memory, and on some architectures, making for a faster running system. To cut your drivers down, you need to determine which modules are needed to drive your hardware. We will walk though two examples of how to find out what driver is needed to control what piece of hardware.
[/quote]
Le site présente également des petites recettes (ACHTUNG, ces recettes ne sont pas forcément au point du jour)
linuxtopia.org/online_books/ … ml#lkn_usb
[quote]USB
Linux supports many different types of USB devices. To enable USB support, you must first enable support for a USB controller, which drives the USB connection on the machine.
…
Enable USB support for the kernel:
Device Drivers
USB Support
[M] Support for Host-side USB
Enable the specific USB Host controllers for your machine (it is safe to enable them all if you do not know which you have):
Device Drivers
USB Support
— USB Host Controller Drivers
[M] EHCI HCD (USB 2.0) support
[M] OHCI HCD support
[M] UHCI HCD (most Intel and VIA) support
Individual USB devices also need their drivers to be enabled.
…
If you want to insert USB storage devices (USB flash), look now at the section called “USB storage”.
[/quote][quote]USB storage
To use a USB storage device (commonly referred to as USB “flash” device, or an external USB disk drive) USB support must be first working properly. Refer to the recipe in the section called “USB” for how to do this.
A USB storage device can be identified by using the lsusb program. If the following command sequence produces the results shown, a USB storage device is present on the system:
$
/usr/sbin/lsusb -v | grep Storage
bInterfaceClass 8 Mass Storage
Enable it as follows.
A USB Storage device is in reality a USB SCSI device that talks over a USB connection. Because of this, the SCSI subsystem must be enabled:
Device Drivers
SCSI Device Support
[*] SCSI Device Support
Also in the SCSI system, the "SCSI disk support" must be enabled in order for the device to be mounted properly:
Device Drivers
SCSI Device Support
[*] SCSI disk support
Enable USB Storage support:
Device Drivers
USB Support
[M] USB Mass Storage support
A number of specific USB storage devices are listed as separate configuration items, as they do not follow the standard USB specification and require special code. If you have one of these devices, please enable support for them. [/quote]
Ajouter les pilotes individuels spécifiques au matériel.
Attention à BLK_DEV_SD=y.
config USB_STORAGE
tristate "USB Mass Storage support"
depends on SCSI
---help---
Say Y here if you want to connect USB mass storage devices to your
computer's USB port. This is the driver you need for USB
floppy drives, USB hard disks, USB tape drives, USB CD-ROMs,
USB flash devices, and memory sticks, along with
similar devices. This driver may also be used for some cameras
and card readers.
This option depends on 'SCSI' support being enabled, but you
probably also need 'SCSI device support: SCSI disk support'
(BLK_DEV_SD) for most USB storage devices. Some devices also
will require 'Probe all LUNs on each SCSI device'
(SCSI_MULTI_LUN).
To compile this driver as a module, choose M here: the
module will be called usb-storage.
config BLK_DEV_SD
tristate "SCSI disk support"
depends on SCSI
select CRC_T10DIF if BLK_DEV_INTEGRITY
---help---
If you want to use SCSI hard disks, Fibre Channel disks,
Serial ATA (SATA) or Parallel ATA (PATA) hard disks,
USB storage or the SCSI or parallel port version of
the IOMEGA ZIP drive, say Y and read the SCSI-HOWTO,
the Disk-HOWTO and the Multi-Disk-HOWTO, available from
<http://www.tldp.org/docs.html#howto>. This is NOT for SCSI
CD-ROMs.
To compile this driver as a module, choose M here and read
<file:Documentation/scsi/scsi.txt>.
The module will be called sd_mod.
Do not compile this driver as a module if your root file system
(the one containing the directory /) is located on a SCSI disk.
In this case, do not compile the driver for your SCSI host adapter
(below) as a module either.