- Posts: 5
- Thank you received: 0
Pci card fo Linuxcnc
4 years 7 months ago #237773
by vas455
Pci card fo Linuxcnc was created by vas455
Good afternoon! Tell me, is it possible to use different pci i/o cards with Linuxcnc? By default, only the settings for the parallel port and mesa cards are available in the settings, the question is whether other cards will be available in the settings after installing the card itself and drivers, for example, use a card on ch367
Please Log in to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
-
Less
More
- Posts: 4739
- Thank you received: 2
4 years 7 months ago #237867
by Todd Zuercher
Replied by Todd Zuercher on topic Pci card fo Linuxcnc
The Pncconfig wizard is a tool for building Linuxcnc configurations for Mesa cards. It does not support other hardware.
If the card you want to use isn't already supported by Linuxcnc you may be stuck having to write your own drivers for it. Unless you are very lucky (as I was) and can find a generous person to write one for you.
If the card you want to use isn't already supported by Linuxcnc you may be stuck having to write your own drivers for it. Unless you are very lucky (as I was) and can find a generous person to write one for you.
Please Log in to join the conversation.
4 years 7 months ago #237905
by HansU
Replied by HansU on topic Pci card fo Linuxcnc
You will find all supported hardware on
linuxcnc.org/docs/devel/html/
in section Hardware Drivers
This might be an alternative for you, which is still in development: forum.linuxcnc.org/27-driver-boards/4442...roller-board?start=0
This might be an alternative for you, which is still in development: forum.linuxcnc.org/27-driver-boards/4442...roller-board?start=0
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
Less
More
- Posts: 22012
- Thank you received: 3
4 years 7 months ago #237914
by tommylight
Replied by tommylight on topic Pci card fo Linuxcnc
Do you have the card?
if yes, insert it in the PC, boot a Live Linux session from USB and type:
It does return a lot of text, but try to find the section with that cards info.
Also search for firmware for it, a lot of Chinese companies have firmware on the net to avoid lawsuits.
if yes, insert it in the PC, boot a Live Linux session from USB and type:
Code:
sudo lspci -v
Also search for firmware for it, a lot of Chinese companies have firmware on the net to avoid lawsuits.
Please Log in to join the conversation.
4 years 7 months ago #237916
by vas455
Replied by vas455 on topic Pci card fo Linuxcnc
Please Log in to join the conversation.
4 years 7 months ago #237917
by vas455
Replied by vas455 on topic Pci card fo Linuxcnc
These cards are not very expensive, I can post their documentation and drivers here if you are interested.
I will receive these boards in about 50 days
I will receive these boards in about 50 days
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
Less
More
- Posts: 22012
- Thank you received: 3
4 years 7 months ago #237919
by tommylight
Replied by tommylight on topic Pci card fo Linuxcnc
As i said above, many of them have everything on the net, so:
www.wch.cn/products/CH367.html
At the very end there are Linux drivers, and everything else in between.
www.wch.cn/products/CH367.html
At the very end there are Linux drivers, and everything else in between.
Please Log in to join the conversation.
4 years 7 months ago #238163
by andypugh
Replied by andypugh on topic Pci card fo Linuxcnc
It's probably relatively easy to write a LinuxCNC driver for these boards if the documentation is adequate.
Please Log in to join the conversation.
4 years 7 months ago #238194
by vas455
Replied by vas455 on topic Pci card fo Linuxcnc
relatively speaking, I will need to write a driver to specify the ports of the card in Linuxcnc?
Please Log in to join the conversation.
4 years 7 months ago #238281
by andypugh
Here is an example:
github.com/LinuxCNC/linuxcnc/blob/master.../drivers/pcl720.comp
It's for an ISA card, and the starting point is an ioaddr. But i chose it as it uses the .comp preprocessing language so it's relatively simple.
For a PCI device it is usual to use DMA, so after a bit of setup you just need to put the data into variables that are part of a correctly-shaped C struct.
I think that the memory mapping happens here, in the Motenc driver: github.com/LinuxCNC/linuxcnc/blob/master...rs/hal_motenc.c#L309
Replied by andypugh on topic Pci card fo Linuxcnc
Yes. But it's not particularly difficult.relatively speaking, I will need to write a driver to specify the ports of the card in Linuxcnc?
Here is an example:
github.com/LinuxCNC/linuxcnc/blob/master.../drivers/pcl720.comp
It's for an ISA card, and the starting point is an ioaddr. But i chose it as it uses the .comp preprocessing language so it's relatively simple.
For a PCI device it is usual to use DMA, so after a bit of setup you just need to put the data into variables that are part of a correctly-shaped C struct.
I think that the memory mapping happens here, in the Motenc driver: github.com/LinuxCNC/linuxcnc/blob/master...rs/hal_motenc.c#L309
Please Log in to join the conversation.
Time to create page: 3.395 seconds
