User Tools

Site Tools


kernel_build

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
kernel_build [2025/01/21 23:35] ounsatnkernel_build [2025/01/21 23:45] (current) ounsatn
Line 33: Line 33:
 Extract kernel source 5.15 with  Extract kernel source 5.15 with 
 <code> tar -xf linux-5.15.tar.xz </code> <code> tar -xf linux-5.15.tar.xz </code>
 +
 +it will create a folder linux-5.15, this is what i call __**source tree**__ ( or kernel source ) 
  
 {{http://dnttalo.cluster029.hosting.ovh.net/Pictures/Kernel/KernelSourceFile.JPG}} {{http://dnttalo.cluster029.hosting.ovh.net/Pictures/Kernel/KernelSourceFile.JPG}}
Line 54: Line 56:
  
 apply dos2unix on each patches, and in folder patches ( extracted from patches-5.15.86-rt56) apply dos2unix on each patches, and in folder patches ( extracted from patches-5.15.86-rt56)
-<code>dos2unix patch* +<code>dos2unix patch-5
 cd patches  cd patches 
 dos2unix *.patch </code> dos2unix *.patch </code>
  
-Go to kernel source and patch like below +__Go to kernel source__ and patch like below 
  
  
Line 74: Line 76:
  
  
-go to source tree folder : +__stay in source tree folder :__ 
  
 Change localversion in file localversion-rt Change localversion in file localversion-rt
Line 87: Line 89:
 It gives a file named "config"   It gives a file named "config"  
  
-Copy this file in source tree as ".config" name. +Copy this file in source tree folder as **".config"** name. 
  
-go to source tree to build menuconfig +go to source tree folder to build menuconfig 
 <code> make menuconfig </code> <code> make menuconfig </code>
  
Line 100: Line 102:
  - General Setup / Local version string, now it's empty (let it empty )   - General Setup / Local version string, now it's empty (let it empty ) 
  
- - General Setup / Preemption model => Fully Preemptible Kernel ( Real-Time ) : this give the rt56+ - General Setup / Preemption model => Fully Preemptible Kernel ( Real-Time ) : this give the rt features
        this option is only available after patching with rt56 patch.         this option is only available after patching with rt56 patch. 
 +
 +( and of course other features ...) 
  
  
Line 120: Line 124:
  
  
-Now when your back in source tree type :+Now when your back in source tree folder type :
  
 <code> make modules_prepare </code> <code> make modules_prepare </code>
Line 127: Line 131:
  
 Then go to your module folder in source tree.  Then go to your module folder in source tree. 
-For joystick we've checked it's in /src/builddemo/linux-5.15/drivers/input +For joystick module we've checked in kernel config, it'located in /src/builddemo/linux-5.15/drivers/input 
  
 and launch : and launch :
Line 142: Line 146:
  
  
-Make detects that you have check joystick device as module in kernel config, so it compiles the associated module source file. +Make detects that you have checked joystick device as module in kernel config, so it compiles the associated module source file. 
  
  
Line 172: Line 176:
  
 Issue command lsmod to see current loaded modules :  Issue command lsmod to see current loaded modules : 
 +
 {{http://dnttalo.cluster029.hosting.ovh.net/Pictures/Kernel/lsmod_before.JPG}} {{http://dnttalo.cluster029.hosting.ovh.net/Pictures/Kernel/lsmod_before.JPG}}
 +
 do modprobe joydev  do modprobe joydev 
  
 Issue it again, tadaaaa it's there.  Issue it again, tadaaaa it's there. 
 +
 {{http://dnttalo.cluster029.hosting.ovh.net/Pictures/Kernel/modprobe_joydev.JPG}} {{http://dnttalo.cluster029.hosting.ovh.net/Pictures/Kernel/modprobe_joydev.JPG}}
  
kernel_build.1737498911.txt.gz · Last modified: 2025/01/21 23:35 by ounsatn

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki