[OE-core] [PATCH] kernel-fitimage: support RISC-V

Michael Scott mike at foundries.io
Sat Apr 13 22:22:12 UTC 2019


On Sat, Apr 13, 2019, 1:49 PM Alistair Francis <alistair23 at gmail.com> wrote:

> On Fri, Apr 12, 2019 at 9:56 PM Michael Scott <mike at foundries.io> wrote:
> >
> >
> > On 4/12/19 10:17 AM, Alistair Francis wrote:
> > > On Thu, Apr 11, 2019 at 10:46 PM Michael Scott <mike at foundries.io>
> wrote:
> > >> Support RISC-V kernel image, using the "Image" target.
> > >>
> > >> This change allows RISC-V support for fitImage via the following
> > >> flow: OpenSBI -> u-boot (as payload) -> Linux kernel (as fitImage
> > >> with ramdisk and dtb).
> > >>
> > >> This was tested using QEMU RISC-V 64-bit.
> > > Do you mind sharing how you tested this? I would be interested in
> > > trying this as well.
> > The current OE-based manifest for the Foundries.io Linux microPlatform
> > is found here (v42):
> > https://github.com/foundriesio/lmp-manifest
> >
> > However, I think you're interested in seeing the
> > opensbi/u-boot/fit-image work for qemuriscv64, and that won't land until
> > v43 (along with kernel 5.0.6 update).
> >
> > It should be ready in a few days.  I can send you a private ping then,
> > if you'd like.
>
> If you wouldn't mind that would be great! I'm interested in adding FIT
> image OpenSBI -> u-boot -> Linux boot support to meta-riscv.
>

Ah, in that case it's fairly easy.  We're using master branch meta-riscv
with this PR: https://github.com/foundriesio/meta-lmp/pull/27

- Mike


> Alistair
>
> >
> > The documentation is here:
> > https://docs.foundries.io/latest/reference/linux-building.html
> >
> > - Mike
> >
> > >
> > > Alistair
> > >
> > >> Signed-off-by: Michael Scott <mike at foundries.io>
> > >> ---
> > >>   meta/classes/kernel-fitimage.bbclass | 2 ++
> > >>   1 file changed, 2 insertions(+)
> > >>
> > >> diff --git a/meta/classes/kernel-fitimage.bbclass
> b/meta/classes/kernel-fitimage.bbclass
> > >> index 2517d75746..2820ff9689 100644
> > >> --- a/meta/classes/kernel-fitimage.bbclass
> > >> +++ b/meta/classes/kernel-fitimage.bbclass
> > >> @@ -10,6 +10,8 @@ python __anonymous () {
> > >>           uarch = d.getVar("UBOOT_ARCH")
> > >>           if uarch == "arm64":
> > >>               replacementtype = "Image"
> > >> +        elif uarch == "riscv":
> > >> +            replacementtype = "Image"
> > >>           elif uarch == "mips":
> > >>               replacementtype = "vmlinuz.bin"
> > >>           elif uarch == "x86":
> > >> --
> > >> 2.21.0
> > >>
> > >> --
> > >> _______________________________________________
> > >> Openembedded-core mailing list
> > >> Openembedded-core at lists.openembedded.org
> > >> http://lists.openembedded.org/mailman/listinfo/openembedded-core
> >
> > --
> > Michael Scott
> > Embedded Software Engineer at Foundries.io
> > "microPlatforms™ for Connected Products"
> > E: mike at foundries.io
> > W: https://www.foundries.io
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20190413/8ddd88e2/attachment.html>


More information about the Openembedded-core mailing list