Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Jan 2025 18:27:45 +0100
From:      Robert Clausecker <fuz@fuz.su>
To:        Mitchell Horne <mhorne@freebsd.org>
Cc:        Robert Clausecker <fuz@freebsd.org>, ports-committers@freebsd.org, dev-commits-ports-all@freebsd.org, dev-commits-ports-main@freebsd.org, uboot@freebsd.org
Subject:   Re: git: 5912458941af - main - emulators/rvvm: RISC-V Virtual Machine
Message-ID:  <Z50IEYwxNpQjCgcj@fuz.su>
In-Reply-To: <d4c306ed-c716-4efa-a01c-e897040914e8@freebsd.org>
References:  <202501230107.50N17LLp083244@gitrepo.freebsd.org> <Z5Gd0GrzIShXwprF@fuz.su> <d4c306ed-c716-4efa-a01c-e897040914e8@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Mitch,

Thank you for looking into this.

Am Fri, Jan 31, 2025 at 01:15:08PM -0400 schrieb Mitchell Horne:
> > >      emulators/rvvm: RISC-V Virtual Machine
> > >      RVVM is a virtual machine / emulator for RISC-V guests, which emphasizes
> > >      on performance, security, lean code and portability. It already runs a
> > >      lot of guest operating systems, including Linux, Haiku, FreeBSD,
> > >      OpenBSD, etc. It also aims to run RISC-V applications on a foreign-arch
> > >      host without full OS guest & isolation (Userland emulation).
> > >      WWW: https://github.com/LekKit/RVVM
> 
> Cool, thanks for creating the port!
> 
> > > ---
> > >   emulators/Makefile                  |  1 +
> > >   emulators/rvvm/Makefile             | 79 +++++++++++++++++++++++++++++++++++++
> > >   emulators/rvvm/distinfo             |  9 +++++
> > >   emulators/rvvm/files/patch-Makefile | 75 +++++++++++++++++++++++++++++++++++
> > >   emulators/rvvm/files/pkg-message.in | 11 ++++++
> > >   emulators/rvvm/pkg-descr            |  5 +++
> > >   emulators/rvvm/pkg-plist            | 30 ++++++++++++++
> > >   7 files changed, 210 insertions(+)
> > 
> > > +MASTER_SITES=	https://github.com/LekKit/patches-misc/releases/download/rvvm-uboot-2024.7/:fw \
> > > +		https://github.com/LekKit/riscv-tests/releases/download/rvvm-tests/:tests
> > > +DISTFILES=	${FWFILES:.bin=.bin:fw} riscv-tests.tar.gz:tests
> > 
> > It would be great if we could build these firmware images from source.
> > Upstream provides a patch set for U-Boot in the repository given
> > in MASTER_SITES, but I don't know enough about U-Boot to generate
> > the right images from that.  Maybe someone from uboot@ could help?
> > 
> 
> The link you shared above is inaccessible to me, but browsing the repo
> I was able to find the patch against v2024.07 [1].
> 
> It basically enables a couple key things in the qemu-riscv config:
>  - Simple framebuffer
>  - NVMe as a default boot target
> 
> These changes have since been applied upstream, meaning the next
> upgrade to our u-boot ports should make the u-boot-qemu-riscv64
> firmware totally usable for RVVM.

That sounds great.  I'll keep this in mind and once the time has come
replace the bundled firmware files with a dependency on the vanilla
firmware.

> The current version (2024.07) seems to be usable, if you provide
> -nogui to rvvm and type 'run nvme_boot' at the u-boot command prompt.
> 
> This does not answer the question about applying patches. I don't
> exactly know how it works with these ports, and it is overall
> discouraged.
> 
> I hope this helps regardless.
> 
> Mitchell
> 
> [1] https://github.com/LekKit/patches-misc/blob/master/uboot/uboot2024.7_rvvm_support.patch

Yours,
Robert Clausecker

-- 
()  ascii ribbon campaign - for an encoding-agnostic world
/\  - against html email  - against proprietary attachments



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Z50IEYwxNpQjCgcj>