Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Letzte ÜberarbeitungBeide Seiten der Revision
software:linux:realtime:preempt_rt:build_kernel [2019-02-15 10:31] mgehrig2software:linux:realtime:preempt_rt:build_kernel [2019-02-15 10:52] mgehrig2
Zeile 54: Zeile 54:
 === b.) Minimal === === b.) Minimal ===
 You have three different options: You have three different options:
-  * **a.)** Configure the kernel to add only the bare minimum. Add all additional modules manually. +  * **1.)** Configure the kernel to add only the bare minimum. Add all additional modules manually. 
-  * **b.)** Configure the kernel to add all modules, which are currently loaded on the host pc. +  * **2.)** Configure the kernel to add all modules, which are currently loaded on the host pc. 
-  * **c.)** Configure the kernel to add all modules, which are currently loaded on a different pc.+  * **3.)** Configure the kernel to add all modules, which are currently loaded on a different pc.
  
- +== 1.) Bare minimum == 
-  - <code>cd <pathToKernelSrc></code>+  - ''cd <pathToKernelSrc>''
   - Depending on the CPU architecture:   - Depending on the CPU architecture:
-    - X86 - 64bit <code>make x86_64_defconfig</code>+    - X86 - 64bit ''make x86_64_defconfig''
     - X86 - 32bit ''make i386_defconfig''     - X86 - 32bit ''make i386_defconfig''
     - See ''<pathToKernelSrc>/arch/<architecture>/configs'' for more possibilities     - See ''<pathToKernelSrc>/arch/<architecture>/configs'' for more possibilities
 +  - Open the configuration menu ''make menuconfig''
 +  - Add all modules and drivers you need.
 +
 +== 2.) Copy module configuration from host ==
 +  - ''cd <pathToKernelSrc>''
 +  - ''make localmodconfig''
 +  - Open the configuration menu ''make menuconfig''
 +  - Add all additional modules and drivers you need.
 +
 +**Note**: Most modules are only loaded when they are needed.
 +
 +
 +== 3.) Copy module configuration from a different machine ==
 +On target machine (with generic kernel loaded):
 +  - ''lsmod > /tmp/mylsmod''
  
 +On host:
 +  - ''cd <pathToKernelSrc>''
 +  - Copy the '//mylsmod//' file:
 +    - ''scp <targetUsername>@<targetHostname>:/tmp/mylsmod ./''
 +  - ''make LSMOD=./mylsmod localmodconfig''
 +  - Open the configuration menu ''make menuconfig''
 +  - Add all additional modules and drivers you need.
  
 === Additional configurations === === Additional configurations ===