zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.86k stars 6.62k forks source link

i.MX8MP-EVK SMP boot documentation not accurate #78939

Closed deribaucourt closed 1 month ago

deribaucourt commented 1 month ago

Describe the bug

The documentation for imx8mp_evk suggests to start zephyr on the A53 with SMP by running the u-boot command:

cpu 2 release 0xc0000000

This command is not available for this target. I also checked the u-boot-imx vendor forks, u-boot-imx & u-boot-fslc. This command requires an mp.c file to be defined. It is only available on layerscape armv8 processors.

It looks like the original author @JiafeiPan did run Zephyr with SMP on the A53, but in all my attempts, Zephyr with SMP could not boot or produce any output. Maybe they could explain which u-boot version they were using at the time?

To Reproduce

Expected behavior

Impact

Logs and console output

Environment (please complete the following information):

Additional context

github-actions[bot] commented 1 month ago

Hi @deribaucourt! We appreciate you submitting your first issue for our open-source project. 🌟

Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙

mmahadevan108 commented 1 month ago

cc @JiafeiPan, can you take a look at the documentation for i.MX8MP-EVK

JiafeiPan commented 1 month ago

Hi, @deribaucourt, thanks for reporting this issue. Acutrallly cpu command for mp.c supports in Real-time Edge uboot, you could use: https://github.com/nxp-real-time-edge-sw/real-time-edge-uboot/commits/uboot_v2023.04-2.9.0, branch: uboot_v2023.04-2.9.0. And you could refer to Real-Time Edge Software at: https://www.nxp.com/rtedge, such as download pre-build images for v2.9 release on imx8mp: https://www.nxp.com/webapp/Download?colCode=REAL-TIME_EDGE_V2.9_IMX8MP-LPDDR4-EVK&appType=license, or download detailed document for how to run Zephyr and other multicore applications at user guide: https://www.nxp.com/docs/en/user-guide/REALTIMEEDGEUG.pdf

I will update Zephyr board document to provide more information about which u-boot could be used, any more questions feel free to let me know.

deribaucourt commented 1 month ago

That's precisely what I needed to know.

Thanks a lot @JiafeiPan !