OS2 World Community Forum

OS/2, eCS & ArcaOS - Technical => Hardware => Topic started by: R.M. Klippstein on February 12, 2014, 03:46:53 am

Title: PCI Parallel Port card install -- need info
Post by: R.M. Klippstein on February 12, 2014, 03:46:53 am
I need to install a PCI Parallel card on a newer quad core M.B. that has no parallel port. It looks like I need to do it one of two different ways, or possibly both. Steven Levine posted a way which said to download compci.zip from the eCS site. Right now it looks like the beta zone is unreachable as well as the bug reporting site. So the other way was also posted by Mr. Levine and said to download Viet's pci049vkd.zip from hobbes (which I have done, but not installed as yet).  Which of these methods would be best to try with eCS 2.2bii or is there some additional way of accomplishing this included in eCS?
Has anyone done this lately?

thanks   klipp
Title: Re: PCI Parallel Port card install -- need info
Post by: Dave Yeo on February 12, 2014, 06:01:46 am
You should download http://hobbes.nmsu.edu/download/pub/os2/util/misc/pci104vka.zip and perhaps http://hobbes.nmsu.edu/download/pub/os2/util/system/pcidevs_20131028.zip, install (just unzip into a directory and run pci.exe) to find out exactly what card you have and which irq etc it is using and post it as a first step.
Title: Re: PCI Parallel Port card install -- need info
Post by: R.M. Klippstein on February 13, 2014, 12:05:06 am
Hi Dave, Thanks for the help. Below is the output of PCI.exe -- only the part that pertains to the Parallel Port card.
What's next?

klipp

Bus 4 (PCI), Device Number 7, Device Function 0
Vendor 4651h Unknown
Device 7073h Unknown
Command 0001h (I/O Access)
Status 0200h (Medium Timing)
Revision 10h, Header Type 00h, Bus Latency Timer 00h
Self test 00h (Self test not supported)
PCI Class Simple Communication, type Serial - 16550
Subsystem ID 70734651h Unknown (Generic ID)
Subsystem Vendor 4651h Unknown
Address 0 is an I/O Port : EC00h
Address 1 is an I/O Port : E080h
System IRQ 22, INT# A

OM PCI IRQ routing table Tests....
ROM IRQ routing table found at F000h:5590h
Table Version 1.0 - OK
Table size 384 bytes - OK
Table Checksum 05h - OK
PCI Interrupt Router: Unknown
IRQ's dedicated to PCI : None
The ROM PCI IRQ routing table appears to be OK.
Title: Re: PCI Parallel Port card install -- need info
Post by: Doug Bissett on February 13, 2014, 04:23:44 am
Quote
PCI Class Simple Communication, type Serial - 16550

That appears to be a SERIAL (COM) port device, not a parallel port device.
Title: Re: PCI Parallel Port card install -- need info
Post by: R.M. Klippstein on February 13, 2014, 04:57:35 am
Hi Doug, The box it came in said "PCI 80806a   Parallel Port PCI card" and had instructions for installing parallel port on both Linux and windows. Its got a parallel port socket on it, no serial port plugs!  Looks like it should work. I have Linux installed on the same box and will probably check it out on Linux if I'm not successful installing on eCS. Hope the "eye work" goes smoothly, take it slow!

klipp
Title: Re: PCI Parallel Port card install -- need info
Post by: Doug Bissett on February 13, 2014, 07:27:46 am
Quote
Hi Doug, The box it came in said "PCI 80806a   Parallel Port PCI card" and had instructions for installing parallel port on both Linux and windows.

A real parallel port should just plug in, and work. There is nothing complicated about them, but the line that I quoted seems to indicate something different. Does it come with a driver for windows, or is it expected to just work? A driver for windows, would indicate that it will need a (special) driver for OS/2 as well.

I think I would have tried a USB to parallel port adapter myself.

Quote
Hope the "eye work" goes smoothly, take it slow!

Thanks. I expect that I will be pretty slow for a couple of days.   8)
Title: Re: PCI Parallel Port card install -- need info
Post by: R.M. Klippstein on February 14, 2014, 11:06:09 pm
Well Doug, Windows liked the card and installed it as a "Multifunction Controller" and installed it as LPT3, so I guess I'm back to trying to figure out how to make eCS do the same!

klipp
Title: Re: PCI Parallel Port card install -- need info
Post by: ivan on February 14, 2014, 11:49:56 pm
Hi Klipp,

I don't know if this applies with PCI cards but the old multifunction cards used to have jumpers that set the IRQs for the various ports.  If I remember correctly the OS/2 drivers that support the the printer ports require the IRQ to be below IRQ15 and your PCI output shows the assigned IRQ to be 22.

