-
Notifications
You must be signed in to change notification settings - Fork 1
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
Properly/consistently document the use/need of mcore_clk bootenv/clk-imx8m{m,n,p}.mcore_booted Kernel commandline flag. #122
Comments
One very useful point would be to highlight that the equivalent of running the "run prepare_mcore" is to set |
Some more tests imply that the flag is only needed if the M core was started in uboot (so the running firmware survives the boot to Linux). It is not needed for loading firmware through remoteproc. Concluding, I would argue that the |
setenv mcore_clk clk-imx8m{m,n,p}.mcore_booted
which is handed over to Kernel command line.
Actually I had a different experience on the phyBOARD Pollux when working on my thesis. Because I didn't wanted to make that every boot I ran Maybe the kernel flags name is misleading and does not inform the kernel about a booted mcore, furthermore it I think that could be the first step to understand what this flag is actually doing |
You are right, on imx8mp I had the same experience. But I am unsure if this is intended or another bug. In principle, the flag is just an info for the kernel not to touch the M-Core clocks (again, and not a real "preparation" of the core for whatever). |
BUT: it sets it just once and not persistently (so for loading M-core firmware from Linux that must be set always?) and, at least from my quick trail (hello_world only), not setting it when having the M core already started in u-boot does not let the M core crash (that was my initial guess: that it is relevant for preventing a crash when proceeding with the boot).
The EVK configs in uboot-imx have this command, yet the AN5317 says at the note in 9.1.1: "By default, NXP Linux BSP keeps the root clock enabled for the M core when it is started from U-Boot". Additionally, it does not highlight the need of this parameter in 9.1.1.3 "Booting firmware early using U-Boot...".
Originally posted by @s-hemer in #102 (comment)
The text was updated successfully, but these errors were encountered: