Kernel

From Gentoo Wiki
Jump to:navigation Jump to:search
This page is a translated version of the page Kernel and the translation is 7% complete.
Outdated translations are marked like this.

Il kernel è il cuore del sistema operativo. Contenendo molti dei driver dei dispositivi,il kernel offre interfacce ai programmi per accedere all'hardware del sistema come le memorie, le schede grafiche e i dispositivi di blocco.

Questo articolo si riferisce esclusivamente al kernel Linux.

See also
See also the handbook on installing and setting up a kernel.

Gentoo provides a choice of methods to get a kernel up and running, from a standard binary kernel as would be supplied by most distributions to a custom configured and compiled kernel.

Suggerimento
When starting out, the gentoo-kernel-bin provides a quick and easy way to get a kernel up and running, while still providing a light, high performance kernel (just like any modern distribution would). Once a system is installed and functioning correctly, a different kernel may be selected if needed. The sys-kernel/gentoo-kernel-bin can be kept around in case of issues booting a custom kernel.

gentoo-sources

Gentoo raccomanda sys-kernel/gentoo-sources per la maggior parte degli utenti. La sua versione stabile segue i kernel stabili a lungo termine (LTS) da kernel.org.

Distribution kernels

The distribution kernel project provides packages to install and manage kernels through Portage. These kernels are compiled (if needed) and installed with just an emerge command like any other package, which can lessen the administrative burden. Kernel updates are performed when updating the system (i.e., emerge -avuDN @world), and the only manual step is to have the bootloader use the new kernel.

These kernels come with a default configuration that should "just work" for most systems. For users not interested in configuring their own kernel from scratch, these kernels can get things up and running quicker:

gentoo-kernel

The sys-kernel/gentoo-kernel package provides a kernel that will be compiled and installed when the package is emerged. This comes with a default configuration that should work out of the box on most systems, but allows customization if desired.

gentoo-kernel-bin

The sys-kernel/gentoo-kernel-bin is a binary package containing a precompiled kernel, allowing for faster installation. This package is a precompiled version of the gentoo-kernel package with a default configuration.

Importante
Since the gentoo-kernel* packages automate the configuration and compilation process - independently from the usual, manual way of compiling and installing kernels - the rest of this article concerns installation using the sys-kernel/gentoo-sources package. See the distribution kernel project for further information on distribution kernels

Installazione

Per creare un kernel, è necessario installare prima il codice sorgente del kernel stesso. I sorgenti raccomandati per un sistema desktop sono i sys-kernel/gentoo-sources. Questi sono mantenuti dagli sviluppatori Gentoo, e patchati per sistemare vulnerabilità di sicurezza, problemi funzionali, così come per incrementare la compatibilità con le architetture di sistema rare.

USE flags

USE flags for sys-kernel/gentoo-sources Full sources including the Gentoo patchset for the 6.8 kernel tree

build !!internal use only!! DO NOT SET THIS FLAG YOURSELF!, used for creating build images and the first half of bootstrapping [make stage1]
experimental Apply experimental patches; for more information, see "https://wiki.gentoo.org/wiki/Project:Kernel/Experimental".
symlink Force kernel ebuilds to automatically update the /usr/src/linux symlink

Emerge

Adesso bisogna installare sys-kernel/gentoo-sources:

root #emerge --ask sys-kernel/gentoo-sources

Kernel alternativi

Sebbene tutto il kernel stabile fornito da Gentoo sia sys-kernel/gentoo-sources, ci sono molti altri kernel nell'albero di Portage. Vedi l'articolo Kernel sources overview, che da dettagli su molti di loro.

Ricerca in tutti i pacchetti del kernel

Una lista completa delle sorgenti del kernel con delle brevi descrizioni possono essere trovate con emerge:

root #emerge --search "%@^sys-kernel/.*sources"

Articoli disponibili

Configurazione

Automatic configuration
genkernel è un programma usato per automatizzare il processo di compilazione del kernel e dell'initramfs. L'obbiettivo di genkernel è quello di aiutare gli utenti attraverso il processo della compilazione del kernel.
Configurazione Manuale
La configurazione manuale permette all'utente, con un po' di impegno, di creare una configurazione del kernel su misura.
Guida alla configurazione del kernel Gentoo
manuale sulla configurazione del kernel di Gentoo.
Kernel security
istruzioni per la messa in sicurezza del kernel.
Modules
Modules are object files that contain code to extend the kernel.
Optimization
Descriptions of various optimizations for the kernel.
Command-line parameters
Descriptions of some commonly useful command-line parameters which can be passed to the kernel at boot time for troubleshooting.

Aggiornamento

Aggiornamento
Indicazioni per l'aggiornamento di un kernel utilizzando una configurazione esistente.

Rimozione

Rimozione
Indicazioni per rimuovere completamente i vecchi kernel.

Risoluzione dei problemi

Supporto per la configurazione nel kernel

Vedi il sottoarticolo supporto IKCONFIG.

Parametri della riga di comando del kernel

Quando avviando da un bootloader, il kernel Linux può accettare dei parametri da linea di comandoper cambiare il suo comportamento. Questo può aiutare nella risoluzione dei problemi del kernel al momento dell'avvio, per inserire nella blacklist un determinato modulo che non dovrebbe essere caricato, ecc.

Vedere anche

  • Linux firmware — is a package distributed alongside the Linux kernel that contains firmware binary blobs necessary for partial or full functionality of certain hardware devices.
  • LVFS — a daemon that provides a safe, reliable way of applying firmware updates on Linux.
  • Kernel/IKCONFIG support — Enabling In-kernel Config (IKCONFIG) support for the Linux kernel enables the inspection of kernel configuration for running kernels.
  • La categoria kernel - Tutti gli articoli relativi al kernel sul wiki.
  • La categoria hardware - Elenchi di stack hardware con configurazioni del kernel associate.

Risorse esterne

References