unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: "pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de>
To: Jan Wielkiewicz <tona_kosmicznego_smiecia@interia.pl>
Cc: help-guix@gnu.org
Subject: Re: How to run Guix with Hurd
Date: Sun, 12 Jul 2020 08:59:34 +0200	[thread overview]
Message-ID: <20200712065934.bchlfujkfhqgs7ih@pelzflorian.localdomain> (raw)
In-Reply-To: <20200712010528.4f4634b2@interia.pl>

On Sun, Jul 12, 2020 at 01:05:28AM +0200, Jan Wielkiewicz wrote:
> Hurd lacks SMP (Simultaneous MultiProcessing), is 32-bit only and it
> doesn't support modern hardware yet.

I too wanted to try Hurd on real hardware.  I see Jan Nieuwenhuizen
does much work on it.

After Jan Nieuwenhuizen’s patches from the beginning of July, I did
partition /dev/sda as dos, not gpt, and created a partition via
mkfs.ext2 on it (with inode size 128, but I think it does not matter).
I can do

e2label /dev/sda1 my-root
sudo guix system init /mnt/etc/config.scm /mnt --skip-checks --target=i586-pc-gnu

Then as root in `guix repl`:

((@ (gnu build hurd-boot) make-hurd-device-nodes) "/mnt")

But Hurd does not support SATA disks (I think), so booting gets stuck
when it starts an ext2fs translator.

It can run from QEMU on Linux from an external USB:

guix environment --ad-hoc qemu-minimal
sudo qemu-system-i386 -enable-kvm -m 3G -device rtl8139,netdev=net0 -netdev user,id=net0,hostfwd=tcp:127.0.0.1:10022-:2222 -hda /dev/sda -display vnc=192.168.178.86:0

192.168.178.86 is the local IP of the machine running QEMU.  Then one
can connect to the VNC via GNOME Boxes.  Back then it executed the rc
script from gnu/build/hurd-boot.scm and I can put echo shell commands
there and they run, however calls to exec got stuck …  Now in current
Guix there are many new patches and I see the rc script is no longer
in Guix’ code.

I should try again, but this definitely needs users to spend time with
making the system work.  The Childhurd service is probably better for
just watching in awe.

Regards,
Florian


  parent reply	other threads:[~2020-07-12  6:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-11 21:14 How to run Guix with Hurd fr33d0m
2020-07-11 23:05 ` Jan Wielkiewicz
2020-07-12  6:25   ` fr33d0m
2020-07-12  6:59   ` pelzflorian (Florian Pelz) [this message]
2020-07-12  8:51     ` Jan Nieuwenhuizen
2020-07-12  8:58       ` Jan Nieuwenhuizen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200712065934.bchlfujkfhqgs7ih@pelzflorian.localdomain \
    --to=pelzflorian@pelzflorian.de \
    --cc=help-guix@gnu.org \
    --cc=tona_kosmicznego_smiecia@interia.pl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).