Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Nächste Überarbeitung
Vorhergehende Überarbeitung
Nächste ÜberarbeitungBeide Seiten der Revision
software:linux:realtime:preempt_rt:build_kernel [2019-01-21 16:28] – angelegt mgehrig2software:linux:realtime:preempt_rt:build_kernel [2019-02-13 13:05] mgehrig2
Zeile 18: Zeile 18:
 ==== Get the Linux sources ==== ==== Get the Linux sources ====
   * Clone the kernel <code>git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git</code>   * Clone the kernel <code>git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git</code>
 +  * Check out the same version as choosen for the patch <code>git checkout -b RTPatch tags/v4.4.148</code>
 +
 +===== Build the kernel =====
 +==== Patch the kernel sources ====
 +  * Go into the kenrel source directory
 +  * Applay the patch<code>patch -p1 < <pathToPatch>/patch-4.4.148-rt166-rc1.patch</code>
 +
 +==== Choose the build variant ====
 +This selection will affect, how many modules will be built.
 +The sizef and the range of functions of the monolitic kernel will not be changed.
 +Additional modules can be built and installed after the kernel is installed.
 +
 +  * **a.) Minimal**: This will only build modules which are essential. Some basic function like Wifi drivers may be missing. Some basic Ethernet drive are in the monolitic part of the kernel and will still work
 +  * **b.) Full module support** (recommended ) A normal Linux distribution, like Ubuntu, will install a kernel and most of the available kernel modules. Many of them are never used, because they are drivers for hardware, wich is not installed on the PC. This variant contains the same modules like a full Ubuntu kernel.
 +  * **c.) Only selected modules**