Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
fuss:debian [2019/07/27 02:58] – [Reinstall Package and All Dependencies] officefuss:debian [2020/02/28 05:41] – [Execute Java Program under Different JDK Version] office
Line 344: Line 344:
  
 to set the java JDK version to be used. to set the java JDK version to be used.
 +
 +====== Recompile Debian Kernel ======
 +
 +
 +[[https://www.circuidipity.com/kernel/|Summarizing]], either use apt to fetch the source code, ie:
 +<code bash>
 +apt-get source linux-image-4.19.0-8-amd64
 +</code>
 +
 +or download the kernel source code manually from http://kernel.org.
 +
 +Since Debian does not define the kernel compilation parameter to include the current kernel configuration in memory under ''/proc/config.gz'' but stores the configuration under ''/boot'', the configuration can be copied into the current kernel source directory:
 +<code bash>
 +cp /boot/config-4.19.0-8-amd64 .config
 +</code>
 +
 +In case a different kernel version is to be compiled compared to the current kernel configuration, the following command:
 +<code bash>
 +make olddefconfig
 +</code>
 +should accept the default for the current kernel version.
 +
 +If compiling under Debian, the current configuration ''.config'' has to be edited and ''CONFIG_SYSTEM_TRUSTED_KEYS'' set to the empty string:
 +<code>
 +CONFIG_SYSTEM_TRUSTED_KEYS=""
 +</code>
 +in order to avoid a compilation error:
 +<code>
 +No rule to make target 'debian/certs/debian-uefi-certs.pem', needed by 'certs/x509_certificate_list' Stop.
 +</code>
 +
 +Additionally, since Debian builds the debug packages of the kernel by default which takes a long while and uses up a lot of disk resources, the kernel configuration in ''.config'' can be edit and the parameter ''CONFIG_DEBUG_INFO'' adjusted to ''n'' to skip building the debug packages:
 +<code bash>
 +CONFIG_DEBUG_INFO=n
 +</code>
 +
 +The usual pair of commands, either ''nconfig'':
 +<code bash>
 +make nconfig
 +</code>
 +
 +or ''makeconfig'' can be issued in order to make any changes to the copied configuration:
 +<code bash>
 +make menuconfig
 +</code>
 +
 +Finally, issue:
 +<code bash>
 +make deb-pkg LOCALVERSION=-custom
 +</code>
 +where:
 +  * ''-custom'' is a build name appended to the kernel package that will be built.
  
  

fuss/debian.txt · Last modified: 2024/02/24 18:50 by office

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.