OS2 World Community Forum

OS/2, eCS & ArcaOS - Technical => Setup & Installation => Topic started by: karotlopj on June 14, 2017, 11:54:06 pm

Title: USB support in original CP2 CD
Post by: karotlopj on June 14, 2017, 11:54:06 pm
I've been installing OS/2 CP2 (4.52) over the last couple of days to try and get up to speed. I had forgotten that it came with USB drivers and that by default they are commented out in CONFIG.SYS, I've just uncommented all eight of them but have no idea what to expect. What can I do with these drivers? ... I can't seem to read a small USB stick.

I know there are updated drivers available, I just wondered if the original ones actually did anything?
Title: Re: USB support in original CP2 CD
Post by: Martin Iturbide on June 15, 2017, 12:31:09 am
Hi

As far as I know the original driver worked.  The ones that Lar's made are updated and supported (by Lars) but it is good to know what device you want to use. Remember that only USB 1.1 and 2.0 is supported, we still do not have any kind of 3.x support.

Regards
Title: Re: USB support in original CP2 CD
Post by: Pete on June 15, 2017, 03:11:28 am
Hi John

Can I suggest the use of USBcfg, a visual USB configuration tool with help files including preparing usb drives for use with OS/2 available in zip and warpin packages http://hobbes.nmsu.edu/h-search.php?key=usbcfg&pushbutton=Search


Regards

Pete
Title: Re: USB support in original CP2 CD
Post by: Paolo_Ricardo on June 15, 2017, 04:44:43 am
Can I suggest the use of USBcfg, a visual USB configuration tool with help files including preparing usb drives for use with OS/2 available in zip and warpin packages http://hobbes.nmsu.edu/h-search.php?key=usbcfg&pushbutton=Search
Sorry to jump in - I tried downloading USBcfg but I was asked for a user name and password - this hasn't happened before. Has there been a change?

Paul
Title: Re: USB support in original CP2 CD
Post by: Dave Yeo on June 15, 2017, 07:25:55 am
Use HTTP or user anonymous, password email address.
Title: Re: USB support in original CP2 CD
Post by: Paolo_Ricardo on June 15, 2017, 07:46:56 am
Dave
Use HTTP or user anonymous, password email address.

Thanks, the anonymous worked fine.

Paul
Title: Re: USB support in original CP2 CD
Post by: karotlopj on June 15, 2017, 10:42:53 am
Hi

As far as I know the original driver worked. 
Regards

Hi Martin,

What I'm trying to do is install CP2 on a ThinkPad T41 without the aid of any floppiies. I can the OS itself but there is no NIC driver so it's a standalone system. If I could get the USB drivers working I could add the required drivers via a USB stick, but I can't get it working. Maybe the drivers need specific parameters... If anyone knows how to get them working, I'd appeciate it.
Title: Re: USB support in original CP2 CD
Post by: ak120 on June 15, 2017, 10:58:36 am
I've been installing OS/2 CP2 (4.52) over the last couple of days to try and get up to speed. I had forgotten that it came with USB drivers and that by default they are commented out in CONFIG.SYS, I've just uncommented all eight of them but have no idea what to expect. What can I do with these drivers? ... I can't seem to read a small USB stick.

I know there are updated drivers available, I just wondered if the original ones actually did anything?

You should have something like this in your CONFIG.SYS file.
Code: [Select]
REM BASEDEV=USBUHCD.SYS
REM BASEDEV=USBD.SYS /REQ:USBUHCD$
REM BASEDEV=USBMSD.ADD

It only offers USB 1.1 capabilities, but it should be enough for small file transfers from USB storage devices that are not too large as long they are prepared for OS/2 LVM usage.

You should replace it with this section:
Code: [Select]
BASEDEV=USBUHCD.SYS
BASEDEV=USBUHCD.SYS
BASEDEV=USBUHCD.SYS
BASEDEV=USBD.SYS /REQ:USBUHCD$
BASEDEV=USBMSD.ADD /FLOPPIES:0 /REMOVABLES:4
Title: Re: USB support in original CP2 CD
Post by: karotlopj on June 15, 2017, 04:46:48 pm

You should have something like this in your CONFIG.SYS file.
Code: [Select]
REM BASEDEV=USBUHCD.SYS
REM BASEDEV=USBD.SYS /REQ:USBUHCD$
REM BASEDEV=USBMSD.ADD

It only offers USB 1.1 capabilities, but it should be enough for small file transfers from USB storage devices that are not too large as long they are prepared for OS/2 LVM usage.

You should replace it with this section:
Code: [Select]
BASEDEV=USBUHCD.SYS
BASEDEV=USBUHCD.SYS
BASEDEV=USBUHCD.SYS
BASEDEV=USBD.SYS /REQ:USBUHCD$
BASEDEV=USBMSD.ADD /FLOPPIES:0 /REMOVABLES:4

I have entered this into my CONFIG.SYS, but my 128MB FAT formatted USB stick (the smallest I could find) does not show up in the drives folder, even after clicking on Refresh Removable media. Not sure what you mean by 'being prepared for OS/2 LVM usage'..
Title: Re: USB support in original CP2 CD
Post by: Ian Manners on June 15, 2017, 06:52:33 pm
Hi John,

Use hcimonit in your x:\os2\boot directory, this program will tell you what your chipset is.

The following is what I have.

Quote
[C:\os2\boot]hcimonit
You have 4 PCI USB UHCI host controller(s)
You have 1 PCI USB EHCI host controller(s)

[C:\os2\boot]

Take note of the host controller type, UH, OH, EH
EHCI is for USB v2.xx so it should come after the v1.xx drivers.

In my config.sys file I have (for the above controllers)

Quote
REM BASEDEV=USBUHCD.SYS     (one copy of this statement for each UHCI controller reported by HCIMONIT)
REM BASEDEV=USBOHCD.SYS     (one copy of this statement for each OHCI controller reported by HCIMONIT)
REM BASEDEV=USBEHCD.SYS     (one copy of this statement for each EHCI controller reported by HCIMONIT)
REM USBEHCD.SYS must be placed AFTER USBUHCD.SYS and USBOHCD.SYS
REM BASEDEV=USBOHCD.SYS /FS
BASEDEV=USBUHCD.SYS
BASEDEV=USBUHCD.SYS
BASEDEV=USBUHCD.SYS
BASEDEV=USBUHCD.SYS
BASEDEV=USBEHCD.SYS
BASEDEV=USBD.SYS
BASEDEV=USBHID.SYS
BASEDEV=USBMSD.ADD /FLOPPIES:1 /REMOVABLES:4
DEVICE=C:\OS2\BOOT\USBMOUSE.SYS
DEVICE=C:\OS2\BOOT\USBPRT.SYS
DEVICE=C:\OS2\BOOT\USBRESMG.SYS

USB works well on your model laptop as well as R41 and R61's
Note "BASEDEV=USBMSD.ADD /FLOPPIES:1 /REMOVABLES:4"

/FLOPPIES:1   is for reading from my usb stick
/REMOVABLES:4 is for my card reader which has 4 sockets.
Defaults are probably fine but I've got those defaults there, well, just because they have been there for um, decades :)
Title: Re: USB support in original CP2 CD
Post by: ivan on June 15, 2017, 06:55:14 pm
Hi John,

A couple of points.
You should be able to get a wired network working without too much problem - it requires the E1000.nif and E1000.os2 which you may have to add manually.
There are a few things you need to gather together, network driver, new USB drivers including the ehci usb2 driver (get the latest usbdrv zip from hobbes usbdrv217.zip). To use a FAT32 formatted USB stick you will also need the fat32 driver, also on hobbes, and that will require WARPIN to install the WPI.

To get those installed on your system you need to unpack them somewhere and then burn them to a CD-R and use that for the transfer.

To get the USB working you will need something like the following (taken from one of our workstations)

