Author Topic: USB pendrive on OS2 4.52 VBox guest  (Read 11540 times)

Pete

  • Hero Member
  • *****
  • Thank You
  • -Given: 1
  • -Receive: 38
  • Posts: 895
    • View Profile
Re: USB pendrive on OS2 4.52 VBox guest
« Reply #45 on: December 17, 2018, 09:57:59 pm »
Hi All

@Lars - I fully agree with your points; especially the "not confuse" bit  :-)

@mauro - I guess it is possible that GETDESC.DLL cannot find a support dll that it requires. I suggest you download and install pmdll http://hobbes.nmsu.edu/download/pub/os2/util/system/pmdll-2.12.zip

Create a program object for pmdll and then drag'n'drop the usbcfg.exe onto the pmdll object. That will show if there is a problem with any support dll file(s).


Regards

Pete

mauro

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 3
  • Posts: 224
    • View Profile
Re: USB pendrive on OS2 4.52 VBox guest
« Reply #46 on: December 18, 2018, 06:57:03 am »

If you want USB Mouse/Keyboard add this line:-

BASEDEV=USBHID.SYS

(If using as a guest in VBox you may not need the above line)

Hi Pete,
this is not sufficient for native USB keyboard and mouse support.

But in any case, in order to keep things simple and to not confuse Mauro any further, I strongly recommend to NOT specify any HID drivers (USBHID.SYs, USBKBD.SYS, USBMOUSE.SYS) at all. That's because for the guest, VBOX properly emulates a PS/2 keyboard and PS/2 mouse, no matter what physical keyboard and mouse HW you use.
In short: you need no USB drivers in the guest to have keyboard and mouse support in VBOX.

Lars
ok, clear.
Thanks

Lars

  • Sr. Member
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 45
  • Posts: 497
    • View Profile
Re: USB pendrive on OS2 4.52 VBox guest
« Reply #47 on: December 18, 2018, 09:07:11 am »
about GETDESC.DLL:

this DLL uses these additional DLLs:
OS2OM30.DLL
SOM.DLL
DOSCALL1.DLL
KBDCALLS.DLL
NLS.DLL
MSG.DLL
SESMGR.DLL


The last 5 DLLs should all be in the \OS2\DLL directory. SOM.DLL can be a bit tricky. You should use the one in \OS2\DLL as this is the most up-to-date (there are compilers/toolkits that tend to supersede this file with their own which is a bad idea).

OS2OM30.DLL should also be in \OS2\DLL.

A word of warning regarding DOSCALL1.DLL: it has to match the kernel that you are using. The version for the W4 kernel is DIFFERENT from the version for the SMP kernel. Normally (fixpak etc.) you will get the kernel and the corresponding DOSCALL1.DLL as a matched set so normally you will not need to worry. But if you replace the kernel, you should be aware of that.

For GETDESC.DLL, at least on my system, this file is located in \ECS\DLL and not in \OS2\DLL (I am still using eCS).


Lars
« Last Edit: December 18, 2018, 09:09:30 am by Lars »

André Heldoorn

  • Hero Member
  • *****
  • Thank You
  • -Given: 119
  • -Receive: 19
  • Posts: 787
    • View Profile
Re: USB pendrive on OS2 4.52 VBox guest
« Reply #48 on: December 18, 2018, 05:08:21 pm »
For GETDESC.DLL, at least on my system, this file is located in \ECS\DLL and not in \OS2\DLL (I am still using eCS).

Or in the directory of USBcfg. Which is identical to the eCS one, at least with eCS 1.2.

mauro

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 3
  • Posts: 224
    • View Profile
Re: USB pendrive on OS2 4.52 VBox guest
« Reply #49 on: December 18, 2018, 08:00:06 pm »
about GETDESC.DLL:

this DLL uses these additional DLLs:
OS2OM30.DLL
SOM.DLL
DOSCALL1.DLL
KBDCALLS.DLL
NLS.DLL
MSG.DLL
SESMGR.DLL


