Discussion:
[Emc-users] NetMos 9805 PCI Parallel Port Card Problem (I/O Ports disabled)
Sasa Vilic
2008-12-30 20:16:11 UTC
Permalink
Hi,

i got a new NetMos 9805 PCI Parallel Port Card. I have read
http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Hooking_Up_A_MPG_Pendant and
tried to setup my card, but it does not work.

lspci -v gives something like this:

0000:00:10.0 Communication controller: NetMos
<http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?NetMos> Technology PCI 1
port parallel adapter (rev 01)
Subsystem: LSI Logic / Symbios Logic: Unknown device 0010
Flags: medium devsel, IRQ 11
I/O ports at a800 *[disabled]* [size=8]
I/O ports at ac00 *[disabled]* [size=8]
I/O ports at b000 *[disabled]* [size=8]
I/O ports at b400 *[disabled]* [size=8]
I/O ports at b800* [disabled]* [size=8]
I/O ports at bc00* [disabled]* [size=16]

Can someone tell me, what is wrong with it.

Thank you,

Sasa
Sebastian Kuzminsky
2008-12-30 21:12:15 UTC
Permalink
Post by Sasa Vilic
i got a new NetMos 9805 PCI Parallel Port Card. I have read
http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Hooking_Up_A_MPG_Pendant and
tried to setup my card, but it does not work.
Does it give *something* like this, or *exactly* this?
Post by Sasa Vilic
0000:00:10.0 Communication controller: NetMos
<http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?NetMos> Technology PCI 1
port parallel adapter (rev 01)
Subsystem: LSI Logic / Symbios Logic: Unknown device 0010
Flags: medium devsel, IRQ 11
I/O ports at a800 *[disabled]* [size=8]
I/O ports at ac00 *[disabled]* [size=8]
I/O ports at b000 *[disabled]* [size=8]
I/O ports at b400 *[disabled]* [size=8]
I/O ports at b800* [disabled]* [size=8]
I/O ports at bc00* [disabled]* [size=16]
Can someone tell me, what is wrong with it.
If it's exactly this, except for the URL ;-), then it looks like the
BIOS of your computer has not enabled the PCI parport card. All the
Base Address Registers are disabled.

The normal linux parport driver enables the BARs when they're needed,
but since that driver isnt getting loaded, the BARs are left disabled
and emc2's parport driver doesnt enable them.

The workaround, until our parport driver gets fixed (which will probably
be a while), is to enable the board before you tell emc2 to try to use it.

I think this can be done by setpci poking the right bit in the right
register, or maybe via /sys/bus/pci/devices/0000:00.10.0/enable or one
of the other special files there. I dont know the specifics off the top
of my head but that's a place to start.
--
Sebastian Kuzminsky
Dualism? Sure. Brain and Mind are different. "Brain" is a noun. "Mind"
is a verb - it's what a properly functioning Brain does. -- DHuff
Sasa Vilic
2008-12-30 22:35:08 UTC
Permalink
Thank you very much.

The differences between this output and output on my computer are only in
addresses. (0000:00:10.0 and I/O port addresses).

On my computer I/O port address, if I can good remember, are something like
a400, a000, d400, d000, ....., 9800 etc, but all I/O ports are disabled.

I did not know, that this addresses are so important. I will try to do
tomorrow, what you have suggested and I will get real output of lspci.

Anyway, thank you very much. Your information seems very helpful. I will be
able to test it tomorrow and inform you about results.