BASEDEV=USBOHCD.SYS
BASEDEV=USBOHCD.SYS
BASEDEV=USBOHCD.SYS
BASEDEV=USBOHCD.SYS
BASEDEV=USBEHCD.SYS
BASEDEV=USBEHCD.SYS
BASEDEV=USBD.SYS
DEVICE=C:\OS2\BOOT\USBPRT.SYS
BASEDEV=USBHID.SYS
DEVICE=C:\os2\SYSTEM\AMouse\USBMOUSE.SYS
DEVICE=C:\OS2\BOOT\USBKBD.SYS
BASEDEV=USBMSD.ADD /REMOVABLES:8 /FLOPPIES:0
REM DEVICE=C:\OS2\BOOT\USBCOM.SYS
DEVICE=C:\tools\usb\USBRESMG.SYS

Note the number of USBUHCD.SYS, USBOHCD.SYS and USBEHCD.SYS entries depends on the number and type of chip installed - HCIMONIT (command line) USBCfg (GUI) will sort that out for you.

If push comes to shove I could e-mail you the ISO of the CD we use that has all those little things in it.

Title: Re: USB support in original CP2 CD
Post by: ak120 on June 15, 2017, 07:02:20 pm
I have entered this into my CONFIG.SYS, but my 128MB FAT formatted USB stick (the smallest I could find) does not show up in the drives folder, even after clicking on Refresh Removable media. Not sure what you mean by 'being prepared for OS/2 LVM usage'..

The USB storage should contain a partition. Non-partioned superfloppy (also with FAT) will not be recognised by this level of USBMSD.ADD.
Title: Re: USB support in original CP2 CD
Post by: karotlopj on June 15, 2017, 08:11:56 pm
Hi John,

A couple of points.
You should be able to get a wired network working without too much problem - it requires the E1000.nif and E1000.os2 which you may have to add manually.

Ivan, that's the point. I'm trying to use the WCP2 CD to get OS/2 up and running on a ThinkPad T41. It's up but it's not running. I know which NIC driver to use, but I can't get access to the system. The CD comes with support for all sorts of NICs and PCMCIA cards, but none of them work with this model as far as I know. My hope is that I can get access via a USB flash drive using the USB drivers which come with the system and are installed, but commented out in CONFIG.SYS. Unfortunately, I can't get them configured properly.

It's basically a technical exercise more than anything else.
Title: Re: USB support in original CP2 CD
Post by: ivan on June 15, 2017, 10:32:03 pm
Hi John,

