jlamperez / meta-zynqberry-pxfmini

This repository contains yocto zynqberry pxfmini layer
MIT License
1 stars 1 forks source link

RT-kernel and defconfig #2

Open jlamperez opened 7 years ago

jlamperez commented 7 years ago

I have another question, I have seen that you include a kernel defconfig file under recipes-kernel to tunrn into RT the Yocto kernel.

I have set into the conf/local.conf a variable to set RT kernel: PREFERRED_PROVIDER_virtual/kernel = "linux-xlnx"

I have compiled the image and see that is not RT at all:

root@zynqberry:/usr/bin# uname -a
Linux zynqberry 4.4.0-xilinx #1 SMP PREEMPT Thu Apr 6 13:50:14 CEST 2017 armv7l armv7l armv7l GNU/Linux

Do I miss any config or variable?

jlamperez commented 7 years ago

Hi @imuguruza,

From your cuestion about defconfig and rt-kernel.

I have created a defconfig file in recipes-kernel to enable SMSC LAN95XX for ethernet LAN connection and Edimax EX-7811UTC as access point on linux kernel but not for RT kernel.

I thought that using LINUX_KERNEL_TYPE = "preempt-rt" in linux-xlnx%.bbappend_ would enable to have a rt kernel like it is said in the yocto tutorials but finally I realized like you that always I was getting preempt kernel. It seems that meta-xilinx is not applying the rt patch but I am not sure.

I didn't deepen so much in this issue because I read this thread and you said there were a lot of issues with RT kernel and dongles, so I left it.

Possibly the ideal would be to remove this LINUX_KERNEL_TYPE = "preempt-rt" line from kernel recipe so as not mislead.

imuguruza commented 7 years ago

Ok. I will dig a bit and see I manage to do it.