Page 2 of 2

Re: ST-412/ST-506/ESDI hard drive emulation?

Posted: Mon 20 Mar, 2017 10:19 pm
by gen_angry
Probably would just require a large list of existing drive configs and a "custom string" for it? Maybe for a dropdown so a user could pick from a list of pre-defined drives or choose to build their own "custom drive".

I'd be willing to try to track down or build a "list of different drives" if there was a class or something to define a drive model.

ie: ( int sector, int head, int cylinder, string name )

Re: ST-412/ST-506/ESDI hard drive emulation?

Posted: Thu 06 Apr, 2017 11:35 pm
by ecksemmess
With the latest commits that add ESDI emulation (not to mention the MCA support and all of the other goodies), it looks like my original wishlist in this thread has just about been fulfilled. I never would've dared to hope it would have all happened so soon! :) Just a couple of quick questions: first, I see that the PS/2 ESDI adapter is marked as MFM (is_mfm set to 1). I don't believe that ESDI is generally considered to fall under the MFM umbrella, technically speaking. I'm not entirely clear on the usage and significance of is_mfm, so perhaps it's appropriate in this case, but it seems a bit misleading at the very least. And, second, given that the PS/2 ESDI adapter is MCA-based, I'm assuming there won't be any easy way to use this implementation with the ISA systems. However, is it reasonable to hope that a fair amount of that work will translate over to any future efforts to implement an ISA-based ESDI card? It would be great to be able to use the larger ESDI-sized hard drives with machines like the Deskpro 386, for example. In any case, thanks again Sarah for your typically impressive work here.

Re: ST-412/ST-506/ESDI hard drive emulation?

Posted: Fri 07 Apr, 2017 6:48 pm
by SarahWalker
'is_mfm' currently only determines the hard drive configuration menu. I should probably tweak this at some point - while IBM's ESDI adapter is limited to 2 drives (like MFM), the hard drive type selection isn't really relevant.

If there is an ISA ESDI controller that uses the same register interface as IBM's MCA controller, then the work done so far can be re-used. Otherwise it's going to be effectively a new controller to emulate.

Re: ST-412/ST-506/ESDI hard drive emulation?

Posted: Wed 05 Jul, 2017 8:19 pm
by SarahWalker
Rev 784 adds WD1007V-SE1 ESDI controller emulation.

Setup is similar to the DTC card - run DEBUG.EXE, and type 'g=c800:5'. Select option 7 ('Set Drive Type & Exit') and you can use +/- to choose C/H/S remapping. I recommend the third option, with 16 heads and 63 sectors.

Re: ST-412/ST-506/ESDI hard drive emulation?

Posted: Wed 05 Jul, 2017 8:43 pm
by ecksemmess
This looks great! Thanks again for all your work on this Sarah, we've really come a long way.

Re: ST-412/ST-506/ESDI hard drive emulation?

Posted: Sun 16 Jul, 2017 11:19 pm
by ecksemmess
Apologies if I'm missing something obvious here, but why is the IBM ESDI Fixed Disk Controller marked "is_mfm" for PCem's purposes, while the Western Digital WD1007V-SE1 ESDI controller is not? Is this related to what was mentioned a bit upthread about the IBM controller being limited to two drives?

Re: ST-412/ST-506/ESDI hard drive emulation?

Posted: Sun 01 Oct, 2017 4:02 pm
by SarahWalker
As of rev 872 PCem now emulates a number of SCSI adapters. I felt a few notes were required :

- The Longshine and Ranco adapters have few if any drivers available; I'd suggest using these for running DOS in XT machines.
- Trantor T130B has drivers in NT 3.1 (and I think 3.51). There does seem to be a performance issue though which I haven't really investigated yet.
- Adaptec and BusLogic have support in NT and Windows 9x, which seem to work fine.
- BusLogic >1GB support isn't implemented yet. Adaptec supports up to 8GB okay though.
- Windows 3.x requires SMARTDRV double-buffering to be enabled. Windows setup will do this unless SMARTDRV is already in CONFIG.SYS/AUTOEXEC.BAT, which it is by default in MS-DOS 6.x.
- Hard drive configuration UI is incomplete. Only 4 drives are supported, and you have to provide drive size as cylinders/heads/sectors, which has no meaning for SCSI.
- No CD support yet.

Re: ST-412/ST-506/ESDI hard drive emulation?

Posted: Mon 02 Oct, 2017 2:12 am
by ecksemmess
What a nice surprise, thanks for this! :)

Re: ST-412/ST-506/ESDI hard drive emulation?

Posted: Tue 03 Oct, 2017 4:40 pm
by A. Naim
Indeed, thank you! :)

Re: ST-412/ST-506/ESDI hard drive emulation?

Posted: Tue 03 Oct, 2017 5:20 pm
by omarsis81
I compiled rev. 873 and PCem doesn't detect HDD anymore

Re: ST-412/ST-506/ESDI hard drive emulation?

