From nobody Fri Jan 31 17:27:45 2025 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Yl2sQ6b3Gz5mdC4; Fri, 31 Jan 2025 17:27:54 +0000 (UTC) (envelope-from fuz@fuz.su) Received: from fuz.su (fuz.su [IPv6:2001:41d0:8:e508::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "fuz.su", Issuer "fuz.su" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Yl2sQ1DVbz40YC; Fri, 31 Jan 2025 17:27:53 +0000 (UTC) (envelope-from fuz@fuz.su) Authentication-Results: mx1.freebsd.org; none Received: from fuz.su (localhost [127.0.0.1]) by fuz.su (8.18.1/8.18.1) with ESMTPS id 50VHRjn0009929 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 31 Jan 2025 18:27:45 +0100 (CET) (envelope-from fuz@fuz.su) Received: (from fuz@localhost) by fuz.su (8.18.1/8.18.1/Submit) id 50VHRjTL009928; Fri, 31 Jan 2025 18:27:45 +0100 (CET) (envelope-from fuz) Date: Fri, 31 Jan 2025 18:27:45 +0100 From: Robert Clausecker To: Mitchell Horne Cc: Robert Clausecker , 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: References: <202501230107.50N17LLp083244@gitrepo.freebsd.org> List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4Yl2sQ1DVbz40YC X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:16276, ipnet:2001:41d0::/32, country:FR] 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