From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id kNh8OBZcz15afQAA0tVLHw (envelope-from ) for ; Thu, 28 May 2020 06:37:10 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id kH07NBZcz14cCQAAbx9fmQ (envelope-from ) for ; Thu, 28 May 2020 06:37:10 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4597094050A for ; Thu, 28 May 2020 06:37:10 +0000 (UTC) Received: from localhost ([::1]:39670 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jeCA7-0004rp-If for larch@yhetil.org; Thu, 28 May 2020 02:37:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42970) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jeCA2-0004rd-JF for guix-patches@gnu.org; Thu, 28 May 2020 02:37:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39227) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jeCA2-0005pk-9L for guix-patches@gnu.org; Thu, 28 May 2020 02:37:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jeCA2-0002k1-5E for guix-patches@gnu.org; Thu, 28 May 2020 02:37:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41350] [PATCH v2 3/3] system: vm: Build vm-image using native qemu, for the Hurd. Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 28 May 2020 06:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41350 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 41350@debbugs.gnu.org, "Jan \(janneke\) Nieuwenhuizen" Received: via spool by 41350-submit@debbugs.gnu.org id=B41350.159064779110492 (code B ref 41350); Thu, 28 May 2020 06:37:02 +0000 Received: (at 41350) by debbugs.gnu.org; 28 May 2020 06:36:31 +0000 Received: from localhost ([127.0.0.1]:50773 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jeC9X-0002jA-3t for submit@debbugs.gnu.org; Thu, 28 May 2020 02:36:31 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35484) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jeC9U-0002iv-Qo for 41350@debbugs.gnu.org; Thu, 28 May 2020 02:36:29 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:55960) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jeC9O-0005fu-3Q; Thu, 28 May 2020 02:36:22 -0400 Received: from [2a01:e0a:fa:a50:fc1c:e380:17d:4821] (port=36938 helo=meru) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jeC9N-0001Kh-Lt; Thu, 28 May 2020 02:36:21 -0400 From: Mathieu Othacehe References: <20200519072302.9202-1-janneke@gnu.org> <20200519072302.9202-3-janneke@gnu.org> <87367ue09v.fsf@gnu.org> <87pnavu611.fsf@gnu.org> <87zh9tf0qa.fsf@gnu.org> Date: Thu, 28 May 2020 08:36:19 +0200 In-Reply-To: <87zh9tf0qa.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Thu, 28 May 2020 00:54:05 +0200") Message-ID: <87d06o36sc.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -1.01 X-TUID: 8yrGe+1BiRm9 > So it took me the whole day, but I ended up with the following patches Hey Ludo, > addressing these two points. With that on master, I can do: > > guix system vm --target=3Darm-linux-gnueabihf --no-grafts \ > gnu/system/examples/bare-bones.tmpl Nice! Many thanks for helping us on that :) > Likewise, this produces what looks like a valid image, except probably > for the bootloader (I used GRUB in bare-bones, which didn=E2=80=99t compl= ain, > but the result doesn=E2=80=99t work): > > guix system vm-image --target=3Darm-linux-gnueabihf =E2=80=A6 > > Thoughts? qemu-system-arm supports a whole range of machine. You can type: --8<---------------cut here---------------start------------->8--- qemu-system-arm -M machine help --8<---------------cut here---------------end--------------->8--- for the complete list. Depending on the selected machine, the required bootloader differs. For the "virt" machine, it seems that we could pass the bootloader as Qemu "bios" argument[1], but I'm not sure we can do much better. > Yeah, using the new image API will be nicer. We still need to keep some > of the API in (guix system vm), at least for the =E2=80=98guix system vm= =E2=80=99 > command. Yes, you are right. > From 6e936131ca85aba24f82d35c4616afe835ac7da5 Mon Sep 17 00:00:00 2001 > From: =3D?UTF-8?q?Ludovic=3D20Court=3DC3=3DA8s?=3D > Date: Wed, 27 May 2020 23:57:41 +0200 > Subject: [PATCH 7/7] gnu: guile-static: Disable JIT on ARMv7. The whole serie LGTM. It's nice to have cross-compilation working for both disk-images and vm-images! Mathieu [1]: https://github.com/ARM-software/u-boot/blob/master/doc/README.qemu-arm