Visopsys 0.83 - [OLD THREAD] init failed (virtual floppy at coreboot/SeaBIOS)

General discussion about Visopsys.
User avatar
andymc
Posts: 590
Joined: Tue Nov 16, 2010 7:20 pm

Re: Visopsys 0.83 - Initialization failed while booting as a Virtual Floppy from coreboot/SeaBIOS

Post by andymc »

I'm not much familiar with this world of firmware flashing boot images and whatnot.

Is there any way you could post some instructions about how to set this up in an emulator, such as Qemu or VMware or VirtualBox?

How would the bootloader find out this memory address, of the virtual floppy image it's really booting from? That might be the 'hook' right there. Right now I assume the bootloader thinks it's booting from a real floppy disk - really an emulated one. The loader has to be able to figure out that address, to pass it to the kernel.
User avatar
andymc
Posts: 590
Joined: Tue Nov 16, 2010 7:20 pm

Re: Visopsys 0.83 - Initialization failed while booting as a Virtual Floppy from coreboot/SeaBIOS

Post by andymc »

I guess what that Fiwix guy did is to create the ramdisk in the bootloader. So the loader would have to pick a memory address, load the entire emulated floppy into it using the usual int13 calls, then pass that address. But we wouldn't want it to do that under normal circumstances, so there has to be some trigger for it. Perhaps with a custom boot sector.

Is there any part of this that you'd like to try doing? I have limited time (late-night coding sessions) and I'm trying to complete features for the 0.9 release. I'd be happy to work with you on it, though!
qmastery
Posts: 31
Joined: Mon Nov 19, 2018 8:48 pm

Re: Visopsys 0.83 - Initialization failed while booting as a Virtual Floppy from coreboot/SeaBIOS

Post by qmastery »

andymc wrote: Fri Jan 04, 2019 3:05 pmIs there any way you could post some instructions about how to set this up in an emulator, such as Qemu or VMware or VirtualBox?
Updated instructions here - viewtopic.php?f=3&t=338
Last edited by qmastery on Sun Jun 16, 2019 8:23 am, edited 3 times in total.
User avatar
andymc
Posts: 590
Joined: Tue Nov 16, 2010 7:20 pm

Re: Visopsys 0.83 - Initialization failed while booting as a Virtual Floppy from coreboot/SeaBIOS

Post by andymc »

Good instructions, thanks for queueing everything up for me :-)

I'm deep into debugging something else at the moment, but I will give this a go soon.

In the past I've been asked on here about some multiboot stuff, and PXE, and I wonder whether these changes would help to enable all of that - booting from a virtual floppy image.

Rather than a custom boot sector I'd probably go with the creation of an empty file in the image, such /ramdisk, that the bootloader could search for, to trigger this behaviour (as it does with /nograph, which forces text mode operation).
Post Reply