[coreboot] Loading Linux payloads on RISC-V

Jonathan Neuschäfer j.neuschaefer at gmx.net
Tue Sep 25 13:50:02 CEST 2018

On Sun, Sep 23, 2018 at 06:42:14PM +0200, Patrick Rudolph wrote:
> Can you make use of the uImage/FIT [1] mechanism coreboot supports ?
> It just needs some architecture specific code.

Good idea. I've seen the FIT support patches and I think FIT looks
reasonable, at least for loading Linux.

Would FIT support require discussion/cooperation with other projects
like Linux or u-boot?

> Can you provide a ling to the Linux calling conventions for riscv ?

I think a document like https://www.kernel.org/doc/Documentation/arm/Booting
hasn't been written yet for RISC-V. It's something like this:

- Linux starts in Supervisor Mode, but in physical address space, and
  expects a working Supervisor Binary Interface[0]
- register a0: hart ID
- register a1: pointer to FDT


[0]: https://github.com/riscv/riscv-sbi-doc/blob/master/riscv-sbi.md
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://mail.coreboot.org/pipermail/coreboot/attachments/20180925/f56a8003/attachment.asc>

More information about the coreboot mailing list