I assume you have a working CD/DVD drive on the T41.  You can use a CD to transfer the necessary drivers to your system.  If you send me an e-mail to ivanjt at free dot fr I can send you an ISO that contains the drivers and a few odd utilities (we use it when we re-image a WSeB (CP2) computer.
Title: Re: USB support in original CP2 CD
Post by: Pete on June 16, 2017, 12:44:21 am
Hi John

Do you have the usb device monitor running? - I think this is \os2\boot\usbmon.exe on a cp2 system

This is the bit that "notices" when a usb drive gets attached and pops up a message.


Regards

Pete
Title: Re: USB support in original CP2 CD
Post by: karotlopj on June 16, 2017, 08:56:44 am
Hi John,

Use hcimonit in your x:\os2\boot directory, this program will tell you what your chipset is.


Hi Ian,
How are you keeping?

I don't have such a program. I don't think it comes with the Convenience Pack.

Quote

The following is what I have.

Quote
[C:\os2\boot]hcimonit
You have 4 PCI USB UHCI host controller(s)
You have 1 PCI USB EHCI host controller(s)

[C:\os2\boot]

Booting from my PXE server and running System Rescue CD, there is a program lshe which shows I have 4 USB controllers. 3 x uhci_hcd  and 1 x ehci-pci, so I'll adjust config.sys accordingly.
[
quote]
Take note of the host controller type, UH, OH, EH
EHCI is for USB v2.xx so it should come after the v1.xx drivers.

In my config.sys file I have (for the above controllers)

Quote
REM BASEDEV=USBUHCD.SYS     (one copy of this statement for each UHCI controller reported by HCIMONIT)
REM BASEDEV=USBOHCD.SYS     (one copy of this statement for each OHCI controller reported by HCIMONIT)
REM BASEDEV=USBEHCD.SYS     (one copy of this statement for each EHCI controller reported by HCIMONIT)
REM USBEHCD.SYS must be placed AFTER USBUHCD.SYS and USBOHCD.SYS
REM BASEDEV=USBOHCD.SYS /FS
BASEDEV=USBUHCD.SYS
BASEDEV=USBUHCD.SYS
BASEDEV=USBUHCD.SYS
BASEDEV=USBUHCD.SYS
BASEDEV=USBEHCD.SYS
BASEDEV=USBD.SYS
BASEDEV=USBHID.SYS
BASEDEV=USBMSD.ADD /FLOPPIES:1 /REMOVABLES:4
DEVICE=C:\OS2\BOOT\USBMOUSE.SYS
DEVICE=C:\OS2\BOOT\USBPRT.SYS
DEVICE=C:\OS2\BOOT\USBRESMG.SYS

USB works well on your model laptop as well as R41 and R61's
Note "BASEDEV=USBMSD.ADD /FLOPPIES:1 /REMOVABLES:4"

/FLOPPIES:1   is for reading from my usb stick
/REMOVABLES:4 is for my card reader which has 4 sockets.
Defaults are probably fine but I've got those defaults there, well, just because they have been there for um, decades :)

Using the USB drivers which are installed from the CD doesn't seem to give me access to any USB stick I've tried.. maybe it's a hardware problem, but having said that, I can boot from USB, so it must be OK.
Title: Re: USB support in original CP2 CD
Post by: karotlopj on June 16, 2017, 09:04:17 am
Hi John,

I assume you have a working CD/DVD drive on the T41.  You can use a CD to transfer the necessary drivers to your system.  If you send me an e-mail to ivanjt at free dot fr I can send you an ISO that contains the drivers and a few odd utilities (we use it when we re-image a WSeB (CP2) computer.

That's very kind of you Ivan, but there's no need. I have working versions of OS/2 on half a dozen laptop disks. I'm just trying to document how I got them installed last year when I started to re-visit OS/2. I don't remember using USB, so maybe I installed it on an old laptop which had drivers on the CD which supported its NIC.
Title: Re: USB support in original CP2 CD
Post by: karotlopj on June 16, 2017, 09:07:39 am
Hi John

Do you have the usb device monitor running? - I think this is \os2\boot\usbmon.exe on a cp2 system

This is the bit that "notices" when a usb drive gets attached and pops up a message.


Regards

Pete

Hi Pete,

Are you sure that usbmon.exe is included on the CP2 CD? I haven't been able to locate it anywhere...
Title: Re: USB support in original CP2 CD
Post by: Ian Manners on June 16, 2017, 10:36:13 am
FYI - depends if you want to go further than CP2. I would recommend you do.

I cant remember if usbmon was on the CP2 CD or not, to difficult for me to find in one of many boxes to check but files listed below are the last USB packages from IBM.

usb10162.zip  Last IBM Base USB package. This is the same file as usbbasic10162.zip. If you are doing a fresh USB driver install, start with this one. Includes hcimonit.exe, usbd.sys, usbehcd.sys, usbhid.sys, usbohcd.sys, usbuhcd.sys.

usbp10157.zip Last IBM Printer USB package. Includes usbmon.exe, usbprt.pdr, usbprt.sys.

usbs10162.zip Last IBM supplemental USB package. Includes usbcdrom.add, usbmon.EXE, usbmsd.add, usbwarn.EXE.

You will want usb10162.zip (20th Jan 2006)  and usbs10162.zip (20th Jan 2006).
Happy to email these to you if you like.
Title: Re: USB support in original CP2 CD
Post by: ak120 on June 16, 2017, 04:01:41 pm
Quote
... hcimonit in your x:\os2\boot ...
I don't have such a program. I don't think it comes with the Convenience Pack.

You're right. It never shipped with any level of the Convenience Packages. That was the reason I gave you the resulting entries for your config.sys. Later USB driver packages from SWC/PPA included the USB 2.0 support.

If you have only CP2 the included USB drivers in \OS2\BOOT should be at revision 10.058. You can check it with the command BLDLEVEL. The OS/2 Device Driver FixPak (XR_D003) includes files at 10.070 revision level - but also no USB 2.0 support.

Quote
[C:\os2\boot]hcimonit
You have 4 PCI USB UHCI host controller(s)
You have 1 PCI USB EHCI host controller(s)
With a T41 it should be usually 3 UHCI and 1 EHCI. The reaseon for 3 entries of the same driver in your CONFIG.SYS.

Quote
Using the USB drivers which are installed from the CD doesn't seem to give me access to any USB stick I've tried.. maybe it's a hardware problem, but having said that, I can boot from USB, so it must be OK.

So the system installation was done from an external USB CD-ROM drive?

Simply use LVM on the USB storage to create a partion.

I attached 2 files built from ddk sources that should work with a CP2 without any fixes and additional device drivers.
Title: Re: USB support in original CP2 CD
Post by: Pete on June 16, 2017, 10:37:46 pm
Hi John

No, never having had a copy of cp2 - went the eCS route instead. I would be surprised if there is not some sort of removable drive monitor included, maybe usbmon.exe is hidden in a zip/self executing package.

I suggest following Ians advice to update usb drivers as it is a worthwhile update for most systems and usbmon.exe seems to be included in the usbmsd update usbs10162 - you should find usb10162 and usbs10162 here http://www.os2site.com/sw/drivers/usb/index.html


Regards

Pete
Title: Re: USB support in original CP2 CD
Post by: karotlopj on June 17, 2017, 12:32:03 am

You're right. It never shipped with any level of the Convenience Packages. That was the reason I gave you the resulting entries for your config.sys. Later USB driver packages from SWC/PPA included the USB 2.0 support.

If you have only CP2 the included USB drivers in \OS2\BOOT should be at revision 10.058. You can check it with the command BLDLEVEL. The OS/2 Device Driver FixPak (XR_D003) includes files at 10.070 revision level - but also no USB 2.0 support.
I checked all the usb* files installed and they have a BLDLEVEL of 10.57. I did noticed that there was also a USBHCD2.SYS along with the others. Never seen any mention of this anywhere.

Quote
[C:\os2\boot]hcimonit
You have 4 PCI USB UHCI host controller(s)
You have 1 PCI USB EHCI host controller(s)

With a T41 it should be usually 3 UHCI and 1 EHCI. The reaseon for 3 entries of the same driver in your CONFIG.SYS.

Using the USB drivers which are installed from the CD doesn't seem to give me access to any USB stick I've tried.. maybe it's a hardware problem, but having said that, I can boot from USB, so it must be OK.[/quote]

Quote
So the system installation was done from an external USB CD-ROM drive?
No, I used the internal CD-ROM. Getting OS/2 installed was relatively painless (after the first few attempts. The major drawback is lack of a NIC driver

Quote
Simply use LVM on the USB storage to create a partion.

I attached 2 files built from ddk sources that should work with a CP2 without any fixes and additional device drivers.

I can't get LVM to create a partition on a USB disk.
Title: Re: USB support in original CP2 CD
Post by: karotlopj on June 17, 2017, 12:45:31 am
Hi John

No, never having had a copy of cp2 - went the eCS route instead. I would be surprised if there is not some sort of removable drive monitor included, maybe usbmon.exe is hidden in a zip/self executing package.

I suggest following Ians advice to update usb drivers as it is a worthwhile update for most systems and usbmon.exe seems to be included in the usbmsd update usbs10162 - you should find usb10162 and usbs10162 here http://www.os2site.com/sw/drivers/usb/index.html


Regards

Pete

Hi Pete,

The subject of the thread is 'USB support in original CP2 CD'. Apparently it did work in some way, and I'm trying to find what I need to do to make it  work on a ThinkPad T41. Installing updated drivers defeats the point of the exercise, but thanks for your suggestion.