All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Brian Hutchinson" <b.hutchman@gmail.com>
To: "b.hutchman" <b.hutchman@gmail.com>
Cc: Andrey Zhizhikin <andrey.z@gmail.com>,
	peter@berginkonsult.se,  meta-freescale@lists.yoctoproject.org
Subject: Re: [meta-freescale] Want to use linux-fslc 5.10 with Dunfell
Date: Wed, 3 Mar 2021 10:31:23 -0500	[thread overview]
Message-ID: <CAFZh4h9TbVXv0F2EnmWNP-99-2cX3P3wYR7K_pND0ZrKGO5YNg@mail.gmail.com> (raw)
In-Reply-To: <1668A8CAFCF24F79.31223@lists.yoctoproject.org>

[-- Attachment #1: Type: text/plain, Size: 6343 bytes --]

On Tue, Mar 2, 2021 at 6:01 PM Brian Hutchinson via lists.yoctoproject.org
<b.hutchman=gmail.com@lists.yoctoproject.org> wrote:

>
>
> On Tue, Mar 2, 2021 at 2:34 PM Brian Hutchinson via lists.yoctoproject.org
> <b.hutchman=gmail.com@lists.yoctoproject.org> wrote:
>
>>
>> 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
>>
>>
> 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
>
>
Yet another update.  I further modified my  machine .conf to remove .dtb's
and features I didn't need and finally got the board booting 5.10.18!  When
I dd the wic image to sdcard it wouldn't boot so I've got a u-boot issue
somewhere but I wrote previous version of u-boot with dd and was able to
get it to boot.

Thank you all for putting up with me once again and keeping me out of the
weeds.

Now the work begins trying to get some net-next stuff working.

Regards,

Brian

[-- Attachment #2: Type: text/html, Size: 10818 bytes --]

  parent reply	other threads:[~2021-03-03 15:31 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-01 17:06 Want to use linux-fslc 5.10 with Dunfell Brian Hutchinson
2021-03-01 17:17 ` [meta-freescale] " Otavio Salvador
2021-03-01 18:29   ` Brian Hutchinson
2021-03-01 18:30     ` Otavio Salvador
     [not found]       ` <CAFZh4h88ZeCUfAHXjU1tousMQoRrQwcuCH6-qVsnL1nKpKyv0A@mail.gmail.com>
2021-03-01 19:59         ` Brian Hutchinson
2021-03-02  7:45           ` Peter Bergin
2021-03-02 13:28             ` Brian Hutchinson
     [not found]             ` <166889913B7B60E8.18810@lists.yoctoproject.org>
2021-03-02 15:34               ` Brian Hutchinson
2021-03-02 18:23                 ` Andrey Zhizhikin
2021-03-02 19:34                   ` Brian Hutchinson
     [not found]                   ` <16689D843EF7BBD6.17298@lists.yoctoproject.org>
2021-03-02 23:00                     ` Brian Hutchinson
     [not found]                     ` <1668A8CAFCF24F79.31223@lists.yoctoproject.org>
2021-03-03 15:31                       ` Brian Hutchinson [this message]
     [not found]                       ` <1668DEDA4359AC1E.2939@lists.yoctoproject.org>
2021-03-03 15:42                         ` Brian Hutchinson
2021-03-03 16:31                           ` Fabio Estevam
2021-03-03 16:54                             ` Andrey Zhizhikin
2021-03-03 17:01                               ` Fabio Estevam
2021-03-03 19:48                               ` Brian Hutchinson
2021-03-04  9:27                                 ` Andrey Zhizhikin
2021-03-04 14:37                                 ` Brian Hutchinson
2021-03-04 14:41                                   ` Andrey Zhizhikin
2021-03-04 15:32                                     ` Brian Hutchinson
     [not found]                                     ` <16692D851CD111AC.16452@lists.yoctoproject.org>
2021-03-04 18:56                                       ` Brian Hutchinson
2021-03-04 19:23                                         ` Andrey Zhizhikin
2021-03-04 19:56                                           ` Brian Hutchinson
     [not found]                                           ` <16693BE55864B434.22430@lists.yoctoproject.org>
2021-03-04 20:36                                             ` Brian Hutchinson
2021-03-04 20:49                                               ` Andrey Zhizhikin
2021-03-04 21:56                                                 ` Peter Bergin
2021-03-04 22:06                                                   ` Andrey Zhizhikin
2021-03-04 22:06                                                   ` Brian Hutchinson
2021-03-04 10:49                               ` Peter Bergin
2021-03-04 11:09                                 ` Fabio Estevam
2021-03-04 11:19                                   ` Andrey Zhizhikin
2021-03-04 12:56                                     ` Andrey Zhizhikin
2021-03-04 13:41                                       ` Fabio Estevam
2021-03-04 13:52                                         ` Andrey Zhizhikin
2021-03-04 13:56                                           ` Fabio Estevam
2021-03-04 11:11                                 ` Andrey Zhizhikin
2021-03-02  7:53           ` Andrey Zhizhikin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFZh4h9TbVXv0F2EnmWNP-99-2cX3P3wYR7K_pND0ZrKGO5YNg@mail.gmail.com \
    --to=b.hutchman@gmail.com \
    --cc=andrey.z@gmail.com \
    --cc=meta-freescale@lists.yoctoproject.org \
    --cc=peter@berginkonsult.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.