The last 5 DLLs should all be in the \OS2\DLL directory. SOM.DLL can be a bit tricky. You should use the one in \OS2\DLL as this is the most up-to-date (there are compilers/toolkits that tend to supersede this file with their own which is a bad idea).

OS2OM30.DLL should also be in \OS2\DLL.

A word of warning regarding DOSCALL1.DLL: it has to match the kernel that you are using. The version for the W4 kernel is DIFFERENT from the version for the SMP kernel. Normally (fixpak etc.) you will get the kernel and the corresponding DOSCALL1.DLL as a matched set so normally you will not need to worry. But if you replace the kernel, you should be aware of that.

For GETDESC.DLL, at least on my system, this file is located in \ECS\DLL and not in \OS2\DLL (I am still using eCS).


Lars

Hi Lars, I have all of those DLL present together with GETDESC.DLL in OS2\DLL directory

mauro

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 3
  • Posts: 224
    • View Profile
Re: USB pendrive on OS2 4.52 VBox guest
« Reply #50 on: December 18, 2018, 08:38:31 pm »
Hi All

@Lars - I fully agree with your points; especially the "not confuse" bit  :-)

@mauro - I guess it is possible that GETDESC.DLL cannot find a support dll that it requires. I suggest you download and install pmdll http://hobbes.nmsu.edu/download/pub/os2/util/system/pmdll-2.12.zip

Create a program object for pmdll and then drag'n'drop the usbcfg.exe onto the pmdll object. That will show if there is a problem with any support dll file(s).


Regards

Pete

Hi Pete, here below you find the pmdll output screenshot




Pete

  • Hero Member
  • *****
  • Thank You
  • -Given: 1
  • -Receive: 38
  • Posts: 895
    • View Profile
Re: USB pendrive on OS2 4.52 VBox guest
« Reply #51 on: December 18, 2018, 08:53:49 pm »
Hi mauro

Well, does not look like a problem with GETDESC.DLL finding support files.

What is the output of pmdll when you try usbcfg.exe ?


Regards

Pete

mauro

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 3
  • Posts: 224
    • View Profile
Re: USB pendrive on OS2 4.52 VBox guest
« Reply #52 on: December 18, 2018, 08:57:49 pm »
Quote
Hi Doug, a shadow copy of Vboxservice.exe is in the Startup folder (OS2 system folder), not in STARTUP.CMD

The instructions say to put it in STARTUP.CMD. I never even thought about trying that in the Startup folder. It may be starting too late, or not even running.

Doug, I created a startup.cmd file with written as :

rem VBox Additions ring3 service
start /n VBoxService.exe
EXIT

and removed the shadow copy of VBoxService.exe from the Startup folder

it acts exactly as having a shadow copy of VBoxService.exe in the Startup folder , same Vbox Guest Additions loading, same opening situation, same system behaviour.

mauro

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 3
  • Posts: 224
    • View Profile
Re: USB pendrive on OS2 4.52 VBox guest
« Reply #53 on: December 18, 2018, 09:00:08 pm »
Hi mauro

Well, does not look like a problem with GETDESC.DLL finding support files.

What is the output of pmdll when you try usbcfg.exe ?


Regards

Pete

sorry Pete, what I should exactly do for such test?

mauro

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 3
  • Posts: 224
    • View Profile
Re: USB pendrive on OS2 4.52 VBox guest
« Reply #54 on: December 18, 2018, 09:41:35 pm »

If you want USB Mouse/Keyboard add this line:-

BASEDEV=USBHID.SYS

(If using as a guest in VBox you may not need the above line)

Hi Pete,
this is not sufficient for native USB keyboard and mouse support.

