PCI Parallel port

More
18 Dec 2009 08:34 - 18 Dec 2009 08:35 #1350 by anshuman
PCI Parallel port was created by anshuman
Hi everyone,


I have added a PCI parallel port card to my PC. I am following the installation instructions from here:
wiki.linuxcnc.org/cgi-bin/emcinfo.pl?NetMos

I get the following response for "lspci -v" command:

It does not mention a Parallel controller, only a PCI bridge. Also no I/O ports are mentioned, so I cannot go any further.

00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1) (prog-if 01 [Subtractive decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=32
I/O behind bridge: 0000e000-0000efff
Memory behind bridge: feb00000-febfffff
Capabilities: [50]
Subsystem: Elitegroup Computer Systems Unknown device 2633

What could be the possible reasons for Ubuntu to not detect PCI parallel card properly?


Regards,

Anshuman
Last edit: 18 Dec 2009 08:35 by anshuman.

Please Log in or Create an account to join the conversation.

More
18 Dec 2009 12:47 #1354 by BigJohnT
Replied by BigJohnT on topic Re:PCI Parallel port
I'm not sure what the problem might be but there is quite a bit more info in the Integrators Manual.

www.linuxcnc.org/docview/html//hal_drivers.html

It might not work or be plugged into the pci slot well...

John

Please Log in or Create an account to join the conversation.

More
26 Dec 2009 08:50 #1399 by anshuman
Replied by anshuman on topic Re:PCI Parallel port
Hi,

I have added a TAG PCI parallel port card on a PC which uses Ubuntu 8.04 Hardy Heron. I get the
following response for "lspci -v" command:

It does not mention a Parallel controller, only a PCI bridge. Also no I/O ports are mentioned.

00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1) (prog-if 01 [Subtractive decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=32
I/O behind bridge: 0000e000-0000efff
Memory behind bridge: feb00000-febfffff
Capabilities: [50]
Subsystem: Elitegroup Computer Systems Unknown device 2633

Following are the install instructions for Linux that came with the PCI Parallel card:

"
3-install and uninstall CH352 PCI to one parport
(1)install
<1>-copy install_p_80x86.o to /usr/sbin
- Done this

<2>-Add /usr/sbin/install_p_80x86 at the end of the /etc/rc.d/rc.local.
- I could not find /etc/rc.d directory. But there was a /etc/rc.local file which I have edited as follows:"
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

/usr/sbin/install_p_80x86
exit 0"

<3>-reboot
The LP1 and LP2(if you inster two boards) are ready for application.

"

Even after doing this, I still can't see the parallel controller in 'lspci -v' command.



BigJohnT,

I have gone through the link that you have provided. However, as I can't see the I/O port address in the 'lspci -v' command, I can't go any further.


Regards,

Sachin

Please Log in or Create an account to join the conversation.

More
26 Dec 2009 12:43 #1401 by BigJohnT
Replied by BigJohnT on topic Re:PCI Parallel port
I've never had to do anything except plug a pci parallel port card in then do a lspci -v to find the address so your way ahead of me. If this is a new install you might just reinstall the LiveCD with your parallel port card installed. Then pastebin.ca the whole result from the lspci -v.

My card just reports Communication controller: NetMos... then some I/O ports at a800...

John

Please Log in or Create an account to join the conversation.

More
01 Jan 2010 08:40 - 18 Jan 2010 12:10 #1411 by anshuman
Replied by anshuman on topic Re:PCI Parallel port
Hi John,

When I unistalled Ubuntu in order to reinstall it, my Windows System directory got corrupted. I had to format my drive and install WinXP again. Right after I had installed Ubuntu inside Windows, I started getting problems like hard disk error, corrupted Windows profile. Can these problems be because of installing Ubuntu or are they unrelated?

So now, I don't want to reinstall Ubuntu inside Windows. So there is no question of Ubuntu detecting my PCI card while installing. When I use the 'lspci -v' command while running Ubuntu from Live CD, I face the same problem of not seeing the PCI controller.

The same PCI card does work with WinXP. Is it possible that this particular PCI card is not compatible with Ubuntu?


Regards,

Anshuman
Last edit: 18 Jan 2010 12:10 by anshuman.

Please Log in or Create an account to join the conversation.

More
07 Jan 2010 08:40 - 18 Jan 2010 12:11 #1464 by anshuman
Replied by anshuman on topic Re:PCI Parallel port
Hi John,

The same PCI card does work with WinXP. Is it possible that this particular PCI card is not compatible with Ubuntu?


Regards,

Anshuman
Last edit: 18 Jan 2010 12:11 by anshuman.

Please Log in or Create an account to join the conversation.

More
18 Jan 2010 12:13 - 18 Jan 2010 12:14 #1547 by anshuman
Replied by anshuman on topic Re:PCI Parallel port
Hi,

Apparently, the PCI parallel card is getting detected as a Serial Controller.

The 'lspci -v' gives me the following message:

01:02.0 Serial controller: Unknown device 4348:5053 (rev 10) (prog-if 02 [16550])
Subsystem: Unknown device 4348:5053
Flags: medium devsel, IRQ 11
I/O ports at ec00
I/O ports at e880


I have edited the standard_pinout.hal file as follows:
"
loadrt probe_parport
loadrt hal_parport cfg="0xe880"
"

If I give the other address(0xec00) in .hal file, EMC does not start and gives me following error:
"
insmod: error inserting ’/home/jepler/emc2/rtlib/hal_parport.ko’:
-1 Device or resource busy
"

So the port address I have entered in .hal file seems to be right. Still when I connect a parallel cable to the card and play an EMC configuration, I cannot see the pulses on the pins. However, I can see a logic '1' on pins of parallel port. What could be the problem?


Regards,

Anshuman
Last edit: 18 Jan 2010 12:14 by anshuman.

Please Log in or Create an account to join the conversation.

More
19 Jan 2010 12:35 - 20 Jan 2010 08:31 #1559 by anshuman
Replied by anshuman on topic Re:PCI Parallel port
Hi,

Apparently, the PCI parallel card is getting detected as a Serial Controller.

The 'lspci -v' gives me the following message:

01:02.0 Serial controller: Unknown device 4348:5053 (rev 10) (prog-if 02 [16550])
Subsystem: Unknown device 4348:5053
Flags: medium devsel, IRQ 11
I/O ports at ec00
I/O ports at e880

I have edited the standard_pinout.hal file as follows:
"
loadrt probe_parport
loadrt hal_parport cfg= "0xe880"
"

Still when I connect a parallel cable to the card and play an EMC configuration, I cannot see the pulses on the pins. What could I be doing wrong?


Regards,

Anshuman
Last edit: 20 Jan 2010 08:31 by anshuman.

Please Log in or Create an account to join the conversation.

More
23 Jan 2010 08:26 #1598 by anshuman
Replied by anshuman on topic Re:PCI Parallel port
Hi,

I still cannot see any signals from PCI parallel port. Please tell me if I am doing something wrong.


Regards,

Anshuman

Please Log in or Create an account to join the conversation.

More
23 Jan 2010 10:54 #1600 by acemi
Replied by acemi on topic Re:PCI Parallel port
Could you paste the full output of:

lspci -v
sudo lshw

(you need to install lshw package to use lshw command)

Please Log in or Create an account to join the conversation.

Time to create page: 0.282 seconds
Powered by Kunena Forum