Re: Linux v5.10 for i.MX8 development
Andrey Zhizhikin
Hello Tim,
On Tue, Sep 21, 2021 at 7:11 PM Tim Harvey <tharvey@...> wrote: It depends on the definition of "decency". :) Actually, I was referring to 5.14.y kernel, and at least from what I know USB support is present, although I did not test the performance of it. Of course, there are few pieces that are missing in upstream kernel, which are present in the vendor one, but there are different opinion on the topic of "Vendor vs Vanilla" kernel, some tend to favor one for the other. My take on this is: if the functionality I need is present in upstream - I tend to use it, otherwise I take a vendor kernel (but would look for an option to have at least latest LTS patchset applied on it). This is strictly IMHO, and might not reflect the opinion of the others. :) Correct, linux-fslc recipe on [master] branch does provide linux-5.14.y now with handful of patches on top. I'm not aware of those missing pieces you referred here, but your input here is pretty valuable! If you have any other constraints you're aware of - please share it here, or in the layer on GitHub. This was always a mystery to me as well... I guess I would need toCould you explain the difference between NXP's 'lf-' and 'imx-' make a disclaimer here: I'm neither employed nor affiliated with NXP, so I cannot answer this. :) If there is a person from NXP on this list, then perhaps he/she can comment on this point.
-- Cheers, Andrey.
|
|
Re: Linux v5.10 for i.MX8 development
Tim Harvey
On Tue, Sep 21, 2021 at 1:36 AM Andrey Zhizhikin <andrey.z@...> wrote:
Andrey, By decent support for i.MX8M derivatives you mean no USB, no PCI, no DSI, no MIPI right? :) I haven't looked at the yocto kernel recipes but I spend a lot of time with the mainline kernel that I'm sure they are based on. While most of the power-domain stuff landed in 5.13 we are still waiting for blk-ctl which is needed to finish out the power-domain and reset control for all of those blocks unfortunately. Could you explain the difference between NXP's 'lf-' and 'imx-' branches? I can never understand their branch naming scheme nor their commit log prefix scheme. Best regards, Tim If no, then can I use "imx_v8_defconfig" from linux-imx repo to build kernel using linux-fslc repo?You can use the `defconfig` file, which is present in the layer to
|
|
Re: Issues on github.com/Freescale projects
Daiane Angolini
An update on this project.
From my perspective, all issues are closed now (~20). I let a few open (although they were created a long time ago) because I don't have the complete background to decide a better way to deal with them. We have 12 open issue: 3 from Freescale/meta-freescale 9 from Freescale/gstreamer-imx I understand that dv1 (Carlos) has been doing an outstanding and amazing job with Freescale/gstreamer-imx. I hope I could better help him on answering the issues because almost all issues still open are questions. I'm going to focus (from now on) to review if a current issue can be closed yet or not. I'm still learning the new GitHub tools on how to better handle the issues, so I'm also going to read some docs to find how to automate things in the future. Thanks, Daiane
|
|
Re: Linux v5.10 for i.MX8 development
Ankur Tyagi
Hello Andrey,
Hello Ankur,I was referring to COMPATIBLE_MACHINE in linux-fslc-lts_5.10.bb recipe. It doesn't have mx8 in it (sorry above link is broken) Can you specify which derivative you're talking about?We are using i.MX8 Dual core A35 Thank you for sharing this insight, this is helpfulIs there any plan for that merge? If yes, any timeline by which it will happen?I've looked into updating NXP branch [lf-5.10.y], and it is not Are there any specific configuration options you need fromI haven't done any comparison yet between imx_v8_defconfig from 5.4-2.3.x-imx branch and mainline defconfig but now I will do that since I know which defconfig is to be used :) We don't need GPU/VPU so will try your suggestion to use linux-fslc kerneli.MX8 is supported in linux-imx_5.10.bb recipe https://github.com/Freescale/meta-freescale/blob/325ad529187fb1309b0a889c5196c8df039aeea9/recipes-ke... which is using kernel from branch "lf-5.10.y" provided by linux-imx repo but this repo is NXP internal and doesn't get updated with stable Linux kernel. It is providing v5.10.35 (https://source.codeaurora.org/external/imx/linux-imx/log/?h=lf-5.10.y)Correct, but as I've already pointed out - the merge of stable updates and defconfig from linux-fslc-lts/armv8a and see how it goes. Once again, thanks for your response and suggestions. Regards Ankur ________________________________ This email is confidential and may contain information subject to legal privilege. If you are not the intended recipient please advise us of our error by return e-mail then delete this email and any attached files. You may not copy, disclose or use the contents in any way. The views expressed in this email may not be those of Gallagher Group Ltd or subsidiary companies thereof. ________________________________
|
|
Re: Linux v5.10 for i.MX8 development
Andrey Zhizhikin
Hello Ankur,
On Mon, Sep 20, 2021 at 11:30 PM Ankur Tyagi <ankur.tyagi@...> wrote: When you say that i.MX8 is not supported - to which SoC you're referring to? Mainline kernel on the [master] branch of this layer does provide a descent support for all i.MX8M derivatives, but I'm not entirely sure of the state for i.MX8 family SoC support since I do not have that HW. Can you specify which derivative you're talking about? Is there any plan for that merge? If yes, any timeline by which it will happen?I've looked into updating NXP branch [lf-5.10.y], and it is not trivial... I'm now short on time to have a full swing of merging the latest stable update on top of it, but probably would get to this eventually. If there are any volunteers here that are willing to undertake this task - this would be really appreciated. If no, then can I use "imx_v8_defconfig" from linux-imx repo to build kernel using linux-fslc repo?You can use the `defconfig` file, which is present in the layer to build [linux-fslc] for i.MX8 machine. It resides in recipes-kernel/linux/linux-fslc/armv8a/defconfig and is synchronized with stable kernel release 5.14. If you however opt-in for [linux-fslc-lts] kernel package, then the kernel config file would be taken from recipes-kernel/linux/linux-fslc-lts/armv8a/defconfig, which is also synchronized with 5.10 from stable. Are there any specific configuration options you need from imx_v8_defconfig, which should be present in the defconfig for mainline recipes? i.MX8 is supported in linux-imx_5.10.bb recipe https://github.com/Freescale/meta-freescale/blob/325ad529187fb1309b0a889c5196c8df039aeea9/recipes-ke... which is using kernel from branch "lf-5.10.y" provided by linux-imx repo but this repo is NXP internal and doesn't get updated with stable Linux kernel. It is providing v5.10.35 (https://source.codeaurora.org/external/imx/linux-imx/log/?h=lf-5.10.y)Correct, but as I've already pointed out - the merge of stable updates to this kernel base is not trivial... :/ As one of the things to try out: you can switch the BSP flavor to use "mainline" instead of "nxp", which would take all upstream components instead of those provided by NXP. Be aware, that if you rely on any functionality which is present in NXP BSP only (e.g. GPU/VPU) - this would be unavailable in Mainline BSP.
-- Regards, Andrey.
|
|
Linux v5.10 for i.MX8 development
Ankur Tyagi
Hi, Now we are planning to upgrade to Linux v5.10 and here I have few questions:
Will appreciate any guidance around appropriate repo for v5.10 development for i.MX8 thanks Ankur
|
|
Adding out-of-tree kernel modules & drivers
noel.neu@...
Hi, I have followed the yocto provided 'hello-mod' recipe as an example for out-of-tree kernel modules, but unfortunately this doesn't work for my application since it requires some in-tree header files that cannot be found when the recipe is built. Equally, if I patch the defconfig file to include some config with a made-up false name, it doesn't show that there was an error with this module.
So my questions would be: - if that's now possible, how can I make bitbake show error when compiling the files using the patched method? Any guidance is highly appreciated !
|
|
Re: About linux-qoriq in meta-freescale
leimaohui
Hi, Luo
toggle quoted messageShow quoted text
Thank you for your reply, I'll try this linux-qoriq. Best regards Lei
-----Original Message-----
|
|
Re: About linux-qoriq in meta-freescale
Zhenhua Luo
Hi Lei,
toggle quoted messageShow quoted text
LSDK 21.08 components will be available in Yocto 3.3 by this month, currently you can get the kernel 5.10 recipes from https://source.codeaurora.org/external/qoriq/qoriq-components/meta-qoriq/tree/recipes-kernel/linux?h=hardknott. Best Regards, Zhenhua
-----Original Message-----
|
|
About linux-qoriq in meta-freescale
leimaohui
Hi, all
Version of kernel in lsdk 2108 has been upgraded to 5.10. I want to know if there is any plan to upgrade linux-qoriq in meta-freescale. It has been 5.4 for a long time. Best regards Lei
|
|
how to compile kernel module with SDK
#compilation
hkkim@...
hi i am not good at English i have a problem with compiling a kernel module a board is imx6sx evk and kernel is 5.10.35 , yocto is hardknott ( is right ? i installed with this command : repo init -u https://source.codeaurora.org/external/imx/imx-manifest i make SDK form core-image-full_cmdline image and installed and compiled kernel and modules ( in kernel directroy) ,a test program without problems but when i compile a module which is not in kernel directory no module.ko file made the module source is fine ( i copy a source into kernel/driver and make modules ,,it works fine) and i compiled previous yocto SDK with success any tips and ideas will be appreciated . thank in advance
imx6ull@imx6ull-VirtualBox:/media/sf_shared/example/gpio-irq/dev$ and my makefile obj-m := of-test.o KDIR := /home/imx6ull/work/Kernel/git.5.10.35 default:
|
|
Re: Issues on github.com/Freescale projects
Daiane Angolini
On Sun, Aug 15, 2021 at 12:34 PM Daiane Angolini
<daiane.angolini@...> wrote: I am finally reviewing 2020 (latest updated) issues. My plan is to close as much as possible, and to clean what is still an issue and what was already solved by the normal development. It is unfortunate that we don't actually had/have time to reply to all of them, but I got the impression that a lot was replied at time, and only a few issues were sitting there waiting for the future to happen. Anyway, my point is to decrease the open issue list, so we can try to better focus. If anyone has a better idea on how to deal with it, please let me know. BR, Daiane I'm going to close some of them, and try to assign them when I think
|
|
Re: RPmsg in pico-imx7d using mainline linux (5.6.xx) and Yocto dunfell
Fabio Estevam
Hi Neuber,
I think you forgot to hit reply-all. On Mon, Aug 16, 2021 at 10:55 AM Neuber Sousa <neuberfran@...> wrote: The mailbox driver is at drivers/mailbox/imx-mailbox.c in mainline. Sure, feel free to use it. It is just that you will not get any support from the community using this version. Personally, I haven't used the remoteproc driver in mainline, so I can't help you.
|
|
Re: Issues on github.com/Freescale projects
Cengiz Can <cengizc@...>
On Mon, Aug 16, 2021 at 4:56 PM Daiane Angolini
<daiane.angolini@...> wrote: Mine is @cengizIO ^_^
|
|
Re: Issues on github.com/Freescale projects
Daiane Angolini
On Sun, Aug 15, 2021 at 5:24 PM Cengiz Can <cengizc@...> wrote:
That is great! Thanks a lot, Cengiz Can! Currently the project with most old open issues is gstreamer-imx. I found out that there are a lot of solved but not closed issues. However, if I find anything I let you know!!! What is your github user? I'm @angolini ! Best regards, Daiane Thank you!
|
|
Re: #meta-freescale Broken linux-fslc/5.4-2.3.x-imx repo on hardknott branch
#meta-freescale
Piotr
pon., 16 sie 2021 o 14:44 Andrey Zhizhikin <andrey.z@...> napisał(a): The order of MAC address fetch is described in [1], with the note Thanks for pointing it out. I will check it for sure. Piotr Piwko http://www.embedded-engineering.pl/
|
|
Re: #meta-freescale Broken linux-fslc/5.4-2.3.x-imx repo on hardknott branch
#meta-freescale
Andrey Zhizhikin
Hello Piotr,
On Mon, Aug 16, 2021 at 2:09 PM Piotr Piwko <piotr.piwko@...> wrote: That is the trick: [dunfell] uses 5.4-2.1.x-imx branch, where the proper check for the return of of_get_mac_address() is not implemented. [hardknott] uses 5.4-2.3.x-imx branch, which contains 845620ec5d3b to address it. Perhaps, this is the root cause of the behavior you're experiencing now when you switched branches. The order of MAC address fetch is described in [1], with the noteThe commit in question is coming from NXP directly and is not present regarding the U-Boot not setting "mac-address" bindings. I believe it is worth checking to make sure the MAC is set to valid one and not "All-zero".
Link: [1]: https://github.com/torvalds/linux/blob/7c60610d476766e128cc4284bb6349732cbd6606/drivers/of/of_net.c#L115 -- Regards, Andrey.
|
|
Re: RPmsg in pico-imx7d using mainline linux (5.6.xx) and Yocto dunfell
Fabio Estevam
Hi Neuber,
On Sun, Aug 15, 2021 at 10:50 PM Neuber Sousa <neuberfran@...> wrote: 5.6 is an unsupported kernel version. It is not a good idea to develop using such an unsupported kernel version. Please see the supported ones at https://www.kernel.org/ Using libgpiod I want to press a controlled button on a7 and flash an LED (which is waiting for this command) on m4These drivers only exist on the NXP vendor kernel. Mainline uses drivers/remoteproc/imx_rproc.c instead.
|
|
Re: #meta-freescale Broken linux-fslc/5.4-2.3.x-imx repo on hardknott branch
#meta-freescale
Piotr
pon., 16 sie 2021 o 13:39 Andrey Zhizhikin <andrey.z@...> napisał(a): Are you sure that the failed boot behavior is indeed caused by Yes I'm sure. I have tested it several times and with this commit reverted, the board boots successfully exactly the same as it was in the previous versions (i.e dunfell). The commit in question is coming from NXP directly and is not present Yes, it seems that is the correct way for error handling, but I'm not sure if it shall stop the boot in case of failure. Do you have a valid MAC address set in either DTB or nvmem? I'm not sure about that. However, in the previous version it was exactly the same. Piotr Piwko http://www.embedded-engineering.pl/
|
|
Re: #meta-freescale Broken linux-fslc/5.4-2.3.x-imx repo on hardknott branch
#meta-freescale
Andrey Zhizhikin
Hello Piotr,
On Tue, Aug 10, 2021 at 3:13 PM Piotr <piotr.piwko@...> wrote: From what I see, the d01f449c008a ("of_net: add NVMEM support to of_get_mac_address") is indeed present on all NXP branches in the repository: $ git branch -r --contains d01f449c008a upstream/5.10.x+fslc upstream/5.12.x+fslc upstream/5.13.x+fslc upstream/5.2.x+fslc upstream/5.3.x+fslc upstream/5.4-1.0.0-imx upstream/5.4-2.0.x-imx upstream/5.4-2.1.x-imx upstream/5.4-2.2.x-imx upstream/5.4-2.3.x-imx upstream/5.4.x+fslc upstream/5.4.y+qoriq upstream/5.4.y+qoriq+fslc upstream/5.9.x+fslc Are you sure that the failed boot behavior is indeed caused by 845620ec5d3b ("MLK-24940 arm: imx: correctly check the return value of "of_get_mac_address"")? If you revert it locally - does your board boots OK? The commit in question is coming from NXP directly and is not present in the mainline kernel tree, but from what I can tell - it brings the correct error handling for the updated of_get_mac_address() call, so as other HW does. Do you have a valid MAC address set in either DTB or nvmem?
-- Regards, Andrey.
|
|