But in any case, in order to keep things simple and to not confuse Mauro any further, I strongly recommend to NOT specify any HID drivers (USBHID.SYs, USBKBD.SYS, USBMOUSE.SYS) at all. That's because for the guest, VBOX properly emulates a PS/2 keyboard and PS/2 mouse, no matter what physical keyboard and mouse HW you use.
In short: you need no USB drivers in the guest to have keyboard and mouse support in VBOX.

Lars
Pete and Lars, my config.sys lines now (following your indications) are:
REM BASEDEV=USBUHCD.SYS
BASEDEV=USBOHCD.SYS
BASEDEV=USBEHCD.SYS
BASEDEV=USBD.SYS
REM BASEDEV=USBHID.SYS
BASEDEV=USBMSD.ADD
BASEDEV=USBCDROM.ADD  /CDS:1
BASEDEV= USBMSD.ADD /REMOVABLES:8 /FLOPPIES:0
REM DEVICE=C:\OS2\BOOT\USBKBD.SYS
REM DEVICE=C:\OS2\apps\AMOUSE\AMOUSE.SYS
REM DEVICE=C:\OS2\BOOT\USBMOUSE.SYS
REM DEVICE=C:\OS2\BOOT\USBCOM.SYS

then at startup I'm getting the following situation -see pictures

1 a warning tells that volume D device is not ready - have to twiceclick "Return Error code to program" before screen clears-

2 devices from A to H appeared (they were A to E in the initial situation with no config.sys mods), of which now ABDFG when called give same "device not ready" warning,  H (Vbox shared folder) is empty as it should be, E is the CD/DVD/ISO volume for VBox assumption (use to be D)

3 screenshot of the actual Hardware Resources detected.

Thank you

Lars

  • Sr. Member
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 45
  • Posts: 497
    • View Profile
Re: USB pendrive on OS2 4.52 VBox guest
« Reply #55 on: December 18, 2018, 09:58:16 pm »
Do not load USBMSD.ADD twice !

Pete

  • Hero Member
  • *****
  • Thank You
  • -Given: 1
  • -Receive: 38
  • Posts: 895
    • View Profile
Re: USB pendrive on OS2 4.52 VBox guest
« Reply #56 on: December 19, 2018, 12:51:33 am »
Hi mauro

Either drag'n'drop the file usbcfg.exe onto the pmdll program object or start pmdll and then select usbcfg.exe as the executable to load.


Regards

Pete

mauro

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 3
  • Posts: 224
    • View Profile
Re: USB pendrive on OS2 4.52 VBox guest
« Reply #57 on: December 19, 2018, 06:58:12 am »
Do not load USBMSD.ADD twice !

as Pete wrote: " If you want USB drive and CD support add these lines:-

BASEDEV=USBMSD.ADD
BASEDEV=USBCDROM.ADD /CDS:1
BASEDEV= USBMSD.ADD /REMOVABLES:8 /FLOPPIES:0 "
 
which of the two should be deleted ?

Lars

  • Sr. Member
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 45
  • Posts: 497
    • View Profile
Re: USB pendrive on OS2 4.52 VBox guest
« Reply #58 on: December 19, 2018, 07:31:40 am »
delete these 3 lines and replace with:

BASEDEV=USBMSD.ADD /REMOVABLES:8 /FLOPPIES:0 /CDS:1
That'll get you up to 8 USB sticks/disks, up to 1 USB CD-ROM drive and up to zero USB floppy drives.

USBCDROM.ADD is completely bogus (but it won't hurt if you load it …)

David Graser

  • Hero Member
  • *****
  • Thank You
  • -Given: 0
  • -Receive: 67
  • Posts: 567
    • View Profile
Re: USB pendrive on OS2 4.52 VBox guest
« Reply #59 on: December 19, 2018, 07:43:43 am »
Hi mauro

Either drag'n'drop the file usbcfg.exe onto the pmdll program object or start pmdll and then select usbcfg.exe as the executable to load.


Regards

Pete

Whatsthedot works better than PMDLL.

http://hobbes.nmsu.edu/download/pub/os2/util/system/whatisthedot12.zip