From: "Alexey Kardashevskiy" <aik@ozlabs.ru>
To: "BALATON Zoltan" <balaton@eik.bme.hu>,
"Michael Tokarev" <mjt@tls.msk.ru>
Cc: qemu-devel <qemu-devel@nongnu.org>, qemu-PowerPC <qemu-ppc@nongnu.org>
Subject: Re: vof-nvram.bin: what it is and how it is used?
Date: Fri, 21 Mar 2025 16:42:24 +1100 [thread overview]
Message-ID: <60d4416c-6a56-462f-8b98-1ff8800c0e5f@app.fastmail.com> (raw)
In-Reply-To: <6f29bd39-5855-c2c4-80b3-0873c7387897@eik.bme.hu>
On Thu, 20 Mar 2025, at 00:14, BALATON Zoltan wrote:
> On Wed, 19 Mar 2025, Michael Tokarev wrote:
> > Hi!
> >
> > Commit fc8c745d50150a63f6c "spapr: Implement Open Firmware client interface"
> > in Jun-2021 added a new file, pc-bios/vof-nvram.bin, to qemu sources.
> >
> > But there's nothing in the sources which refers to this file, and there's
> > no mentions about its contents and how it has been generated.
> >
> > What's the procedure to create this image? It would be great if such
> > procedure can be run during package build time to generate this image anew.
> >
> > How it is supposed to be used?
>
> See hw/ppc/spapr.c::spapr_create_nvram(). Looks like it would add a drive
> give with -drive if=pflash,index=0 as the nvram backing file. I don't know
> if it generates the default if an empty file is passed or maybe SLOF would
> do that which then could be used for VOF too and that's how it was made?
> So you could try running -machine spapr with an empty nvram with slof then
> compare that to the default for VOF.
I booted with SLOF and -drive if=pflash,index=0 and let SLOF initialize it, and then use the result with VOF.
> > Should it be shipped in a downstream distribution?
>
> If is't not auto-created with the default values and not easy to create
> then maybe more convenient for users to get an example.
At the time I wanted to keep hw/ppc/spapr_vof.c and pc-bios/vof.bin as small as possible so avoided formatting. And a VM would still work even without this pc-bios/vof-nvram.bin (but it would annoyingly complain), hence the image.
http://wiki.raptorcs.com/w/images/c/c5/LoPAPR_DRAFT_v11_24March2016_cmt1.pdf chapter 8 "Non-Volatile Memory" has the format if anyone feels bored :)
Thanks,
>
> Regards,
> BALATON Zoltan
>
prev parent reply other threads:[~2025-03-21 12:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-19 10:26 vof-nvram.bin: what it is and how it is used? Michael Tokarev
2025-03-19 13:14 ` BALATON Zoltan
2025-03-21 5:42 ` Alexey Kardashevskiy [this message]
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=60d4416c-6a56-462f-8b98-1ff8800c0e5f@app.fastmail.com \
--to=aik@ozlabs.ru \
--cc=balaton@eik.bme.hu \
--cc=mjt@tls.msk.ru \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
/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).