Tamaño: 829
Comentario:
|
Tamaño: 1241
Comentario:
|
Los textos eliminados se marcan así. | Los textos añadidos se marcan así. |
Línea 1: | Línea 1: |
* Descargar kernel (https://www.kernel.org/) * {{{ wget ftp://gcc.gnu.org/pub/gcc/infrastructure/gmp-6.1.0.tar.bz2 |
'''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 |
Línea 5: | Línea 8: |
* * |
* Descomprimir en /usr/src/ |
Línea 8: | Línea 10: |
Descomprimir en /usr/src/ | {{{ tar axvf linux-5.2.11.tar.xz }}} * Ingresar al directorio. |
Línea 10: | Línea 15: |
1. {{{ asdasd }}} 1. * ingresar al directorio * limpiar directorio: |
{{{ cd /usr/src/linux-5.2.11 }}} * Limpiar el directorio de configuraciones anteriores. |
Línea 13: | Línea 20: |
1. make distclean make clean | {{{ make distclean make clean }}} * Copiar configuracion de kernel activo anterior. |
Línea 15: | Línea 26: |
* copiar configuación vieja: cp /boot/config-xxx /usr/src/linux-yyy/.config * configurar opciones (mostrando las nuevas): make oldconfig * deshabilitar debug kernel info en .config (evitará generar una imagen linux-dbg): CONFIG_DEBUG_INFO=n * borrar referencia a keys: CONFIG_SYSTEM_TRUSTED_KEYS="" * compilar y generar paquete .deb: make deb-pkg * instalar nuevo kernel (actualiza el grub): dpkg -i linux-yyy.deb * reinicier con el nuevo kernel | {{{ cp /boot/config-4.19.0-5-amd64 .config }}} * Configurar opciones del kernel (consultará sobre las nuevas características del nuevo kernel). |
Línea 17: | Línea 31: |
* referencia: https://kernel-team.pages.debian.net/kernel-handbook/ch-common-tasks.html#s-common-building | {{{ 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/v4.14/admin-guide/module-signing.html). {{{ 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 |
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/v4.14/admin-guide/module-signing.html).
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