v86 icon indicating copy to clipboard operation
v86 copied to clipboard

Floppy with CD-ROM problem

Open Pixelsuft opened this issue 3 years ago • 15 comments

In old version (custom profile), when I'm booted from Floppy, it not detected CD-ROM: image1

But now it not booting from Floppy with CD-ROM (without CD-ROM - booting): image2

Pixelsuft avatar May 04 '21 09:05 Pixelsuft

I can reproduce this. Do you happen to know which old version had this issue?

copy avatar May 06 '21 04:05 copy

In the last non-wasm version it was as on first screenshot.

Pixelsuft avatar May 06 '21 04:05 Pixelsuft

Maybe these problems are different because in old version floppy works correctly with hd, but now - it not works

Pixelsuft avatar May 08 '21 03:05 Pixelsuft

i too have same problem , CD-ROM Driver doesn't detect CD image

ghost avatar Aug 06 '21 15:08 ghost

Update: it works fine if i load Oak CD-ROM Driver (oakcdrom.sys)

ghost avatar Sep 10 '21 13:09 ghost

Floppy + HDD works with bochs bios

Pixelsuft avatar May 17 '22 09:05 Pixelsuft

i left v86 with a cdrom and hard disk for a hour and it is working.

porg13231 avatar Jun 15 '22 16:06 porg13231

When trying to boot with floppy + cdrom in debug mode:

20:35:12+222 [CPU ] Assertion failed at src/rust/cpu/instructions.rs:2218:5: 'false'

Pixelsuft avatar Jun 16 '22 13:06 Pixelsuft

With the latest 'Version: 1a64b50f9 (Jul 29, 2022 00:07)' now booting from floppy having a defined hard disk works perfectly well. :smiley:

Thank you!

mikaku avatar Jul 31 '22 16:07 mikaku

HD + CDROM still not works with seabios

Pixelsuft avatar Aug 01 '22 00:08 Pixelsuft

@mikaku Thanks for the confirmation! Probably fixed as a side-effect of 236e7ada27c8d6890983d8b17f1b7352e58274b8 and aee82bb83b8091f84dbd02bc732c6971004a9826. I added some test to make sure it stays that way.

HD + CDROM is still broken, so leaving open for that.

copy avatar Aug 01 '22 12:08 copy

I added some test to make sure it stays that way.

Excellent, thank you again!

mikaku avatar Aug 01 '22 14:08 mikaku

hd with cdrom work when booting from cdrom (not fully tested). update: some images booting, some - not

Pixelsuft avatar Aug 06 '22 07:08 Pixelsuft

I've tested booting from CDROM having a hard disk defined and, as @Pixelsuft says, it also works now. Unfortunately my OS still don't supports PCI ATA controllers, it only supports pure ISA ATA with standard IRQs (14 and 15) and I/O port address. I'm working on it right now.

Another issue is the floppy in itself. It looks like the floppy device only works in the BIOS context, I mean, it boots of course, but I'm unable to use it once the OS has been boot up. I've tested it using my latest kernel version in FiwixOS and also under Linux kernel versions 2.0.40 and 2.2.26, and it don't works either. These Linux kernels, while old, are perfectly capable to recognize and use any floppy drive, but not the one in this emulation. In this case, my own kernel have the same problems to access to this floppy drive as Linux kernel also has. Perhaps this deserves a different issue? if you think so, let me know and I'll open a new one.

mikaku avatar Aug 06 '22 14:08 mikaku

The floppy controller's misbehavior seems worthy of its own issue (e.g., inserting a floppy disk works now with PR #897 in MS-DOS, but not Linux 2.6) for overall conformance with spec (maybe comparing against QEMU's implementation could be useful) and I think "can't boot from HDD with CD-ROM inserted" also qualifies as a separate issue.

JoeOsborn avatar Aug 17 '23 17:08 JoeOsborn