On Mon, 24 Feb 2025, Bernhard Beschow wrote:
Am 22. Februar 2025 17:52:27 UTC schrieb BALATON Zoltan <bala...@eik.bme.hu>:
Hello,

This series adds NVRAM and support for -kernel, -initrd and -append
options to the amigaone machine. This makes it easier to boot AmigaOS
and avoids a crash in the guest when it tries to access NVRAM.

Looks like the above information could be added to the changelog. While...

I tried to make changelog consise and assume people reading that are familiar with QEMU so know what these options do. But whoever will update the changelog can decide if this is worth adding, I'm OK with that.

While the -kernel option emulates what U-Boot passes to the kernel,
old Linux kernels for amigaone may not work with it because of two
reasons: these come in legacy U-Boot Multi-File image format that QEMU
cannot read and even after unpacking that and creating a kernel uimage
it won't find PCI devices because it does not initialise them
correctly. This works when booted from U-Boot because U-Boot inits PCI
devices. So does my BBoot loader which can be used to load AmigaOS so
I don't intend to emulate that part of U-Boot.

I'd like this to be merged for the next release please. When merging
please update https://wiki.qemu.org/ChangeLog/10.0 with the following:

amigaone

Added support for NVRAM and -kernel, -initrd, -append command line
options.

... this:

By default the NVRAM contents are not preserved between
sessions. To make it persistent create a backing file with 'qemu-image
create -f raw nvram.bin 4k' and add -drive
if=mtd,format=raw,file=nvram.bin to keep NVRAM contents in the backing
file so settings stored in it will be preserved between sessions.

To run AmigaOS with BBoot using the -kernel option at least BBoot
version 0.8 is needed. Older BBoot versions only work with -device
loader and cannot be used with -kernel on amigaone.

... information could be added to the amigaone section in the QEMU manual to 
keep the documentation in one place.

The QEMU doc specifically documents running Linux and Linux does not use or rely on NVRAM. But I could mention it there why you likely can't boot Linux with -kernel although if you try you'll get an error telling you and since the docs don't recommend that it's probably OK to not mention it just to not confuse people who only want to know what works.

I have my docs on AmigaOS and BBoot at qmiga.codeberg.page so I'll add info relating to these there and keep the QEMU docs for Linux. I've only mentioned BBoot in the changelog because people don't read docs so I wanted it to be everywhere so they see at least one of those before asking me. I've yet to update BBoot and my Qmiga pages but I'll do that for the QEMU release.

Regards,
BALATON Zoltan

Reply via email to