Sasa
Post by Sebastian Kuzminsky
Post by Sasa Vilic
i got a new NetMos 9805 PCI Parallel Port Card. I have read
http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Hooking_Up_A_MPG_Pendant and
tried to setup my card, but it does not work.
Does it give *something* like this, or *exactly* this?
Post by Sasa Vilic
0000:00:10.0 Communication controller: NetMos
<http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?NetMos> Technology PCI 1
port parallel adapter (rev 01)
Subsystem: LSI Logic / Symbios Logic: Unknown device 0010
Flags: medium devsel, IRQ 11
I/O ports at a800 *[disabled]* [size=8]
I/O ports at ac00 *[disabled]* [size=8]
I/O ports at b000 *[disabled]* [size=8]
I/O ports at b400 *[disabled]* [size=8]
I/O ports at b800* [disabled]* [size=8]
I/O ports at bc00* [disabled]* [size=16]
Can someone tell me, what is wrong with it.
If it's exactly this, except for the URL ;-), then it looks like the
BIOS of your computer has not enabled the PCI parport card. All the
Base Address Registers are disabled.
The normal linux parport driver enables the BARs when they're needed,
but since that driver isnt getting loaded, the BARs are left disabled
and emc2's parport driver doesnt enable them.
The workaround, until our parport driver gets fixed (which will probably
be a while), is to enable the board before you tell emc2 to try to use it.
I think this can be done by setpci poking the right bit in the right
register, or maybe via /sys/bus/pci/devices/0000:00.10.0/enable or one
of the other special files there. I dont know the specifics off the top
of my head but that's a place to start.
--
Sebastian Kuzminsky
Dualism? Sure. Brain and Mind are different. "Brain" is a noun. "Mind"
is a verb - it's what a properly functioning Brain does. -- DHuff
------------------------------------------------------------------------------
_______________________________________________
Emc-users mailing list
https://lists.sourceforge.net/lists/listinfo/emc-users
Sebastian Kuzminsky
2008-12-30 22:53:36 UTC
Permalink
Post by Sasa Vilic
The differences between this output and output on my computer are only in
addresses. (0000:00:10.0 and I/O port addresses).
On my computer I/O port address, if I can good remember, are something like
a400, a000, d400, d000, ....., 9800 etc, but all I/O ports are disabled.
I did not know, that this addresses are so important. I will try to do
tomorrow, what you have suggested and I will get real output of lspci.
Anyway, thank you very much. Your information seems very helpful. I will be
able to test it tomorrow and inform you about results.
The exact addresses are not important, the part that's important that I
wanted to make sure about is the "disabled", so i think we're ok, don't
bother sending the exact addresses.

Instead try writing a 1 to the PCI device's "enable" file in sysfs,
rerun lspci, and see if that fixes it.
--
Sebastian Kuzminsky
Dualism? Sure. Brain and Mind are different. "Brain" is a noun. "Mind"
is a verb - it's what a properly functioning Brain does. -- DHuff
Sasa Vilic
2009-01-02 10:19:58 UTC
Permalink
Writing 1 to file "enable" (sudo echo 1 > enable) didn't help because
of denied permission, but turning off "plug and play OS" in BIOS
helped.

Anyway, thank you very much for your help.

Sasa
Post by Sebastian Kuzminsky
Post by Sasa Vilic
The differences between this output and output on my computer are only in
addresses. (0000:00:10.0 and I/O port addresses).
On my computer I/O port address, if I can good remember, are something like
a400, a000, d400, d000, ....., 9800 etc, but all I/O ports are disabled.
I did not know, that this addresses are so important. I will try to do
tomorrow, what you have suggested and I will get real output of lspci.
Anyway, thank you very much. Your information seems very helpful. I will be
able to test it tomorrow and inform you about results.
The exact addresses are not important, the part that's important that I
wanted to make sure about is the "disabled", so i think we're ok, don't
bother sending the exact addresses.
Instead try writing a 1 to the PCI device's "enable" file in sysfs,
rerun lspci, and see if that fixes it.
--
Sebastian Kuzminsky
Dualism? Sure. Brain and Mind are different. "Brain" is a noun. "Mind"
is a verb - it's what a properly functioning Brain does. -- DHuff
------------------------------------------------------------------------------
_______________________________________________
Emc-users mailing list
https://lists.sourceforge.net/lists/listinfo/emc-users
Sebastian Kuzminsky
2009-01-02 16:29:52 UTC
Permalink
Post by Sasa Vilic
Writing 1 to file "enable" (sudo echo 1 > enable) didn't help because
of denied permission, but turning off "plug and play OS" in BIOS
helped.
Glad you got it working :-)

The "sudo echo 1 > enable" doesnt work because the redirection is
happening from the ">", on behalf of your shell, which is running as
you, unaffected by the sudo.

A better way to do it would be "echo 1 | sudo dd of=enable". Here the
writing to the "enable" file is done by dd, which *is* running as root
under sudo.


What are you planning to use the parport for?
--
Sebastian Kuzminsky
Dualism? Sure. Brain and Mind are different. "Brain" is a noun. "Mind"
is a verb - it's what a properly functioning Brain does. -- DHuff
Sasa Vilic
2009-01-02 17:04:34 UTC
Permalink
This post might be inappropriate. Click to display it.
Loading...