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