On Tue, Mar 2, 2021 at 1:23 PM Andrey Zhizhikin <andrey.z@gmail.com> wrote:
Hello Brian,

On Tue, Mar 2, 2021 at 4:34 PM Brian Hutchinson <b.hutchman@gmail.com> wrote:
>
> On Tue, Mar 2, 2021 at 8:28 AM Brian Hutchinson via lists.yoctoproject.org <b.hutchman=gmail.com@lists.yoctoproject.org> wrote:
>>
>>
>> On Tue, Mar 2, 2021 at 2:45 AM Peter Bergin <peter@berginkonsult.se> wrote:
>>>
>>> Hi Brian,
>>>
>>> On 2021-03-01 20:59, Brian Hutchinson wrote:
>>> > Can someone school me on how this works?  I guess I don't know or
>>> > understand the relationship between linux-fslc and linux-fslc-imx
>>> > recipies in meta-freescale/recipies-kernel/linux
>>>
>>> you have a bit more info in this thread
>>> https://lists.yoctoproject.org/g/meta-freescale/topic/80897983.
>>>
>>> And you can also read the information in the recipes about different
>>> kernels their sources and how they are composed.
>>>
>>> linux-fslc-imx:
>>> https://github.com/Freescale/meta-freescale/blob/9de81869018e78b8b861513735b85c2dbc33ca0b/recipes-kernel/linux/linux-fslc-imx_5.4.bb#L12
>>>
>>> linux-fslc:
>>> https://github.com/Freescale/meta-freescale/blob/9de81869018e78b8b861513735b85c2dbc33ca0b/recipes-kernel/linux/linux-fslc_5.10.bb#L7
>>>
>>> My view on this is that linux-fslc is mainline based and linux-fslc-imx
>>> is NXP based.
>>>
>>> Best regards,
>>> /Peter
>>>
>>
>> Thanks Peter,
>>
>> That helps a lot.  It was my intent to be using FSL kernel and turns out I've been using linux-fslc-imx thus far.  When I first started working on NXP SoC (switched from TI about a year ago) I was using NXP releases and discovered the hard way their new releases were mainly geared at new boards so that's when I switched to fslc.
>>
>> Regards,
>>
>> Brian
>>
>
> Ok, forgive me but I'm obviously still in the weeds.  Still trying to pull in linux 5.10 from master.  If linux-fslc is basically community kernel with NXP fixes and patches mainlined ... why is there no COMPATIBLE_MACHINE for imx8mmevk?

I've tried to touch this part in
https://lists.yoctoproject.org/g/meta-freescale/message/24551

Bottom line is: to use linux-fslc as a provider for virtual/kernel -
you need to change IMX_DEFAULT_BSP from "nxp" to "mainline" in the
conf/machine/imx8mmevk.conf, effectively changing from NXP BSP to
Community one.

This would have a lot of consequences though, as the support of mx8m
machines is not quite there yet.

--
Regards,
Andrey.

Thanks Andrey,

"Consequences" is an understatement.  My heart sank as I started digging into this and saw things like:

# Handle default kernel
IMX_DEFAULT_KERNEL = "linux-fslc-imx"
IMX_DEFAULT_KERNEL_mxs = "linux-fslc"
IMX_DEFAULT_KERNEL_mx5 = "linux-fslc"
IMX_DEFAULT_KERNEL_mx6 = "linux-fslc-imx"
IMX_DEFAULT_KERNEL_mx7 = "linux-fslc-imx"
IMX_DEFAULT_KERNEL_mx8 = "linux-fslc-imx"
IMX_DEFAULT_KERNEL_mx7ulp = "linux-fslc-imx"
IMX_DEFAULT_KERNEL_mx6sll = "linux-fslc-imx"
IMX_DEFAULT_KERNEL_mx6ul = "linux-fslc-imx"
IMX_DEFAULT_KERNEL_mx6ull = "linux-fslc-imx"
IMX_DEFAULT_KERNEL_use-mainline-bsp = "linux-fslc"

... in sources/meta-freescale/conf/machine/include/imx-base.inc

I really need at least Linux 5.10 for imx8 for some net-next features I need.  I was hopeful when I was poking around and saw a 5.10 recipe but now my hopes are dashed! :(

Regards,

Brian