Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste ÜberarbeitungBeide Seiten der Revision
software:linux:realtime:preempt_rt:build_kernel [2019-02-13 15:55] mgehrig2software:linux:realtime:preempt_rt:build_kernel [2019-02-13 16:55] mgehrig2
Zeile 25: Zeile 25:
  
 [[software:linux:linux_os:install_old_kernel|Instructions]] [[software:linux:linux_os:install_old_kernel|Instructions]]
 +
  
  
Zeile 43: Zeile 44:
  
 ==== Configure the kernel ==== ==== Configure the kernel ====
-=== Full module support ===+=== a.) Full module support ===
   - Copy the kernel configuration from the generic kernel.   - Copy the kernel configuration from the generic kernel.
     * Make sure you copy the correct config-file with the correct version (i.e. ''config-4.4.0-040400-generic'')<code>cd <pathToKernelSrc>     * Make sure you copy the correct config-file with the correct version (i.e. ''config-4.4.0-040400-generic'')<code>cd <pathToKernelSrc>
-cp /boot/<yourDistributionConfig></code>+cp /boot/<yourDistributionConfig> ./.config</code>
   - Applay the configuration to the patched kernel sources.<code>make oldconfig</code>   - Applay the configuration to the patched kernel sources.<code>make oldconfig</code>
-  *+    This will applay the configuration. However, since the kernel is patched and not identical to the generic kernel, not all configurations are defined. Acccept all presented options with ''ENTER''
 + 
 + 
 +=== b.) Minimal === 
 +TODO 
 + 
 + 
 +=== Additional configurations === 
 +  - Open the configuration menu <code>make menuconfig</code> 
 +  - Enable the fully preemptible kernel (The path may be different depending on the kernel version) 
 +    * Processor type and features ---> Preemption  Model /Voluntary Kernel Preemption (Desktop)) ---> **(X) Fully Preemptible Kernel (RT)**  
 +      * or 
 +    * Kernel options  ---> Preemption Model (No Forced Preemption (Server))  --->  **(X) Fully Preemptible Kernel (RT)**  
 +  - Deactivate expert mode 
 +    - General setup ---> **[ ] Configure standard kernel features (expert users)** 
 +  - Save the configuration and exit the menu 
 + 
 + 
 + 
 +==== Make and install the kernel ==== 
 +This will going to take about an hour. 
 + 
 +  - Compile kernel <code>make -j8</code> 
 +  - Compile modules <code>make modules -j8</code> 
 +  - Install kernel modules <code>sudo make modules_install</code> 
 +  - Install kernel <code>sudo make install</code> 
 +  - Reboot 
 +  - Check with ''uname -a'' the kernel version