home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / patches / geoworks / geoptch2.doc next >
Text File  |  1992-08-21  |  12KB  |  255 lines

  1. -----------------------------
  2. Original patch as posted
  3. -----------------------------
  4.  
  5.  
  6. Patch for GeoWorks (and America Online) to Run Under OS/2 2.0
  7. Discovered by Marcus Groeber
  8. Transcribed from Prodigy by Timothy F. Sipples
  9. July 11, 1992
  10.  
  11. [This patch is not officially supported by the developers of GeoWorks.]
  12.  
  13. The following patch will make GeoWorks Version 1.2 and Pro work in a DOS 
  14. session of OS/2 2.0 (doesn't have to be a specific DOS VDM).  It 
  15. disables disk drives A and B and makes PC/Geos believe it is running on 
  16. a "diskless" workstation with only networked partitions (which comes 
  17. closest to OS/2 in reality).
  18.  
  19. Before applying the patch you should backup your KERNEL.EXE so you can 
  20. restore it if there are any problems.  (You will need it anyway for 
  21. working under native DOS because the patch seems to be somehow unstable 
  22. there.)
  23.  
  24. Of course, I cannot guarantee that the patch will work on any particular 
  25. configuration, but it does work fine on my machine.
  26.  
  27. To apply the patch you will have to do the following.  Copy the 
  28. following text between "Cut here" and "Cut here" to an ASCII file (say, 
  29. GEOWORKS.PAT).  Then go to the GeoWorks directory and enter the command 
  30. PATCH /A GEOWORKS.PAT.  This will use OS/2's built-in patch tool to 
  31. check the version of KERNEL.EXE and make the appropriate modifications.
  32.  
  33. The patch is highly version specific and will only work on two versions 
  34. named in the file.  (The release can be determined by looking into the 
  35. SYSINFO file.)  These are the current ones in Germany; if there are any 
  36. other (recent) versions, please drop me [Marcus Groeber, on America 
  37. Online, presumably] a note.
  38.  
  39. If the program doesn't recognize the kernel version you will get two 
  40. failure messages (one for each try), otherwise one failure and one 
  41. success.  If the program fails on both tries, KERNEL.EXE will not be 
  42. modified.
  43.  
  44. --- Cut here ---
  45.   Patch file by Marcus Groeber
  46. .   This patch file changes the KERNEL.EXE file of PC/Geos to
  47.   make it run in a DOS session under OS/2.  The program
  48.   attempts patches for the various versions of GeoWorks; it
  49.   will not apply a patch if the version is not recognized.
  50.   It will display either a success or a failure message for
  51.   each version it tries.
  52. .   Geoworks 1.2: KERNEL.EXE (Release 1.2.5.4, 72688 bytes)
  53. FILE kernel.exe
  54.  
  55. VER 00010E0D E9CA
  56. VER 00010E1D 268B4543F6C43075
  57.  
  58. CHA 00010E0D EB0B
  59. CHA 00010E1D 81FB48027244EB4C
  60. --- Cut here ---
  61.  
  62. If the patch works you will have to change the GeoWorks mouse driver to 
  63. MOUSE.COM/MOUSE.SYS from within GeoWorks.  Anyway, you should run 
  64. GeoWorks only in a full screen session.  Printing seems to work OK 
  65. except for the fact that you have to leave GeoWorks to make OS/2 flush 
  66. its internal spool queue to the printer.
  67.  
  68. Incidently, for diagnosing GeoWorks startup problems it is a good idea 
  69. to run it with the /LOG option to display all the initialization steps 
  70. as they are performed.
  71.  
  72. It is necessary to change the DOS settings in the DOS session part of 
  73. the OS/2 configuration like so:
  74.  
  75. Program/Path & Filename          C:\Geos\Kernel.Exe
  76.                                  (Change as appropriate.)
  77.  
  78. Session                          DOS/Full Screen
  79.  
  80. DOS Settings:
  81.  
  82. DOS_FCBS                         1
  83.  
  84. DOS_FCBS_KEEP                    0
  85.  
  86. DOS_FILES                        150
  87.  
  88. DOS_HIGH                         ON
  89.  
  90. DOS_VERSION                      add KERNEL.EXE,05,00,255
  91.  
  92. EMS_FRAME_LOCATION               AUTO
  93.  
  94. VIDEO_SWITCH_NOTIFICATION        ON  (should not make much difference)
  95.  
  96.  
  97. I have run the patch on my system and set the DOS settings as above and 
  98. it works!  Good luck everyone who tries it and DON'T FORGET TO MAKE A 
  99. COPY OF KERNEL.EXE!
  100.  
  101. [Via Dan (HondaCivic on America Online)]
  102.  
  103.  
  104.  
  105.  
  106.  
  107. -------------------------------------------------
  108.  
  109. Follow up comments and expansion as posted
  110.  
  111.  
  112. -------------------------------------------------
  113. Subj:  Groeber's Patch comments
  114. Date:  92-07-08 19:11:11 EDT
  115. From:  AaronB6
  116.  
  117. The patch didn't work for me, as my kernel was a different release. However, I looked through the file
  118. and got the right data for my release and added that to the patch file, re-ran the patch, and all went
  119. well.
  120.  
  121. After patching you can rename the patched kernel to OS2KERN.EXE and use an OS/2 DOS window to
  122. launch GeoWorks directly.  Also copy the backup kernel back to KERNEL.EXE and you can run
  123. GeoWorks under plain DOS with no problem.
  124.  
  125. Possible problems:
  126.   You MUST give the DOS window 100 or more files, as if you were running DR-DOS.  GeoWorks
  127. cannot dynamically allocate any files under OS/2.
  128.   When exiting GEOS I get a "Bad handle passed to system" error.  I can then close the window from
  129. OS/2, and all is fine.
  130.   When I was first testing this config. I had some weird problems with lockups.  Experiment with the
  131. OS/2 DOS Settings to get things working.
  132.  
  133. Here is my addition to the patch info: (the release # is in the SYSINFO file)
  134. ------------cut here---------------
  135. ;       Geoworks Pro: kernel.exe (Release 1.2.4.3, 72720 bytes)                 
  136. FILE kernel.exe                                                                 
  137.                                                                                 
  138. VER 00010DE2 E9C5                                                               
  139. VER 00010DF2 268B4543F6C43075                                                   
  140.                                                                                 
  141. CHA 00010DE2 EB0B                                                               
  142. CHA 00010DF2 81FB48027244EB4C                                                   
  143. ------------cut here---------------
  144.  
  145. I'm not running OS/2 right now, so I'll post my OS/2 DOS Settings later when I can find out what they
  146. are.  (Incidentally, I end up with more GEOS memory under OS/2 than under DOS/QEMM.)
  147.  
  148. Subj:  Groeber Patch comments
  149. Date:  92-07-09 00:27:10 EDT
  150. From:  AaronB6
  151.  
  152. These are the settings I use with Marcus Groeber's patch to run GeoWorks under OS/2.
  153.  
  154. -------------------------------------------------------------
  155. Program/Path & filename - C:\GEOS\OS2KERN.EXE   (Path to patched kernel)
  156. Session - DOS/Full Screen             (must set AFTER setting above - OS/2 quirk)
  157. DOS Settings:
  158. DOS_FCBS                              1
  159. DOS_FCBS_KEEP                      0
  160. DOS_FILES                              150        (Need at least 100; 150 is better)
  161. DOS_HIGH                                On         (gives GeoWorks more memory)
  162. DOS_LASTDRIVE                        F           (1 MORE than last drive!!!!!)
  163. DOS_UMB                                 On
  164. DOS_VERSION                           add OS2KERN.EXE,05,00,255  (so GeoWorks will run)
  165. EMS_FRAME_LOCATION               CC00            (on my computer - AUTO should work)
  166. MEM_INCLUDE_REGIONS              b0000-b7fff,dc000-effff  (on my computer)
  167.                                               (Mono video page, other free areas for UMB's)
  168. VIDEO_SWITCH_NOTIFICATION       On                (Shouldn't make much difference)
  169. -----------------------------------------------------------------
  170.  
  171. P.S.  I'm currently running under OS/2 and the modem is running MUCH slower.  I'll have to work on
  172. getting the serial port up to speed.
  173.  
  174. Subj:  GeoWorks Engineer comments
  175. Date:  92-07-09 09:31:18 EDT
  176. From:  GWRep MK
  177.  
  178. I have sent the messages from this area up to the GeoWorks Engineers and have received back the
  179. following comments:
  180. >>>>>>>>>>>
  181. One thing Marcus neglected to mention is that you must, when setting up the object in the workplace
  182. shell, go into the dos settings and add KERNEL.EXE,255,3,30 to the DOS_VERSION setting. I believe
  183. those are the correct values. The intent is to get OS/2 to tell KERNEL.EXE up to 255 times that it's
  184. running under DOS 3.30, rather than the DOS 20.0 OS/2 will tell it by default. Without this, PC/GEOS
  185. will complain that it needs to run under a DOS between 2.x and 5.0
  186. >>>>>>>>>>
  187. 1.2.4.3 is the initial 1.2 release, not Pro (which is 1.2.8.1). Anyway, the only other thing of note (not
  188. particularly worrisome with OS/2 just a Ctrl+Esc away), is that geos won't be able to reload itself after
  189. running a DOS program, nor will it be able to restart itself after changing something in preferences with
  190. the kernel renamed to be OS2KERN.EXE (of course, he can also patch the kernel.exe string he'll find
  191. early in the load image to match, except he'll have to call it OS2KER.EXE, to keep the number of
  192. characters the same).
  193.  
  194. Subj:  Re: GeoWorks Engineer comments
  195. Date:  92-07-12 15:17:09 EDT
  196. From:  AaronB6
  197.  
  198. The line in the DOS_VERSION area should be:
  199. KERNEL.EXE,05,00,255
  200. (filename,DOS 5.00,report 255 times)
  201.  
  202. You're right about release 1.2.4.3 not being Pro.  I had installed Pro over 1.2 and apparently the setup
  203. program DID NOT replace the kernel.exe file!!!!!
  204.  
  205. and, yes, with the patched kernel renamed to OS2KERN.EXE GeoWorks won't reload after a change in
  206. preferences.  You will be returned to DOS if you ran the patched kernel from the command line or to
  207. the OS/2 desktop if you ran it via an icon.  In the first case, just run the kernel again.  In the second
  208. case, just run the icon again.
  209.  
  210. Subj:  re: Patch Now Works
  211. Date:  92-07-12 15:22:08 EDT
  212. From:  AaronB6
  213.  
  214. HondaCivic:
  215.    I assume your mouse is a serial mouse on COM1 and your modem is on COM2?
  216. I had my system setup that way and had the same problem.  The problem is that OS/2 disables the
  217. COM port the mouse is on by putting 0000 in the bios data area for that COM port.  When GeoWorks
  218. sees you don't have a COM1 it doesn't allow you to use COM2.  I got around that by changing my
  219. COM2 to COM4 (address 2e8, interrupt 3.)  Another way would be to put the mouse on COM2 and the
  220. modem on COM1.  (I didn't do this because I have a 16550 UART for the modem that must be either
  221. COM2 or COM4).
  222.  
  223. Subj:  Success!  :-)
  224. Date:  92-07-16 02:16:23 EDT
  225. From:  Chuckscard
  226.  
  227. Well I persevered and I got GEOS up and running!
  228. I tried to follow the tips but due to poor process control ;-) I must have gotten
  229. something messed up.  Well I started over, copying a full screen dos prompt with a completely clean
  230. set of settings. I named the patched kernel as
  231. OS2KERN.EXE, placed it in the program setting. I reset the DOS_Version to
  232. OS2KERN.EXE,5,00,255.  I reset last drive to D.  (First time I had it on Z and got
  233. what I take to be the symbol for 24 drives from a network!) The geos.ini I used
  234. had no memory mgmt so I still have some playing to do. Also, I can't get AOL
  235. up-I get an error message that PCAOHELP.VM is missing.  My logitech mouse
  236. did not work either but changing preferences to the generic mouses.com fixed
  237. that. I also went down the blind alley of booting from a DRDOS6 disk image-I got as far as a fatal
  238. missing welcome.geo file. No dice on that method.
  239.   
  240.  
  241. Charlie Rath
  242. A happy GeoUser who's OS/2ing it!
  243.  
  244. Subj:  AOL under OS/2
  245. Date:  92-07-20 23:45:45 EDT
  246. From:  AaronB6
  247.  
  248. I'm using AOL under OS/2.  The important points to remember are:
  249.  
  250. 1-If you have your mouse on COM1 and your modem on COM2, GeoWorks will not see COM2 and you
  251. can't use the modem.  Either exchange the mouse and modem, or set the second serial port to COM4.
  252.  
  253. 2-Set IDLE_SENSITIVITY to 100 (disable the idle detection) for GeoWorks in the DOS settings.  This
  254. will speed up AOL.  (If you don't do this, OS/2 will think GeoWorks is looking for keyboard input and not
  255. doing anything else and AOL will slow to a crawl.)