Author Topic: DISKINFO - building for AHCI...but needs Watcom environment  (Read 1503 times)

Dariusz Piatkowski

  • Hero Member
  • *****
  • Posts: 1515
  • Karma: +40/-0
DISKINFO - building for AHCI...but needs Watcom environment
« on: April 04, 2026, 08:15:34 pm »
DANIS506 driver package includes a handy little utility (diskinfo) that allows you to examine your storage device.

If you happen to switch to the AHCI device driver however, diskinfo stops working...and indeed the following piece of code tells you why:

Code: [Select]
...
   rc = DosOpen ("\\DEV\\IBMS506$", &hDevice, &ActionTaken, 0,  FILE_SYSTEM,
                 OPEN_ACTION_OPEN_IF_EXISTS, OPEN_SHARE_DENYNONE |
                 OPEN_FLAGS_NOINHERIT | OPEN_ACCESS_READONLY, NULL);
...

This makes sense as "IBMS506$" is replaced with "OS2AHCI$" in the OS2AHCI driver now.

So I thought: well, let me just correct that little thing here and see if that can be made to work with the AHCI driver.

To do so however Watcom environment is needed, which I currently have v1.4 of, however this is fairly old. As best as I know 1.9 is considered the latest stable release, although at some point in time I did actually d/l open-watcom-c-os2-2.0-beta4-netlabs.exe & open-watcom-c-os2-2.0.1.exe.

Therefore, the question is: what release should I be upgrading to before I venture down the path of trying to update my VSE environment with Watcom specific configuration?

Thanks!

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5865
  • Karma: +155/-1

Dariusz Piatkowski

  • Hero Member
  • *****
  • Posts: 1515
  • Karma: +40/-0
Re: DISKINFO - building for AHCI...but needs Watcom environment
« Reply #2 on: April 05, 2026, 02:44:07 am »
Dave!

Arca Noae recommends https://88watts.net/dlfile.php?F=open-watcom-c-os2-, linked from https://www.arcanoae.com/wiki/information-for-developers/

Thank You...that's in fact where I must have gotten open-watcom-c-os2-2.0.1.exe from as well.