Tamaño: 1241
Comentario:
|
Tamaño: 1351
Comentario:
|
Los textos eliminados se marcan así. | Los textos añadidos se marcan así. |
Línea 40: | Línea 40: |
* Borrar referencia a certificado antiguo (https://www.kernel.org/doc/html/v4.14/admin-guide/module-signing.html). | * Borrar referencia a certificado antiguo ([[https://www.kernel.org/doc/html/v4.14/admin-guide/module-signing.html|https://www.kernel.org/doc/html/v5.2/admin-guide/module-signing.html?highlight=config_system_trusted_keys]]). |
Generando un nuevo kernel en Debian.
Descargar kernel (https://www.kernel.org/).
wget https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.2.11.tar.xz
- Descomprimir en /usr/src/
tar axvf linux-5.2.11.tar.xz
- Ingresar al directorio.
cd /usr/src/linux-5.2.11
- Limpiar el directorio de configuraciones anteriores.
make distclean make clean
- Copiar configuracion de kernel activo anterior.
cp /boot/config-4.19.0-5-amd64 .config
- Configurar opciones del kernel (consultará sobre las nuevas características del nuevo kernel).
make oldconfig
- Deshabilitar debug kernel info en .config (evitará generar una imagen linux-dbg)
vim .config CONFIG_DEBUG_INFO=n
Borrar referencia a certificado antiguo (https://www.kernel.org/doc/html/v5.2/admin-guide/module-signing.html?highlight=config_system_trusted_keys).
vim .config CONFIG_SYSTEM_TRUSTED_KEYS=""
- Compilar y generar paquete .deb
make deb-pkg
- Instalar nuevo kernel (actualiza grub)
dpkg -i linux-image.deb
- Reiniciar.
Shutdown -r now
Referencia: https://kernel-team.pages.debian.net/kernel-handbook/ch-common-tasks.html#s-common-building