How you get round this I don't know but I think it should be possible.  The windows inf file might give a clue as to how windows does it or you might have to reserve an IRQ in the bios for the card.
Title: Re: PCI Parallel Port card install -- need info
Post by: R.M. Klippstein on February 15, 2014, 02:30:37 am
Hi ivan, Yes, thats where I'm going next (the window driver) . Along with the card came the mini-cd with windows files -- PCI60806a.inf and Ports.inf as well as a Linux driver which I might have more luck with. The latest OS2/eCS  PCI.exe with the also latest PCI database recognizes the card and it looks like Viet's "setpci.exe" should be able to install it, I just havn't figured out how to make that happen yet.
Thanks for the input.

klipp
Title: Re: PCI Parallel Port card install -- need info
Post by: walking_x on February 15, 2014, 07:48:39 pm
At first - I never configured PCI LPT ports, only COM - so, not sure is it works at all.
There is a file \OS2\BOOT\pcidev.tbl - and all custom PCI COM/LPT devices must be written to it.
Example for common Netmos adapter with 2 serials and one LPT:

 9710,9835,s,s,p1,e1

(reference present in file).
COM PCI cards, compatible with 16550 - works fine... COM.SYS was updated for configurations without onboard COM ports (IBM version handle this incorrectly).

But is PRINT01.SYS was, at least, tested - I don`t know.

In PRINT01.SYS 10.043 there is no string PCIDEV.TBL. In 10.070 - it present. So, try to check your file and fill PCIDEV.TBL with correct values. MAY BE it works :)
Title: Re: PCI Parallel Port card install -- need info
Post by: R.M. Klippstein on February 17, 2014, 12:42:13 am
walking_x, Thank you VERY much for the information, its getting me closer to a working printer port, I think! I've checked out the PCI card in Windows and it works with a Laser printer connected to the LPT:1 port. I still havn't been able to get eCS to install the card and LPT port. I do have PRINT01.SYS version 10.070 installed. There was no PCIDEV.TBL in \OS2\BOOT so I created one using my cards Vendor and Device numbers.
4651,7073,p1,e1  -- but that didn't worl.
I don't understand you're statment "In PRINT01.SYS there is no string PCIDEV.TBL" I guess I don't know how to edit PRINT01.SYS to see if it contains that entry. Maybe I should be editing it with a Hex editor? I'm going to experiment with Viet's Setpci.exe and see if that possibly works.
It looks like there is no install of the "Multifunction Adapter".
Thanks again for the help and hope you might have a little more insight into this problem.

klipp
Title: Re: PCI Parallel Port card install -- need info
Post by: walking_x on February 17, 2014, 08:33:11 am
Version 10.070 have string PCIDEV.TBL inside, so it have support for this file.

I googled your PCI ID and found what it have serial port on first address (EC00h) and parallel on second (E080h).
You can try this line:

  4651,7073,s,p

And - pcidev.tbl attached to this post ;)
Title: Re: PCI Parallel Port card install -- need info
Post by: R.M. Klippstein on February 17, 2014, 11:13:39 pm
Hi Walking_x,  Thanks for the latest info and PCIDEV.tbl, I set it up like you said and it looks like it does install LPT:1 port. Using the SysInfo/2 program the system tab says no printer port was installed, however going over to the Printers tab it says the printer was installed. But unfortunatly the printer connected to the port has no response. This does work on another older box with a Printer port installed on the motherboard. This Motherboard (Asus M4A88TD) has no option in the bios for printer ports, I don't know if this is a  problem or not.
Is it possible I have to specify the (EO80h) address in the PCIDEV.tbl file?
Thanks again for all you're help.   

klipp
Title: Re: PCI Parallel Port card install -- need info
Post by: walking_x on February 18, 2014, 03:14:39 pm
I tried it on my netmos - it works! :)

1. Add /V key and remove /IRQ key from PRINT01.SYS
   I.e. PRINT01.SYS /V
   It will show adresses and irqs on boot...

2. Remove ACPI.PSD from config.sys :)
   Not sure about David`s versions, but with Pasha`s 3.16:
   * in APIC - driver cannot see card because "no interrupt" in PCI data (ACPI.PSD filters it, I think)
   * in PIC - system hangs before PM (may be this is my card's bug, it shows IRQ 0)

Without ACPI.PSD - printer works fine :)

You can make two config.sys files, for example and select it from loader menu (QSINIT or OS/4)... Or, may be - David`s version fixes something...
Title: Re: PCI Parallel Port card install -- need info
Post by: R.M. Klippstein on February 19, 2014, 12:26:56 am
walking_x, You are a GENIUS!¡!¡ It works like a charm now --- Thank you again and AGAIN!

klipp
Title: Re: PCI Parallel Port card install -- need info
Post by: Pete on February 19, 2014, 02:36:43 am
Hi walking_x

Davids version of ACPI certainly works better than the versions released before he took over development. Of course this does not mean it will work on every system with every pci addin card but certainly worth a try.


