How can I replace kernel of lx2160a based lsdk2004, need to use linux RT kernel

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How can I replace kernel of lx2160a based lsdk2004, need to use linux RT kernel

Jump to solution
878 Views
156614400
Contributor III

How can I replace kernel of lx2160a based lsdk2004, need to use linux RT kernel

1 need to run NR_PHY soft in linux system, so need RT (real time) kernel,  where I can get the linux RT kernel??

2  How to Configure RT kernel ??  use kernel .config of lsdk2004 ?? 

Thanks!

0 Kudos
1 Solution
860 Views
yipingwang
NXP TechSupport
NXP TechSupport

In LSDK 20.04, a separate branch “linux-4.19-rt” of Linux kernel is used for PREEMP RT, and PREEMP_RT patches have been applied in this kernel branch.

Build Preempt RT Kernel Image in LSDK with the following command.
$ flex-builder -c linux:linux:LSDK-20.04-V4.19-RT

To get PREEMP_RT Kernel source code with the following command.

$ git clone https://source.codeaurora.org/external/qoriq/qoriq-components/linux.git

$ git checkout -b linux-4.19-rt  origin/linux-4.19-rt

 

Enable “ CONFIG_PREEMPT_RT_FULL=y” in the kernel:
-> General setup
   ->Preemption Model (Fully Preemptible Kernel (RT)) --->

      (X) Fully Preemptible Kernel (RT)

By default, RT feature is enabled in the defconfigs of the LSDK kernel RT branch.

CONFIG_PREEMPT=y
CONFIG_PREEMPT_RT_FULL=y

View solution in original post

0 Kudos
2 Replies
861 Views
yipingwang
NXP TechSupport
NXP TechSupport

In LSDK 20.04, a separate branch “linux-4.19-rt” of Linux kernel is used for PREEMP RT, and PREEMP_RT patches have been applied in this kernel branch.

Build Preempt RT Kernel Image in LSDK with the following command.
$ flex-builder -c linux:linux:LSDK-20.04-V4.19-RT

To get PREEMP_RT Kernel source code with the following command.

$ git clone https://source.codeaurora.org/external/qoriq/qoriq-components/linux.git

$ git checkout -b linux-4.19-rt  origin/linux-4.19-rt

 

Enable “ CONFIG_PREEMPT_RT_FULL=y” in the kernel:
-> General setup
   ->Preemption Model (Fully Preemptible Kernel (RT)) --->

      (X) Fully Preemptible Kernel (RT)

By default, RT feature is enabled in the defconfigs of the LSDK kernel RT branch.

CONFIG_PREEMPT=y
CONFIG_PREEMPT_RT_FULL=y

0 Kudos
853 Views
156614400
Contributor III

very good, thanks

0 Kudos