From patchwork Mon May 15 19:35:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janneke Nieuwenhuizen X-Patchwork-Id: 1499 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 3D76827BBE2; Mon, 15 May 2023 20:36:21 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id E591927BBE9 for ; Mon, 15 May 2023 20:36:18 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pydzH-0008Jm-GQ; Mon, 15 May 2023 15:36:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pydzG-0008JX-QP for guix-patches@gnu.org; Mon, 15 May 2023 15:36:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pydzG-0008G2-I6 for guix-patches@gnu.org; Mon, 15 May 2023 15:36:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pydzG-0004A0-Ct for guix-patches@gnu.org; Mon, 15 May 2023 15:36:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63527] [PATCH 0/3] Initial attempt at rumpdisk support for the Hurd. Resent-From: Janneke Nieuwenhuizen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 15 May 2023 19:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63527 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63527@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168417934115964 (code B ref -1); Mon, 15 May 2023 19:36:02 +0000 Received: (at submit) by debbugs.gnu.org; 15 May 2023 19:35:41 +0000 Received: from localhost ([127.0.0.1]:44467 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pydyu-00049Q-Us for submit@debbugs.gnu.org; Mon, 15 May 2023 15:35:41 -0400 Received: from lists.gnu.org ([209.51.188.17]:40732) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pydys-00049G-9c for submit@debbugs.gnu.org; Mon, 15 May 2023 15:35:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pydyr-0008H9-RC for guix-patches@gnu.org; Mon, 15 May 2023 15:35:37 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pydyr-00087V-4F; Mon, 15 May 2023 15:35:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=ZSC+njlzsJzVusOEFMp8IElczBrSudSZ8ei/0hxpv1A=; b=JAUqEve87iR0ls FntOuCt7CUa/EHbt86Y+OSxDR+NkxiYW1nJz9QB7OOjEiZLzpr0IiQfa7iTbDRcoV4lpK45trSSaW 0+cdMHe+nLyqYOzxrpBQ+Wn9HsKbSkSCV2kNgWBHQnoF2jhWq4PtU/Gjn7UKOKGCv0lA6vqll5CO/ rxCk8Rv7MLGe4bsf9u+pjKZ2cSRusf2yweljOJra6oeO93VoSs6p2XFKtj7mDutXHiEcBdpOLT7ez 6cj17ckpGDr9tdiVDzzoQ6oJredfJjfqU3PSsJ0uk4G+AAHb/B5sEn4KBFZ5pJMBVX0rLWGjQ9ZGr mLlyrQnnj/1JKU/tvb1Q==; Received: from 2a02-a462-da03-1-2701-7f81-a736-4607.fixed6.kpn.net ([2a02:a462:da03:1:2701:7f81:a736:4607] helo=drakenpad.fritz.box) by fencepost.gnu.org with esmtpa (Exim 4.90_1) (envelope-from ) id 1pydyp-0002Bh-9Y; Mon, 15 May 2023 15:35:36 -0400 From: Janneke Nieuwenhuizen Date: Mon, 15 May 2023 21:35:31 +0200 Message-Id: X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches Hi! Some time ago we kind of promised to move forward with the Hurd[0] and while we have had this pretty neat "childhurd" feature for some time[1], to really do that we should get it to boot on real iron. An important ingredient to make that happen made it into Hurd upstream over a year ago[2]: rumpdisk support making use of the NetBSD rumpkernel[3]. Building this rumpkernel is a bit tricksy, Debian uses an import of the NetBSD git archive[4] --which is quite large--with some twenty-odd custom patches[5]. Some of us asked bug-hurd to document their rumpkernel support[6] or distribute it in a less Debian-centric and more usual way to make it more digestible for other parties (such as Guix) to adopt, but that was rejected at the time[7]. Inspired by Josselin Poiret's recent Hurd updates[8] our chats on IRC and especially their succes in getting it to boot again on master[9], I decided to just take the easiest route possible and build the rumpkernel from Debian's salsa package git archive and its patch series. The good news is that with this patch series the Hurd now has two additional servers: pci.arbiter and rumpdisk. Sadly, it currently hangs for me on --8<---------------cut here---------------start------------->8--- start: pci.arbiter: --8<---------------cut here---------------end--------------->8--- Anyway, while this builds, we probably do not want to rely on Debian's packaging support in this way but I'm also not sure what would be a better course of action right now. Other than asking bug-hurd again to create an upstream for their code outside/independent of their packaging. Help and thoughts much appreciated! See also: https://gitlab.com/janneke/guix/-/tree/wip-hurd Greetings, Janneke PS: I build it like this --8<---------------cut here---------------start------------->8--- ./pre-inst-env guix system image -t hurd-qcow2 gnu/system/examples/bare-hurd.tmpl --8<---------------cut here---------------end--------------->8--- and start it doing --8<---------------cut here---------------start------------->8--- guix shell qemu -- qemu-system-i386 \ -m 1024 \ --enable-kvm \ --device rtl8139,netdev=net0 \ --netdev user,id=net0,hostfwd=tcp:0.0.0.0:11022-:2222 \ --snapshot \ --hda /gnu/store/0zmdmjafmz0hgzw3gszl38nd0n2bblq9-disk-image --8<---------------cut here---------------end--------------->8--- [0] https://guix.gnu.org/en/blog/2020/deprecating-support-for-the-linux-kernel/ [1] https://guix.gnu.org/en/blog/2020/childhurds-and-substitutes/ [2] https://archive.fosdem.org/2022/schedule/event/dzammit/ [3] https://wiki.netbsd.org/rumpkernel [4] https://salsa.debian.org/hurd-team/rumpkernel [5] https://salsa.debian.org/hurd-team/rumpkernel/-/tree/master/debian/patches [6] https://lists.gnu.org/archive/html/bug-hurd/2022-02/msg00020.html [7] https://lists.gnu.org/archive/html/bug-hurd/2022-02/msg00051.html [8] https://mail.gnu.org/archive/html/guix-patches/2023-03/msg01597.html [9] https://issues.guix.gnu.org/63501 Janneke Nieuwenhuizen (3): DRAFT gnu: Add rumpkernel. gnu: hurd: Add rumpkernel. DRAFT system: hurd: Boot with pci.arbiter and rumpdisk. gnu/packages/hurd.scm | 232 +++++++++++++++++++++++++++++++++++++++++- gnu/system.scm | 26 ++++- 2 files changed, 248 insertions(+), 10 deletions(-) base-commit: 555a41f31c9ec9f4344d00beb94f663b44017019