Visopsys 0.84 - [NEW INSTRUCTIONS] Init failed while booting as a Virtual Floppy from coreboot/SeaBIOS

General discussion about Visopsys. We'll create more specific forums if the number of posts justifies that.
Post Reply
qmastery
Posts: 12
Joined: Mon Nov 19, 2018 8:48 pm

Visopsys 0.84 - [NEW INSTRUCTIONS] Init failed while booting as a Virtual Floppy from coreboot/SeaBIOS

Post by qmastery » Sun Jun 16, 2019 8:22 am

Hi Andy! Hope you're doing well. This is a sequel of viewtopic.php?f=3&t=292 thread. Old testing instruction there got broken, so I made a new one for you - much more user friendly! Simply get this archive - https://github.com/informer2016/shr/raw ... pdebug.zip - then unzip ./visopdebug.zip && cd ./visopdebug/ . You'd need just two commands:

Code: Select all

./visopsys.sh ./path_to_a/new_visopsys.img
- to replace a previously added visopsys floppy inside coreboot.rom with some new experimental build, using a ./cbfstool binary . It's pre-built for your convenience, however if you'd like to build it from source by yourself - there's a ./cbfstool.sh script as well as ./downloaded/ directory - cd ./downloaded/util/cbfstool/ && make all

Code: Select all

./qemu.sh
- to run this coreboot.rom in QEMU (although you may need to edit this file if your qemu executable is not "qemu-system-x86_64") . Visopsys floppy is always the first boot entry and will get booted automatically.

Currently I'm getting the following error log at Visopsys 0.84 :

Code: Select all

Error: kernel process:kernelFloppyDriver.c:readWriteSectors(696):
Read/write error: Unknown error
Error:kernel process:kernelDisk.c:realReadWrite(400):
Error -24 reading 1 sectors at 0, disk fd0
Error:kernel process:kernelIdeDriver.c:atapiStartStop(715):
Media changed
Error:kernel process:kernelDisk.c:realReadWrite(400):
Error -24 reading 1 sectors at 0, disk cd0
Error:kernel process:kernelDisk.c:identifyBootDisk(2081):
The boot device could not be identified
Error:kernel process:kernelInitialize.c:kernelInitialize(370):
Disk functions initialization failed
Error:kernel process:kernelMain.c:kernelMain(85):
Initialization failed.  Press any key (or the "reset" button) to reboot.
Here're your last posts from a previous thread with some ideas - viewtopic.php?f=3&t=292&start=10#p1461
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.

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).
If there's anything else I could help with, please let me know

Best regards,
qmastery

User avatar
andymc
Posts: 503
Joined: Tue Nov 16, 2010 7:20 pm

Re: Visopsys 0.84 - [NEW INSTRUCTIONS] Init failed while booting as a Virtual Floppy from coreboot/SeaBIOS

Post by andymc » Mon Jun 17, 2019 9:03 pm

Hi qmastery!

Thanks for the update. You've been very patient, thanks - I know I promised to look at this a while ago. I'm just finishing off a feature for 0.9 now - in the next day or two - and then I will start trying with this. If I can get it to work, I will do a 0.85 release with that as a new feature (otherwise, there might not be any 0.85; I've been stockpiling a few minor patches, but hoping to get to 0.9 first).

Andy

User avatar
andymc
Posts: 503
Joined: Tue Nov 16, 2010 7:20 pm

Re: Visopsys 0.84 - [NEW INSTRUCTIONS] Init failed while booting as a Virtual Floppy from coreboot/SeaBIOS

Post by andymc » Tue Jun 25, 2019 10:38 pm

The feature I've been working on (UTF-8 and wide-character support throughout the OS) the small details are taking me a little bit longer to finish off than I thought (life, 2 small kids, and all that :violin:) but I am still doing this next! :shifty:

qmastery
Posts: 12
Joined: Mon Nov 19, 2018 8:48 pm

Re: Visopsys 0.84 - [NEW INSTRUCTIONS] Init failed while booting as a Virtual Floppy from coreboot/SeaBIOS

Post by qmastery » Thu Jul 04, 2019 1:49 pm

andymc wrote:
Tue Jun 25, 2019 10:38 pm
The feature I've been working on (UTF-8 and wide-character support throughout the OS) the small details are taking me a little bit longer to finish off than I thought (life, 2 small kids, and all that :violin:) but I am still doing this next! :shifty:
Okay, waiting patiently - and, after you'll do this, I will be happy to test it on a real hardware as a part of this BIOS :dance:

Post Reply