next up previous contents

3.2 Compiler un noyau

On cherche ici à configurer le noyau de manière a économiser la RAM, on peut donc utiliser un noyau épuré. Voici, ici le fichier DISKLESS que j'utilise (il ne permet pas de lancer X:

machine         i386
cpu             I386_CPU
ident           GANESH
maxusers        8

options         MATH_EMULATE            #Support for x87 emulation
options         INET                    #InterNETworking
options         NFS                     #Network Filesystem
options         NFS_ROOT                #NFS usable as root device, NFS required
options         COMPAT_43               #Compatible with BSD 4.3 [KEEP THIS!]
options         _KPOSIX_PRIORITY_SCHEDULING
options         KBD_INSTALL_CDEV        # install a CDEV entry in /dev

options         BOOTP           # Use BOOTP to obtain IP address/hostname
options         BOOTP_NFSROOT   # NFS mount root filesystem using BOOTP info
options         BOOTP_WIRED_TO=ed0 # Use interface ed0 for BOOTP
                                   # Remplacer ed0 si besoin
device          isa
device          eisa

# atkbdc0 controls the keyboard 
device          atkbdc0 at isa? port IO_KBD
device          atkbd0  at atkbdc? irq 1 flags 0x1

device          vga0    at isa?
device          sc0     at isa? flags 0x100

# Floating point support - do not disable.
device          npx0    at nexus? port IO_NPX irq 13

# Support réseau # NE 2000 Isa/PCI ici.
device          miibus          # MII bus support
device          ed0     at isa? port 0x300 irq 3

pseudo-device   vn              # Pour Le SWAP via NFS
pseudo-device   loop            # Network loopback
pseudo-device   ether           # Ethernet support

Recompiler donc votre noyau, et garder le pour la suite. Vous pouvez le "stripper" grace a la commande strip.


Nicolas LS
2002-03-27