<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Apr 13, 2019, 1:49 PM Alistair Francis <<a href="mailto:alistair23@gmail.com">alistair23@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Fri, Apr 12, 2019 at 9:56 PM Michael Scott <<a href="mailto:mike@foundries.io" target="_blank" rel="noreferrer">mike@foundries.io</a>> wrote:<br>
><br>
><br>
> On 4/12/19 10:17 AM, Alistair Francis wrote:<br>
> > On Thu, Apr 11, 2019 at 10:46 PM Michael Scott <<a href="mailto:mike@foundries.io" target="_blank" rel="noreferrer">mike@foundries.io</a>> wrote:<br>
> >> Support RISC-V kernel image, using the "Image" target.<br>
> >><br>
> >> This change allows RISC-V support for fitImage via the following<br>
> >> flow: OpenSBI -> u-boot (as payload) -> Linux kernel (as fitImage<br>
> >> with ramdisk and dtb).<br>
> >><br>
> >> This was tested using QEMU RISC-V 64-bit.<br>
> > Do you mind sharing how you tested this? I would be interested in<br>
> > trying this as well.<br>
> The current OE-based manifest for the Foundries.io Linux microPlatform<br>
> is found here (v42):<br>
> <a href="https://github.com/foundriesio/lmp-manifest" rel="noreferrer noreferrer" target="_blank">https://github.com/foundriesio/lmp-manifest</a><br>
><br>
> However, I think you're interested in seeing the<br>
> opensbi/u-boot/fit-image work for qemuriscv64, and that won't land until<br>
> v43 (along with kernel 5.0.6 update).<br>
><br>
> It should be ready in a few days. I can send you a private ping then,<br>
> if you'd like.<br>
<br>
If you wouldn't mind that would be great! I'm interested in adding FIT<br>
image OpenSBI -> u-boot -> Linux boot support to meta-riscv.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Ah, in that case it's fairly easy. We're using master branch meta-riscv with this PR: <a href="https://github.com/foundriesio/meta-lmp/pull/27">https://github.com/foundriesio/meta-lmp/pull/27</a></div><div dir="auto"><br></div><div dir="auto">- Mike</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Alistair<br>
<br>
><br>
> The documentation is here:<br>
> <a href="https://docs.foundries.io/latest/reference/linux-building.html" rel="noreferrer noreferrer" target="_blank">https://docs.foundries.io/latest/reference/linux-building.html</a><br>
><br>
> - Mike<br>
><br>
> ><br>
> > Alistair<br>
> ><br>
> >> Signed-off-by: Michael Scott <<a href="mailto:mike@foundries.io" target="_blank" rel="noreferrer">mike@foundries.io</a>><br>
> >> ---<br>
> >> meta/classes/kernel-fitimage.bbclass | 2 ++<br>
> >> 1 file changed, 2 insertions(+)<br>
> >><br>
> >> diff --git a/meta/classes/kernel-fitimage.bbclass b/meta/classes/kernel-fitimage.bbclass<br>
> >> index 2517d75746..2820ff9689 100644<br>
> >> --- a/meta/classes/kernel-fitimage.bbclass<br>
> >> +++ b/meta/classes/kernel-fitimage.bbclass<br>
> >> @@ -10,6 +10,8 @@ python __anonymous () {<br>
> >> uarch = d.getVar("UBOOT_ARCH")<br>
> >> if uarch == "arm64":<br>
> >> replacementtype = "Image"<br>
> >> + elif uarch == "riscv":<br>
> >> + replacementtype = "Image"<br>
> >> elif uarch == "mips":<br>
> >> replacementtype = "vmlinuz.bin"<br>
> >> elif uarch == "x86":<br>
> >> --<br>
> >> 2.21.0<br>
> >><br>
> >> --<br>
> >> _______________________________________________<br>
> >> Openembedded-core mailing list<br>
> >> <a href="mailto:Openembedded-core@lists.openembedded.org" target="_blank" rel="noreferrer">Openembedded-core@lists.openembedded.org</a><br>
> >> <a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer noreferrer" target="_blank">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>
><br>
> --<br>
> Michael Scott<br>
> Embedded Software Engineer at Foundries.io<br>
> "microPlatforms™ for Connected Products"<br>
> E: <a href="mailto:mike@foundries.io" target="_blank" rel="noreferrer">mike@foundries.io</a><br>
> W: <a href="https://www.foundries.io" rel="noreferrer noreferrer" target="_blank">https://www.foundries.io</a><br>
><br>
</blockquote></div></div></div>