回复: 回复: 回复: [PATCH] bootm: Pass SMP core ID and DTB address for ELF-formatted kernels
牛 志宏
Zone.Niuzh at hotmail.com
Fri Jun 6 09:37:04 CEST 2025
Not exactly. U-Boot provides definitions for OS/image types, and the specification only needs to be followed when the OS type is IH_OS_ELF and the image type is IH_TYPE_KERNEL. If you wish to use the traditional argument passing method, you may opt for IH_TYPE_STANDALONE or other types.
Thank you for the information. I'll implement your suggestions in my codes.
Understood. I'll submit the patch shortly. Thanks.
________________________________
发件人: Tom Rini
已发送: 2025 年 6 月 5 日 星期四 22:47
收件人: 牛 志宏
抄送: Heinrich Schuchardt; Simon Glass; u-boot at lists.denx.de; Leo Yu-Chi Liang; Rick Chen
主题: Re: 回复: 回复: [PATCH] bootm: Pass SMP core ID and DTB address for ELF-formatted kernels
On Thu, Jun 05, 2025 at 08:04:28AM +0000, 牛 志宏 wrote:
> Yes, this is a new OS currently being developed with plans to support Linux compatibility.
> Registers a0 and a1 pass the boot core ID and DTB address respectively, following a de facto standard shared by both the SBI (RISC-V Supervisor Binary Interface) specification and the Linux implementation.
> My rationale is: if U-Boot supports the combination of kernel + ELF loading, why shouldn't we implement this capability as well?
Thanks. I see this is spelled out in
https://www.kernel.org/doc/html/latest/arch/riscv/boot.html as well. Can
you please do a v2 with an expanded commit message and a Link: to that
URL as well so it's clearer that isn't just an ad-hoc decision?
--
Tom
More information about the U-Boot
mailing list