We're no longer updating This wiki!!

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:c2_building_rt_kernel [2016/08/11 13:59]
moon.linux [Checkout]
en:c2_building_rt_kernel [2016/10/06 11:38] (current)
moon.linux [Checkout]
Line 20: Line 20:
 ====== Build RT kernel ====== ====== Build RT kernel ======
  
-To build RT kernelyou ​need to update the kernel with Real time kernel patches.+To build RT kernel we need to update the kernel with Real time kernel patches.
  
 RT Patches file can be found on https://​www.kernel.org/​pub/​linux/​kernel/​projects/​rt/​ RT Patches file can be found on https://​www.kernel.org/​pub/​linux/​kernel/​projects/​rt/​
Line 27: Line 27:
  
 ==== Checkout ==== ==== Checkout ====
-You can checkout Linux kernel source tree from **[[https://​github.com/​hardkernel/​linux/​tree/​odroidc2-3.14.y-android|Hardkernel'​s Github]]**.+You can checkout Linux kernel source tree from **[[https://​github.com/​hardkernel/​linux/​tree/​odroidc2-3.14.y|Hardkernel'​s Github]]**.
  
 === RT Linux Kernel === === RT Linux Kernel ===
Line 36: Line 36:
 $ wget https://​www.kernel.org/​pub/​linux/​kernel/​projects/​rt/​3.14/​older/​patch-3.14.65-rt68.patch.gz $ wget https://​www.kernel.org/​pub/​linux/​kernel/​projects/​rt/​3.14/​older/​patch-3.14.65-rt68.patch.gz
 $ zcat patch-3.14.65-rt68.patch.gz > patch-3.14.65-rt68.patch $ zcat patch-3.14.65-rt68.patch.gz > patch-3.14.65-rt68.patch
 +$ patch -p1 < patch-3.14.65-rt68.patch
 </​code>​ </​code>​
  
-Note: Few file have confilct ​so you need to update ​manually these patches ​before ​build the kernel.+**Note:** Arc arm64 rt kernel ​have some missing patches ​so we have to update ​the kernel for 
 +Following ​patches ​need to be applied to build the kernel.
  
-=== BuildRT Linux Kernel === +**Note:** These patches can be found in 3.18.y-rt patch series. 
-Kernel ​Configration ​for RT Full Preemptible Kernel.+ 
 +<​code>​ 
 +arm64: Mark PMU interrupt IRQF_NO_THREAD.patch 
 +arm64: Allow forced irq threading.patch 
 +arch/arm64: Add lazy preempt support.patch 
 +arm64: replace read_lock to rcu lock in call_step_hook 
 +</​code>​ 
 + 
 +**Note:** Few file have conflict so you need to update manually these patches before build the kernel. 
 + 
 +**Note:** Please find the links for all the updated patch in the following repository. 
 + 
 +https://​github.com/​moonlinux/​linux/​tree/​odroidc2-3.14.y-rt 
 +==== BuildRT Linux Kernel ​==== 
 +Kernel ​Configuration ​for RT Full Preemptible Kernel.
  
 Select following options to build the kernel. Select following options to build the kernel.
Line 49: Line 65:
        (X) Fully Preemptible Kernel (RT) --->        (X) Fully Preemptible Kernel (RT) --->
 </​code>​ </​code>​
-Note: update the odroidc2_defconfig with current modified.+**Note:** update the odroidc2_defconfig with current modified.
 <​code>​ <​code>​
 $ cp .config arch/​arm64/​configs/​odroidc2_defconfig $ cp .config arch/​arm64/​configs/​odroidc2_defconfig
Line 62: Line 78:
 $ make <-j4> Image dtbs modules $ make <-j4> Image dtbs modules
 </​code>​ </​code>​
-You have done to compile the Linux kernel (Image), the device tree file (.dtb) and kernel modules (.ko). ​ 
  
 +You have done to compile the Linux kernel (Image), the device tree file (.dtb) and kernel modules (.ko). ​
  
 <WRAP center round important 100%> <WRAP center round important 100%>
en/c2_building_rt_kernel.1470893374.txt.gz · Last modified: 2016/08/11 13:59 by moon.linux
CC Attribution-Share Alike 3.0 Unported
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0