9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Skip Tavakkolian <skip.tavakkolian@gmail.com>
To: 9fans <9fans@9fans.net>
Subject: 9vx vs qemu + 9pi or 9pc (was Re: [9fans] NIX experience)
Date: Tue, 7 Jan 2025 00:37:26 -0800	[thread overview]
Message-ID: <CAJSxfmKmsoQwNobKYozk=O22sUMZcum8RyqeLVjUM_kta_h5KA@mail.gmail.com> (raw)

Regarding the status of 9vx on macOS and m1, I would suggest an
alternative: use 9front or 9legacy with qemu. I use the 9legacy amd64
image with qemu on an M1 regularly and even that runs reasonably fast
for my taste.

In the last few hours I tried to bring up the 9pi4 kernel using
'qemu-system-aarch64 -machine raspi4b ...' to compare amd64 vs arm64
emulations on M1.  Unfortunately it gets stuck somewhere on accessing
the disk image; I couldn't bring up raspbian bookworm either and
others reported similar issues.  Once that's fixed, I would guess that
9pi4 on qemu/M1 might be slightly faster than 9pc.

If anyone wants to try bringing up 9pi4 on macos/m1, here are my rough notes:

- Download 9Pi SD image (9legacy.rpi.bz2) from https://9legacy.org/download.html
$ bunzip2 9legacy.rpi.bz2
$ qemu-img resize -f raw 9legacy.rpi 1G # or qemu will complain
$ hdiutil attach -nomount 9legacy.rpi
$ mkdir -p ~/A
$ diskutil mount -mountPoint ~/A /dev/diskXXsY # the FAT partition
$ cp ~/A/9pi4 .
$ cp ~/A/bcm-2711-rpi-4-b.dtb .
$ diskutil unmount /dev/diskXXsY
$ hdiutil detach /dev/diskXX
$ qemu-system-aarch64 -machine raspi4b -dtb bcm2711-rpi-4-b.dtb -kernel 9pi4 \
   -drive file=9legacy.rpi,if=sd,format=raw \
   -append 'readparts=1 nobootprompt=local user=glenda'

On Mon, Jan 6, 2025 at 2:52 PM Ben Huntsman <ben@huntsmans.net> wrote:
>
> Hi guys-
>    I don't mean to take too much of a tangent, but since the nix-os repo includes a pre-built copy of 9vx for OSX, has anyone looked at updating 9vx to be able to compile on newer Mac OS versions?  One of the big problems is that it's very 32-bit which Apple doesn't support compiling for anymore...
>
> Thank you!
>
> -Ben
>
> 9fans / 9fans / see discussions + participants + delivery options Permalink

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Ta0815af2ea24cbbc-M31728313e14dc0aeb25bee24
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

             reply	other threads:[~2025-01-07 12:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-07  8:37 Skip Tavakkolian [this message]
2025-01-07 15:24 ` Mat Kovach
2025-01-07 16:56   ` Jacob Moody

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

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

  git send-email \
    --in-reply-to='CAJSxfmKmsoQwNobKYozk=O22sUMZcum8RyqeLVjUM_kta_h5KA@mail.gmail.com' \
    --to=skip.tavakkolian@gmail.com \
    --cc=9fans@9fans.net \
    /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 NNTP newsgroup(s).