Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building "lf-5.10.y_var04" for DART-6UL fails #18

Closed
davidatrsp opened this issue Jan 6, 2023 · 3 comments
Closed

Building "lf-5.10.y_var04" for DART-6UL fails #18

davidatrsp opened this issue Jan 6, 2023 · 3 comments

Comments

@davidatrsp
Copy link

davidatrsp commented Jan 6, 2023

Hej
Building the "lf-5.10.y_var04" branch at current head (32517d8) for the DART-6UL SOM fails for two reasons. The "lf-5.10.y_var04" branch is the suggested version for DART-6UL by the wiki (https://variwiki.com/index.php?title=Yocto_Build_Linux&release=mx6ul-yocto-hardknott-5.10.72_2.2.1-v1.0).
Looks like both of the reason were present and solved on branch "5.4-2.1.x-imx_var01".
Note: using custom gcc 11.x toolchain and custom defconfig derived from the provided "imx_v7_var_defconfig".

Reasons for failure:

Applying these 3 commits enables the build to finish and yields a bootable kernel.

@varigigi
Copy link

varigigi commented Jan 8, 2023

Hi @davidatrsp,
I've repeated the steps in the wiki, but using the official imx_v7_var_defconfig I'm not able to reproduce the failure you described.
Is a custom defconfig mandatory required ?
Thanks
Best Regards

@davidatrsp
Copy link
Author

davidatrsp commented Jan 9, 2023

Hej @varigigi
Did the same with our custom toolchain and I can confirm that "imx_v7_var_defconfig" builds fine. So did some further digging.

  • irq-imx-irqsteer
    This issue is triggered by explicitly disabling "SUSPEND" in our custom defconfig. This is a requirement, thus patching looks to be the only solution.

  • busfreq-imx
    This issue triggered by enabling only "SOC_IMX6UL" in our custom defconfig. The "imx_v7_var_defconfig" also enables "SOC_IMX6SX" that compiles both "ddr3_freq_imx6sx" and "lpddr2_freq_imx6sx" thus solving the issue.
    Enabling "SOC_IMX6SX" in out defconfig is a possible solution but it sets extra symbols and those need a review. Since the patches are one-liners, patching looks simpler than enabling "SOC_IMX6SX".

@varigigi
Copy link

Hi @davidatrsp,
being the problem not reproducible with the official BSP, for the time being I'm closing this issue.
If you need further assistance, please open a dedicated ticket using your account in Variscite Customer Portal.
Thanks
Best Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants