From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vagrant Cascadian Subject: Adding riscv64 support to qemu-binfmt-service Date: Thu, 06 Jun 2019 12:50:49 -0700 Message-ID: <87lfyeze5i.fsf@yucca> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:35248) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hYyPb-00020C-Io for help-guix@gnu.org; Thu, 06 Jun 2019 15:51:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hYyPa-0006Wi-LC for help-guix@gnu.org; Thu, 06 Jun 2019 15:50:59 -0400 Received: from cascadia.aikidev.net ([2600:3c01:e000:267:0:a171:de7:c]:35032) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hYyPa-0006VD-FK for help-guix@gnu.org; Thu, 06 Jun 2019 15:50:58 -0400 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:21:21:0:100b]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id 032351AC23 for ; Thu, 6 Jun 2019 12:50:52 -0700 (PDT) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable I've been trying to get riscv64 support added to qemu-binfmt-service, but it doesn't appear to work.... I can successfully guix system reconfigure, with the following in my config.scm: (services (cons* (service dhcp-client-service-type) (service qemu-binfmt-service-type (qemu-binfmt-configuration (platforms (lookup-qemu-platforms "arm" "aarch64" "riscv64" )) ;; (guix-support? #t) )) But it doesn't appear to register the qemu-riscv64 interpreter, only aarch64 and arm: $ ls /proc/sys/fs/binfmt_misc/ qemu-aarch64 qemu-arm register status I've tried with: (qemu-platform "riscv64" "riscv" and: (qemu-platform "riscv" "riscv64" and: (qemu-platform "riscv64" "riscv64" All with no luck. From=20f2f1b2b95adb8ee17181bc1b6178c39b65de89c9 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian Date: Wed, 5 Jun 2019 15:36:32 -0700 Subject: [PATCH] gnu: services: Add riscv64 to qemu-platforms. * gnu/services/virtualization (%riscv64): Add file magic for riscv64. (%qemu-platforms): Add riscv64. =2D-- gnu/services/virtualization.scm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gnu/services/virtualization.scm b/gnu/services/virtualization.= scm index 705ed84d06..a9ef81a2ac 100644 =2D-- a/gnu/services/virtualization.scm +++ b/gnu/services/virtualization.scm @@ -645,10 +645,15 @@ potential infinite waits blocking libvirt.")) (bv "\x7f\x45\x4c\x46\x01\x02\x01\x00\x00\x00\x00\x00\x00= \x00\x00\x00\x00\x02\x00\x0f") (bv "\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff= \xff\xff\xff\xff\xfe\xff\xff"))) =20 +(define %riscv64 + (qemu-platform "riscv64" "riscv" + (bv" \x7f\x45\x4c\x46\x02\x01\x01\x00\x00\x00\x00\x00\x00= \x00\x00\x00\x02\x00\xf3\x00") + (bv "\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff= \xff\xff\xff\xfe\xff\xff\xff"))) + (define %qemu-platforms (list %i386 %i486 %alpha %arm %sparc32plus %ppc %ppc64 %ppc64le %m68k %mips %mipsel %mipsn32 %mipsn32el %mips64 %mips64el =2D %sh4 %sh4eb %s390x %aarch64 %hppa)) + %sh4 %sh4eb %s390x %aarch64 %hppa %riscv64)) =20 (define (lookup-qemu-platforms . names) "Return the list of QEMU platforms that match NAMES--a list of names suc= h as =2D-=20 2.21.0 Am I missing something obvious? There are definitions for many architectures not yet available in guix, so I wouldn't think that's the issue. live well, vagrant --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCXPlumgAKCRDcUY/If5cW qqwuAP9rnHRM68OOEwF7SDWtu5VW17nHGrHCLvj6M1nZefzY/AEAnFwhmWYu9wDw 1aPPepLAzRTwDbIK8Wpg/FxR3oRm7wE= =+z2u -----END PGP SIGNATURE----- --=-=-=--