On Tue, Mar 2, 2021 at 2:34 PM Brian Hutchinson via lists.yoctoproject.org wrote: > > On Tue, Mar 2, 2021 at 1:23 PM Andrey Zhizhikin > wrote: > >> Hello Brian, >> >> On Tue, Mar 2, 2021 at 4:34 PM Brian Hutchinson >> wrote: >> > >> > On Tue, Mar 2, 2021 at 8:28 AM Brian Hutchinson via >> lists.yoctoproject.org >> wrote: >> >> >> >> >> >> On Tue, Mar 2, 2021 at 2:45 AM Peter Bergin >> 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 > > Update. So I messed around and changed the things Andrey mentioned and tried another build just for kicks. If completed with only one kernel error: | OBJCOPY arch/arm64/boot/Image | DTC arch/arm64/boot/dts/freescale/imx8mm-ddr4-evk.dtb | make[2]: *** No rule to make target 'arch/arm64/boot/dts/freescale/imx8mm-ddr4-evk-revb.dtb'. Stop. | make[1]: *** [/home/hutch/yocto/imx8/fsl-community-bsp_gatesgarth/build/tmp/work-shared/imx8mmevk/kernel-source/Makefile:1334: freescale/imx8mm-ddr4-evk-revb.dtb] Error 2 | make: *** [/home/hutch/yocto/imx8/fsl-community-bsp_gatesgarth/build/tmp/work-shared/imx8mmevk/kernel-source/Makefile:185: __sub-make] Error 2 | WARNING: exit code 1 from a shell command. | ERROR: Task (/home/hutch/yocto/imx8/fsl-community-bsp_gatesgarth/sources/meta-freescale/recipes-kernel/linux/linux-fslc_5.10.bb:do_compile) failed with exit code '1' NOTE: Tasks Summary: Attempted 4575 tasks of which 1 didn't need to be rerun and 1 failed. Summary: 1 task failed: /home/hutch/yocto/imx8/fsl-community-bsp_gatesgarth/sources/meta-freescale/recipes-kernel/linux/linux-fslc_5.10.bb:do_compile Summary: There were 3 WARNING messages shown. Summary: There were 2 ERROR messages shown, returning a non-zero exit code. ... which is legit as it looks like the freescale .dts files of 5.10 are different than before (no surprise) so I'll try to get past this and see what happens. I don't need all the NXP EVK stuff (video, touch screen, wifi, bluetooth etc.) which is why I picked Yocto for distro to make a smaller image than all those wayland options ... so just maybe it might work??? Will report back soon ... Regards, Brian