win3.1 attempts :)
Hi,
So, armed with a fresh copy of DOSEMU 1.1.5.7 and quite happy with the changelog entry referring to windows, I set out to create a fresh win3.1 setup on my machine to help with hacking WINE.
I have a kernel 2.4.23-pre4 and running Debian.
I tried both the WFW3.11 and the plain Win3.1. For each of these, I took the gdi.exe, user,exe, krnl386.exe, and mouse.drv from OS/2's windows, compressed them (-> .ex_), and replaced the original files with the OS/2 versions that use DPMI instead of blasted VCPI.
I put all of the windows installation disks into a single directory, lredir'd from the file system.
I attempted the install with each of FreeDOS (kernel 1.1.28), DR-DOS 7.04, and MS-DOS 6.22 running under DOSEMU. Each time I attempt to install on D:\windows which is lredir'd to a dir under my home directory.
Here are the results and some notes:
WFW3.11
-------
FreeDOS: Completes the initial file copy in DOS. When it would go to start windows to go to the next part of the installation, it crashes to a dos prompt instead, sitting in D:\windows. From there, one can issue .\system\krnl386.exe to start windows. (Just \system\krnl386.exe doesn't work; '\system' seems to be reserved to FreeDOS somehow.) However, when windows starts, it complains about not being installed all the way and refuses to go further. Through trial and error, I discovered that issuing '.\system\krnl386.exe /?' somehow bypasses this and gets one into the installation.
The installation is straightforward for the first part. When it actually goes to copy some files, you must have a disk in the A:
drive for some reason, or you will get an A.R.F error on screen, and be unable to continue the session (close dosemu). I tried to redirect the floppy to /dev/null or /dev/zero, but then after the file copy, the installer would have a GPF and hang the DOSEMU session.. Putting a diskette in the A: drive for its "probe" gets us past the file copy... and then the session hangs with some corrupted video. :( The mouse can still be moved around (you see the windows mouse moving) so the DOSEMU isn't completely hung-up, but windows doesn't want to do anything more.
DR-DOS/MS-DOS: Both of these end up the same way, so I'll put them together. Everything is exactly the same up until this point as FreeDOS except the '.\system' thing. Both of these DOS manage to complete the file copy and move on to the printer setup, and afterwards the network configuration. However, after the network configuration, both of them crash with the same GPF: WINSETUP.EXE caused a GPF in WINSETUP.EXE at 0001:113b. The address is the same _every time_ the installation is attempted.
If I quit the dosemu session and attempt to resume the already half-completely installation, it is no use; it still crashes in the same spot after the network setup.
Ok, so I give up on WFW3.11. Perhaps the networking portion is giving the dosemu some trouble. So, I try good (bad?) old Win3.1. All DOS gives me the same results here. The initial file copy completes, then crashes to dos instead of starting windows. Windows can be started manually in the same way as before. The initial configuration is ok, it asks for a disk this time (I point it to the dir on the hdd), and eventually it GPF at the same segment but a different offset this time after the files are copied.
One difference: It complains about the mismatching of "system files", which I guess means that it doesn't like the OS/2 windows files as much as WFW3.11 did.
I want to stress that the crash addresses are not random occurrences; they are repeatable and deterministic. Only once in the whole night did I have an unexplainable GPF while doing all these installations, which is about in line with windows' track record anyway... :)
So, I hope this feedback helps somehow, please let me know if you have any more questions. I would like to be able to fully install WFW3.11 under dosemu, and if the bugs can be worked out, I'll create a HTML walkthrough with screenshots.
See ya,
Signature · 1 line
Ryan Underwood, <nemesis at icequake.net>, icq=10317253
One other thing to mention: if the installation is aborted by selecting an "Exit installation" or whatever button in the windows portion of the setup; upon returning to DOS, there is some sort of fatal memory error in only FreeDOS (DR-DOS and MSDOS are fine):
Invalid Opcode at 7272 E8DF 3293 EC83 0397 0A7E 7400 BE05 0001 02EB F631 CE81 10A2
I suppose this is a bug in FreeDOS but I thought it would be worth a mention anyhow. Again, like the GPF errors, this always remains the same, as long as you are using the same version of windows to test it.
Signature · 1 line
Ryan Underwood, <nemesis at icequake.net>, icq=10317253
Quoted 11 lines · Ryan Underwood
One other thing to mention: if the installation is aborted by selecting an "Exit installation" or whatever button in the windows portion of the setup; upon returning to DOS, there is some sort of fatal memory error in only FreeDOS (DR-DOS and MSDOS are fine):
Invalid Opcode at 7272 E8DF 3293 EC83 0397 0A7E 7400 BE05 0001 02EB F631 CE81 10A2
I suppose this is a bug in FreeDOS but I thought it would be worth a mention anyhow. Again, like the GPF errors, this always remains the same, as long as you are using the same version of windows to test it.
I sometimes forget that not everyone knows (because in the FreeDOS lists this topic comes up again and again without people checking the archives), but Windows 3.x is known not to work on FreeDOS. It just requires too much "undocumented DOS" that nobody bothered to implement so far.
The problems with \system\... are probably caused by comcom? If you use freecom instead they should disappear.
As for what Stas was referring to, I guess it was an existing Windows 3.x in native DOS.
As for myself, I don't own Win 3.x so I can't even say anything really useful at all.
Bart
Ryan -
To give you hope I have seen win95 at least once installed and run via dosemu. It was on a pre-0.9x release. don't ask , dus idon't remeber how it was done :(
Evan
Quoted 91 lines · On Sat, 20 Sep 2003 07:35:58 -0500 Ryan Underwood <[email protected]>…
Hi,
So, armed with a fresh copy of DOSEMU 1.1.5.7 and quite happy with the changelog entry referring to windows, I set out to create a fresh win3.1 setup on my machine to help with hacking WINE.
I have a kernel 2.4.23-pre4 and running Debian.
I tried both the WFW3.11 and the plain Win3.1. For each of these, I took the gdi.exe, user,exe, krnl386.exe, and mouse.drv from OS/2's windows, compressed them (-> .ex_), and replaced the original files with the OS/2 versions that use DPMI instead of blasted VCPI.
I put all of the windows installation disks into a single directory, lredir'd from the file system.
I attempted the install with each of FreeDOS (kernel 1.1.28), DR-DOS 7.04, and MS-DOS 6.22 running under DOSEMU. Each time I attempt to install on D:\windows which is lredir'd to a dir under my home directory.
Here are the results and some notes:
WFW3.11
-------
FreeDOS: Completes the initial file copy in DOS. When it would go to start windows to go to the next part of the installation, it crashes to a dos prompt instead, sitting in D:\windows. From there, one can issue .\system\krnl386.exe to start windows. (Just \system\krnl386.exe doesn't work; '\system' seems to be reserved to FreeDOS somehow.) However, when windows starts, it complains about not being installed all the way and refuses to go further. Through trial and error, I discovered that issuing '.\system\krnl386.exe /?' somehow bypasses this and gets one into the installation.The installation is straightforward for the first part. When it actually goes to copy some files, you must have a disk in the A:
drive for some reason, or you will get an A.R.F error on screen, and be unable to continue the session (close dosemu). I tried to redirect the floppy to/dev/nullor/dev/zero, but then after the file copy, the installer would have a GPF and hang the DOSEMU session.. Putting a diskette in the A: drive for its "probe" gets us past the file copy... and then the session hangs with some corrupted video. :( The mouse can still be moved around (you see the windows mouse moving) so the DOSEMU isn't completely hung-up, but windows doesn't want to do anything more.DR-DOS/MS-DOS: Both of these end up the same way, so I'll put them together. Everything is exactly the same up until this point as FreeDOS except the '.\system' thing. Both of these DOS manage to complete the file copy and move on to the printer setup, and afterwards the network configuration. However, after the network configuration, both of them crash with the same GPF: WINSETUP.EXE caused a GPF in WINSETUP.EXE at 0001:113b. The address is the same
_everytime_the installation is attempted.If I quit the dosemu session and attempt to resume the already half-completely installation, it is no use; it still crashes in the same spot after the network setup.
Ok, so I give up on WFW3.11. Perhaps the networking portion is giving the dosemu some trouble. So, I try good (bad?) old Win3.1. All DOS gives me the same results here. The initial file copy completes, then crashes to dos instead of starting windows. Windows can be started manually in the same way as before. The initial configuration is ok, it asks for a disk this time (I point it to the dir on the hdd), and eventually it GPF at the same segment but a different offset this time after the files are copied.
One difference: It complains about the mismatching of "system files", which I guess means that it doesn't like the OS/2 windows files as much as WFW3.11 did.
I want to stress that the crash addresses are not random occurrences; they are repeatable and deterministic. Only once in the whole night did I have an unexplainable GPF while doing all these installations, which is about in line with windows' track record anyway... :)
So, I hope this feedback helps somehow, please let me know if you have any more questions. I would like to be able to fully install WFW3.11 under dosemu, and if the bugs can be worked out, I'll create a HTML walkthrough with screenshots.
See ya,
Signature · 5 lines
Ryan Underwood, <nemesis at icequake.net>, icq=10317253 - To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Hey,
Quoted 2 lines · Barnowl
Ryan -
To give you hope I have seen win95 at least once installed and run via dosemu. It was on a pre-0.9x release. don't ask , dus idon't remeber how it was done :(
Win95? With graphical desktop, or the command prompt only? I thought the Win95 kernel is a VCPI client, in which case without some heavy patching, I don't know how it would possibly work without a virtualization or emulation of some sort. If you are talking about the Win95 DOS, I know that works with no problem... :)
Signature · 1 line
Ryan Underwood, <nemesis at icequake.net>, icq=10317253
Ryan-
it was the GUI. what kind of magic was need I do not know. The fellow that did it was a one of those crackpot programers that liked to recode their Bios so they could over clock the CPU's better. Last I heard he and 3 others where hired by a company that built a branch office in the City they lived in because they did not want to move. So, it is very possible he did do some heavy patching.
Evan
Quoted 20 lines · On Sun, 21 Sep 2003 00:45:59 -0500 Ryan Underwood <[email protected]>…
Hey,
Quoted 2 lines · Barnowl
Ryan -
To give you hope I have seen win95 at least once installed and run via dosemu. It was on a pre-0.9x release. don't ask , dus idon't remeber how it was done :(Win95? With graphical desktop, or the command prompt only? I thought the Win95 kernel is a VCPI client, in which case without some heavy patching, I don't know how it would possibly work without a virtualization or emulation of some sort. If you are talking about the Win95 DOS, I know that works with no problem... :)
Signature · 5 lines
Ryan Underwood, <nemesis at icequake.net>, icq=10317253 - To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi Evan,
Quoted 7 lines · Barnowl
Ryan-
it was the GUI. what kind of magic was need I do not know. The fellow that did it was a one of those crackpot programers that liked to recode their Bios so they could over clock the CPU's better. Last I heard he and 3 others where hired by a company that built a branch office in the City they lived in because they did not want to move. So, it is very possible he did do some heavy patching.
Too bad they did not provide details of what was done -- that would be an extremely interesting hack. Let us know if you ever hear from him again! :)
Signature · 1 line
Ryan Underwood, <nemesis at icequake.net>, icq=10317253