Code: Select all
qemu-system-i386 -hda gentoo.vhd -cpu 486,-fpu
Code: Select all
qemu-system-i386 -hda gentoo.vhd -cpu 486,-fpu
Code: Select all
IDE regs:
io_done: 01
features: 00
sec_cnt: 01
sector: 00
cylinder: 0000
head: 00
drv: 00
lba: 01
command: C4
IDE command: C4 (on 0)
(!) Read multiple is disabled!
Code: Select all
ata1: lost interrupt (Status 0x58)
alexoughton wrote: ↑Thu Feb 10, 2022 11:07 pmOh my goodness, it works. The answer was 16. Linux has booted and has even gone all the way through a successful fsck.
Make sure you back-up the copy on the root of your SD card and then place this copy there instead. All I've done is change line 426 of ide.cpp to set spb to 16 instead of 0. I'll raise this in a formal bug report shortly to see if we can get this properly fixed instead of my hack.
Update: Pull Request has been raised here: https://github.com/MiSTer-devel/Main_MiSTer/pull/534.
Note that this does not solve the problem with Windows NT booting. I don't even think that's IDE-related, since I get the "inaccessible boot device" crash even when I'm trying to boot from setup floppies.
This is awesome, thanks!
Some of the many errors installing and running Windows 95 and 98 might also be related to this, but hard to say. I think it is a mix of several things with this core taking a few shortcuts on how to get IDE and floppy drives to work and probably other things as well.
It doesn't seem so. I pulled-down the exact version of the code which built the most recent release. When I compile it myself I have the issue. When I use the official binary of that release the issue is gone. Definitely seems to be something wrong with my builds specifically.
Code: Select all
IDE controller is PIO-only. So no DMA modes.
Also it has some problem, so even windows uses compatibility mode, i.e. BIOS calls to access the disks.
Welcome to improve it.
Actually BOCHS BIOS forces to use IDE in worst (single sector per time) mode.
I've been going through the BIOS and IDE code this weekend to try and solve some other issues and I see there have been some fixes applied in there in the past related to the floppy drives and Windows 98. That could be why you're seeing fewer issues.Caldor wrote: ↑Mon Feb 14, 2022 1:28 pm I have tried installing Windows 98 this weekend and it seemed to have less errors when doing so. Still had one crash though. Will test some more. But I do think some of the issues were IDE controller related and a software fix was found where you renamed a file with the IDE driver I think... but I might be mistaken. It was a "freeze fix". I am also pretty sure that there was something about removing floppy drives to avoid the system freezing when opening My Computer and it would begin checking all disks.
That sounds likely. Certainly a lot less issues for me. I did do the first half of the installation using 86Box on my PC and then did the next part on the MiSTer. Then I avoided having to use the option to run the setup without FPU and such.alexoughton wrote: ↑Mon Feb 14, 2022 1:30 pmI've been going through the BIOS and IDE code this weekend to try and solve some other issues and I see there have been some fixes applied in there in the past related to the floppy drives and Windows 98. That could be why you're seeing fewer issues.Caldor wrote: ↑Mon Feb 14, 2022 1:28 pm I have tried installing Windows 98 this weekend and it seemed to have less errors when doing so. Still had one crash though. Will test some more. But I do think some of the issues were IDE controller related and a software fix was found where you renamed a file with the IDE driver I think... but I might be mistaken. It was a "freeze fix". I am also pretty sure that there was something about removing floppy drives to avoid the system freezing when opening My Computer and it would begin checking all disks.