Author Topic: USB support in original CP2 CD  (Read 1029 times)

John Poltorak

  • Full Member
  • ***
  • Thank You
  • -Given: 16
  • -Receive: 0
  • Posts: 233
    • View Profile
USB support in original CP2 CD
« 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?



Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 243
  • -Receive: 46
  • Posts: 1640
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: USB support in original CP2 CD
« Reply #1 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
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Pete

  • Hero Member
  • *****
  • Thank You
  • -Given: 0
  • -Receive: 26
  • Posts: 529
    • View Profile
Re: USB support in original CP2 CD
« Reply #2 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

Paul Richards

  • Jr. Member
  • **
  • Thank You
  • -Given: 3
  • -Receive: 0
  • Posts: 62
    • View Profile
Re: USB support in original CP2 CD
« Reply #3 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

Dave Yeo

  • Hero Member
  • *****
  • Thank You
  • -Given: 7
  • -Receive: 87
  • Posts: 1098
    • View Profile
Re: USB support in original CP2 CD
« Reply #4 on: June 15, 2017, 07:25:55 am »
Use HTTP or user anonymous, password email address.

Paul Richards

  • Jr. Member
  • **
  • Thank You
  • -Given: 3
  • -Receive: 0
  • Posts: 62
    • View Profile
Re: USB support in original CP2 CD
« Reply #5 on: June 15, 2017, 07:46:56 am »
Dave
Use HTTP or user anonymous, password email address.

Thanks, the anonymous worked fine.

Paul

John Poltorak

  • Full Member
  • ***
  • Thank You
  • -Given: 16
  • -Receive: 0
  • Posts: 233
    • View Profile
Re: USB support in original CP2 CD
« Reply #6 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.

Andreas Kohl

  • Full Member
  • ***
  • Thank You
  • -Given: 4
  • -Receive: 6
  • Posts: 142
    • View Profile
    • warpserver.de
Re: USB support in original CP2 CD
« Reply #7 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

John Poltorak

  • Full Member
  • ***
  • Thank You
  • -Given: 16
  • -Receive: 0
  • Posts: 233
    • View Profile
Re: USB support in original CP2 CD
« Reply #8 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'..

Ian Manners

  • Global Moderator
  • Full Member
  • *****
  • Thank You
  • -Given: 29
  • -Receive: 17
  • Posts: 239
  • I am the computer, it is me.
    • View Profile
    • OS/2 Site
Re: USB support in original CP2 CD
« Reply #9 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 :)
Cheers
Ian B Manners

ivan

  • Hero Member
  • *****
  • Thank You
  • -Given: 0
  • -Receive: 24
  • Posts: 632
    • View Profile
Re: USB support in original CP2 CD
« Reply #10 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.


Andreas Kohl

  • Full Member
  • ***
  • Thank You
  • -Given: 4
  • -Receive: 6
  • Posts: 142
    • View Profile
    • warpserver.de
Re: USB support in original CP2 CD
« Reply #11 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.

John Poltorak

  • Full Member
  • ***
  • Thank You
  • -Given: 16
  • -Receive: 0
  • Posts: 233
    • View Profile
Re: USB support in original CP2 CD
« Reply #12 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.

ivan

  • Hero Member
  • *****
  • Thank You
  • -Given: 0
  • -Receive: 24
  • Posts: 632
    • View Profile
Re: USB support in original CP2 CD
« Reply #13 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.

Pete

  • Hero Member
  • *****
  • Thank You
  • -Given: 0
  • -Receive: 26
  • Posts: 529
    • View Profile
Re: USB support in original CP2 CD
« Reply #14 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