I had to use:

$  hdiutil attach -imagekey diskimage-class=CRawDiskImage -nomount 9legacy.rpi

Or the image wasn't recognized. 

I tried a quick startup but just got a blank screen. I don't have much time to 
take a look, but I'll do so later this evening. 

Thanks for this. 

-- 
  Mat Kovach
  m...@mek.cc

On Tue, Jan 7, 2025, at 03:37, Skip Tavakkolian wrote:
> 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 <b...@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-M35d0b7771e6faa7b980fcc56
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Reply via email to