Regards

Pete
Title: Re: PCI Parallel Port card install -- need info
Post by: walking_x on February 19, 2014, 08:20:46 am
He can fix only PIC mode now, because PRINT01.SYS does not accept interrupts > 15. Driver can be recompiled from SDK sources with removing this limit - but who will make it except Mensys? ;)
Title: Re: PCI Parallel Port card install -- need info
Post by: R.M. Klippstein on February 19, 2014, 11:06:01 pm
Everybody is probably aware of this, but FWIW using PSD=OS2APIC.PSD lets all processors function under these conditions.

klipp
Title: Re: PCI Parallel Port card install -- need info
Post by: Doug Bissett on February 20, 2014, 05:36:31 am
Quote
Davids version of ACPI certainly works better than the versions released before he took over development.

There is no doubt about that.

Quote
because PRINT01.SYS does not accept interrupts > 15

I think you guys are forgetting, that the DEFAULT operation of PRINT01.SYS, is POLLING mode, which does not use an IRQ. Just leave off the /IRQ parameter. In the early days, that would use a noticeable amount of processor time, but today it is negligible.

There is also the PAR1284.SYS driver. I have no idea if it will help.

Quote
Everybody is probably aware of this, but FWIW using PSD=OS2APIC.PSD lets all processors function under these conditions.

Processors work, but there is no power control. That is not too serious on a desktop system, but is not good on a laptop. I have tried that on all of my SMP systems, and it does enable all processors on all of them, but I would only use it, if ACPI did not work. There is no other reason to use it.
Title: Re: PCI Parallel Port card install -- need info
Post by: walking_x on February 20, 2014, 09:57:28 am
I think you guys are forgetting, that the DEFAULT operation of PRINT01.SYS, is POLLING mode, which does not use an IRQ. Just leave off the /IRQ parameter. In the early days, that would use a noticeable amount of processor time, but today it is negligible.
The problem is not IRQ, but detection of PCI cards in driver. It checks IRQ presence and its number in any way (even without /IRQ key) and ignore card if no one or it greater than 15.
Title: Re: PCI Parallel Port card install -- need info
Post by: Eric Erickson on February 21, 2014, 11:37:11 pm
walking_x, You are a GENIUS!¡!¡ It works like a charm now --- Thank you again and AGAIN!

klipp
Can you post the exact line you added to make this work? Then we will have all the information to go along with this card.

Thanks
Title: Re: PCI Parallel Port card install -- need info
Post by: R.M. Klippstein on February 22, 2014, 09:26:22 pm
Hi Eric, Attached is the PCIDEV.TBL you need to copy to OS/2/Boot. If you look at the last lines, you will see what I added for my PCIParllel card.

;    My PCI Adapter
 4651, 7073,s,p

Hope this helps,   klipp
Title: Re: PCI Parallel Port card install -- need info
Post by: Lewis Rosenthal on March 03, 2014, 10:20:07 pm
FYI:

I've just uploaded to Hobbes an updated pcidevs.txt (updated to 2014-03-01). It's in /incoming, now, but it should replace the one from 2013-10-28.

Of course, this won't help drivers recognize hardware, but it should help us identify what new hardware we have, so that we may build the correct entries elsewhere or at least see what the system sees.

Cheers/2
Title: Re: PCI Parallel Port card install -- need info
Post by: Lewis Rosenthal on March 04, 2014, 04:59:29 pm
...also uploaded to Hobbes incoming is a tweaked PRINT01.SYS which should see IRQs as high as 48. Andy just built it form the DDK sources. This should obviate the need for Virtual Wire Mode under ACPI. Please test and report. I have it in a machine with a PCIe 1x parallel card (Oxford chipset), ACPI mode 2, set for IRQ 19. The card is recognized by the driver and prints as expected (I have not tested speed or anything else, just output to an HP LaserJet 4000 over an HP-branded IEEE-1284 bidi cable).

Cheers
Title: Re: PCI Parallel Port card install -- need info
Post by: R.M. Klippstein on March 08, 2014, 05:32:53 pm
Hi Lewis, you're Print01.sys works fine on a Asus M4A88TD with four processors (AMD), no problems with SMP and activating the processors. Thanks for the efforts involved in upgrading Print01.sys ---- a much needed enhancement for eCS and OS/2.

klipp
Title: Re: PCI Parallel Port card install -- need info
Post by: Lewis Rosenthal on August 06, 2014, 03:53:05 am
Late follow-up, due to my lack of sufficient notifications in my user profile here, Klipp...

Glad it worked, and hope that it continues to do so. Thanks to Andy for the great work. This thread reminds me that I owe him lunch at Warpstock, as his updated driver allowed me to deliver a machine to a client - and I got paid for that work, so he should, too.  :D

Cheers