qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Block storage device mapping for OpenFirmware accessibility


From: Rob Ballantyne
Subject: Re: Block storage device mapping for OpenFirmware accessibility
Date: Mon, 2 Oct 2023 11:51:25 -0700

Thanks Howard!

  I wasn’t able to find the “right” set of options to hdiutil to create a HFS+ disk image that OF seems to understand.  However, I was able to get a cd/ISO filesystem to work after switching to mkisofs.  For the record, in case anyone is looking for this in the future:

  %  mkisofs -o boot.iso -chrp-boot -R -J bootdisk

  Does the trick — at least being visible to OF.  Note that bootdisk is a directory containing the files to be at the top level of the ISO. However, the file names all appear in upper case with version numbers ‘HELLO.TXT;1’ for example. If I can improve on this, I’ll update this thread.

Thanks for the help!

Rob

On Oct 1, 2023, at 9:44 PM, Howard Spoelstra <hsp.cat7@gmail.com> wrote:



On Mon, Oct 2, 2023 at 1:35 AM Rob Ballantyne <robballantyne3@gmail.com> wrote:
Hello,

  Out of curiosity and self education I’m trying to setup a dev environment where I can experiment with early boot stages on PPC/PPC64 machines.

  I started out trying to get my local filesystem mapped through via VFAT to a fat based filesystem (floppy or otherwise) to a OF device that I can use to load/execute boot code.  No luck. 

  I tried creating fat floppy filesystems (Mtools) also no luck.

  I also tried building iso images (using hdiutil, I’m using a Mac) without luck.

  There must be something fundamental I’m missing about how the details of the -drive directive work.  And there must be something about how I’m creating the ISO image (because I can attach a FreeBSD ppc ISO and see its filesystem as OF device “cd:,\”

  Is there an easy way to create/build an image (or directory—if VFAT can be made to work) that can be attached via command line options and have it visible as a source of files for booting the ppc/ppc64 emulated environment?

Thanks!

Rob

Hi,

Openbios can read hfs. So you might want to create a hfs hd image.
Attaching is simple: -drive file=hfs.img,format=raw,media=disk

Best,
Howard


reply via email to

[Prev in Thread] Current Thread [Next in Thread]