no libaccess installed in LinuxCNC-LiveCD

More
02 Aug 2012 19:28 #22686 by t1m0n
Hi,
I installed LinuxCNC from LiveCD (Ubuntu 10.04, 2.6.32-122-RTAI, LinuxCNC 2.5).

I load a kernel module with insmod to work in kernel space. I think it works.
Now, I try to install the driver library. It needs libpciaccess.
Both, kernel module and library are required to use a cifx card over PCI-Port.

I searched and found libpciaccess: pkgs.org/ubuntu-10.04/ubuntu-main-i386/l...11.0-1_i386.deb.html
Description for libpciaccess: Provides functionality for X to access the PCI bus and devices in a platform-independant way.

Parallel port is the standard interface for linuxcnc, right? I want to integrate sercos-iii with cifx card over PCI.
But I don't understand how the parallelport should work out-of-the-box if libpciaccess is not installed.
Is PCI not required to use the parallel port if parallel port is onboard?
Only if I want to use a card direct over pci port libpciaccess is required, right?

But what is know with HAL?

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

More
03 Aug 2012 00:01 - 03 Aug 2012 00:02 #22695 by andypugh
t1m0n wrote:

Parallel port is the standard interface for linuxcnc, right?

No, LinuxCNC has many drivers for PCI, PCIe and even ISA hardware.
We only support the parallel port because people want to use it. It's nasty.

Only if I want to use a card direct over pci port libpciaccess is required, right?

I suspect not.
See for example: git.linuxcnc.org/gitweb?p=linuxcnc.git;a...8c0c968ad374;hb=HEAD
Which access PCI hardware with simple inb() and outb() instructions to a port address.

That is written in C, and isn't very clear. You can probably use "comp" which is a preprocessing language and allows for much smaller driver files. This one:
git.linuxcnc.org/gitweb?p=linuxcnc.git;a...2ea8c65f4e2e;hb=HEAD
Is similar to the previous one (but is for an ISA card, not a PCI card)
Last edit: 03 Aug 2012 00:02 by andypugh.

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

More
11 Aug 2012 09:57 - 12 May 2013 17:41 #23060 by t1m0n
Thanks for the link to the Code for pci_8255.c.
Last edit: 12 May 2013 17:41 by t1m0n.

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

Time to create page: 0.152 seconds
Powered by Kunena Forum