Posted: Tue 03 Oct, 2017 6:49 pm
by SarahWalker
You have to select 'standard IDE' now in the hard disc controller section in Settings. On the wxWidgets GUI this will happen automatically when selecting an appropriate machine, I didn't update the old GUI as it's going to be deleted shortly.

Re: ST-412/ST-506/ESDI hard drive emulation?

Posted: Tue 03 Oct, 2017 7:16 pm
by omarsis81
Is "Internal IDE" and is the only option in the old GUI, I don't know how to compile the new one, but if you didn't update it, that explains it. I'll have to wait for v13. Thanks!

Re: ST-412/ST-506/ESDI hard drive emulation?

Posted: Wed 04 Oct, 2017 4:32 pm
by SarahWalker
As a workaround you could try editing the relevant configure file and setting 'hdd_controller' to 'ide'. That ought to work.

Re: ST-412/ST-506/ESDI hard drive emulation?

Posted: Wed 04 Oct, 2017 5:17 pm
by omarsis81
Indeed, it worked! Thanks

Re: ST-412/ST-506/ESDI hard drive emulation?

Posted: Wed 04 Oct, 2017 11:20 pm
by A. Naim
SarahWalker wrote:As a workaround you could try editing the relevant configure file and setting 'hdd_controller' to 'ide'. That ought to work.
Also got my Windows 98SE install working again, so thanks. :)

Well, once I ran through the HDD auto-detection again. Rev 873, just to note.

Re: ST-412/ST-506/ESDI hard drive emulation?

Posted: Sun 08 Oct, 2017 7:57 pm
by AnnaWu
SarahWalker wrote:You have to select 'standard IDE' now in the hard disc controller section in Settings. On the wxWidgets GUI this will happen automatically when selecting an appropriate machine, I didn't update the old GUI as it's going to be deleted shortly.
SarahWalker wrote:As a workaround you could try editing the relevant configure file and setting 'hdd_controller' to 'ide'. That ought to work.
Please update the GUI without using the wxWidgets GUI, Sarah.

Re: ST-412/ST-506/ESDI hard drive emulation?

Posted: Sun 08 Oct, 2017 9:05 pm
by SarahWalker
The non-wxWidgets GUIs will be deleted by the end of the week. I don't intend to maintain more than one GUI.

Re: ST-412/ST-506/ESDI hard drive emulation?

Posted: Sun 08 Oct, 2017 11:31 pm
by leilei
From a quick test, one of these recent commits (since Oct 3) regressed the floppy controller in MR 386DX (so far)


EDIT: turns out it's a bug with PC/GEOS's professional workspace's GeoManager accessing floppies somehow stalling the controller across even hard resets and may/may not involve the recent scsi commits

EDIT2: Attempting to format a read-only disk image can cause this

Re: ST-412/ST-506/ESDI hard drive emulation?

Posted: Mon 09 Oct, 2017 1:44 am
by basic2004
SarahWalker wrote:The non-wxWidgets GUIs will be deleted by the end of the week. I don't intend to maintain more than one GUI.
Discontinuing supports for old GUI is nice choice for now, because old GUI appeared internal IDE controller issue, and didn't solving mouse problem for Hi-DPI(above 100%) Windows user... this issue appears only old Windows GUI.
and joystick feature is messed up since implemented PCem configuration manager. and MIDI too.

But some features already supported when stable v12 were not support for wxWidgets GUI yet, can you support these until v13?

Re: ST-412/ST-506/ESDI hard drive emulation?

Posted: Mon 09 Oct, 2017 8:16 am
by Greatpsycho
This patch fixes Internal IDE related trouble in non-windows enviroment.

Re: ST-412/ST-506/ESDI hard drive emulation?

Posted: Mon 09 Oct, 2017 8:49 am
by SarahWalker
basic2004 wrote:
SarahWalker wrote:The non-wxWidgets GUIs will be deleted by the end of the week. I don't intend to maintain more than one GUI.
Discontinuing supports for old GUI is nice choice for now, because old GUI appeared internal IDE controller issue, and didn't solving mouse problem for Hi-DPI(above 100%) Windows user... this issue appears only old Windows GUI.
and joystick feature is messed up since implemented PCem configuration manager. and MIDI too.

But some features already supported when stable v12 were not support for wxWidgets GUI yet, can you support these until v13?
I'm working on joystick support, what else is currently missing?

Re: ST-412/ST-506/ESDI hard drive emulation?

Posted: Mon 09 Oct, 2017 2:38 pm
by basic2004
SarahWalker wrote:I'm working on joystick support, what else is currently missing?
Oh, I expect that!

and I want MIDI feature, uploaded patch from this forum by bit and me.
I expect MIDI on wxWidgets too.

If you won't apply all, add SBMIDI with current MPU-401 UART mode.
SBMIDI shares current MIDI out device so PCem should support MIDI out device to all Sound Blaster cards.
currently PCem can set MIDI out device but no playback.
Tested wxWidgets UI with Windows, current development version.