Raspbery pi5 pcie adapter to parport card

More
12 Aug 2025 23:00 #333301 by KaveMan
I've been gone from LinuxCNC for about 10 yrs. Thought I'd give a try again. And with that I have been working with pi5 GPIOs work fine but thought I might attempt a waveshare pcie adapter and that to the MosChip parallel port card which works in my old PC to run my plasma table.
Where I am at is, LinuxCNC recognizes the MosChip card but shows this error below. Any help would be appreciated.

Note the pcie adapter is from Amazoncnc@raspberrypi:~$ lspci -vv
0000:00:00.0 PCI bridge: Broadcom Inc. and subsidiaries BCM2712 PCIe Bridge (rev 21) (prog-if 00 [Normal decode])
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSELhttps://www.amazon.com/Waveshare-PCIe-x1-Board-Compatible/dp/B0DYCHPBL3/ref=sr_1_9?crid=33VGWMUG0BYP3&dib=eyJ2IjoiMSJ9.ypQynbq41MCoeL4QGbABJHPTLsXcsupt4y410Y7-ojV6fTZ0l1M0KgsBg1J-yDKzsnJKpEpvTI-4IPJQlz7VGpzcEdx4HVRXnVcwc6LUxmMsNXybT09m7bEUKP-XrAHi_aLbnWLF7A4PnWWFlLrgbw_c4POs6tvwYKhloFUVozBtrmY_6VMjehxaNp7EqRCznyaAfjPxqCbt5p75su5ewqCcAUu9DFlwG6k9lVeqdqE.BDsiMCAAEEQHMEl5wAkZVBy3hYMhbq_P1rJMjNTIVSc&dib_tag=se&sprefix=waveshare+pcie%2Caps%2C95

 =fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 39
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
Memory behind bridge: 80000000-800fffff [size=1M] [32-bit]
Prefetchable memory behind bridge: [disabled] [64-bit]
Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
BridgeCtl: Parity- SERR- NoISA- VGA- VGA16- MAbort- >Reset- FastB2B-
PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
Capabilities: <access denied>
Kernel driver in use: pcieport

0000:01:00.0 Parallel controller: MosChip Semiconductor Technology Ltd. MCS9900 Multi-I/O Controller (prog-if 03 [IEEE1284])
Subsystem: Asix Electronics Corporation (Wrong ID) MCS9900 Multi-I/O Controller
Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast
>TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Interrupt: pin A routed to IRQ 0
Region 2: Memory at 1b80000000 (32-bit, non-prefetchable) [disabled] [size=4K]
Region 5: Memory at 1b80001000 (32-bit, non-prefetchable) [disabled] [size=4K]
Capabilities: <access denied>

0001:00:00.0 PCI bridge: Broadcom Inc. and subsidiaries BCM2712 PCIe Bridge (rev 21) (prog-if 00 [Normal decode])
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 40
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
Memory behind bridge: 00000000-005fffff [size=6M] [32-bit]
Prefetchable memory behind bridge: [disabled] [64-bit]
Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
BridgeCtl: Parity- SERR- NoISA- VGA- VGA16- MAbort- >Reset- FastB2B-
PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
Capabilities: <access denied>
Kernel driver in use: pcieport

0001:01:00.0 Ethernet controller: Raspberry Pi Ltd RP1 PCIe 2.0 South Bridge
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 40
Region 0: Memory at 1f00410000 (32-bit, non-prefetchable) [size=16K]
Region 1: Memory at 1f00000000 (32-bit, non-prefetchable) [virtual] [size=4M]
Region 2: Memory at 1f00400000 (32-bit, non-prefetchable) [size=64K]
Capabilities: <access denied>
Kernel driver in use: rp1

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
13 Aug 2025 00:15 #333303 by tommylight
Replied by tommylight on topic Raspbery pi5 pcie adapter to parport card
Use sudo with lspci, a lot of info is not accessible without it
sudo lspci -v

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

More
13 Aug 2025 02:07 #333304 by KaveMan
Replied by KaveMan on topic Raspbery pi5 pcie adapter to parport card
Not sure if this helps?

cnc@raspberrypi:~$ sudo lspci -v
0000:00:00.0 PCI bridge: Broadcom Inc. and subsidiaries BCM2712 PCIe Bridge (rev 21) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 39
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
Memory behind bridge: 80000000-800fffff [size=1M] [32-bit]
Prefetchable memory behind bridge: [disabled] [64-bit]
Capabilities: [48] Power Management version 3
Capabilities: [ac] Express Root Port (Slot-), MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [160] Virtual Channel
Capabilities: [180] Vendor Specific Information: ID=0000 Rev=0 Len=028 <?>
Capabilities: [240] L1 PM Substates
Capabilities: [300] Secondary PCI Express
Kernel driver in use: pcieport

0000:01:00.0 Parallel controller: MosChip Semiconductor Technology Ltd. MCS9900 Multi-I/O Controller (prog-if 03 [IEEE1284])
Subsystem: Asix Electronics Corporation (Wrong ID) MCS9900 Multi-I/O Controller
Flags: fast devsel
Memory at 1b80000000 (32-bit, non-prefetchable) [disabled] [size=4K]
Memory at 1b80001000 (32-bit, non-prefetchable) [disabled] [size=4K]
Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [78] Power Management version 3
Capabilities: [80] Express Legacy Endpoint, MSI 00
Capabilities: [100] Virtual Channel
Capabilities: [800] Advanced Error Reporting

0001:00:00.0 PCI bridge: Broadcom Inc. and subsi

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

More
13 Aug 2025 02:08 #333305 by unknown
Replied by unknown on topic Raspbery pi5 pcie adapter to parport card
pipci.jeffgeerling.com/#other-cards

Has a list of cards that work.

BAR and arm64 have issues or no support.
For extra IO either mesa or the RIO project are best bet.

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

More
13 Aug 2025 03:01 #333306 by rodw
probably need to give permissions to the user for the par port

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

More
13 Aug 2025 03:32 #333309 by KaveMan
Replied by KaveMan on topic Raspbery pi5 pcie adapter to parport card
Thanks. but, I am unsure how and or what I would target for the permission? would you have an example?

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

More
13 Aug 2025 10:07 #333322 by unknown

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

More
13 Aug 2025 12:41 #333329 by KaveMan
Replied by KaveMan on topic Raspbery pi5 pcie adapter to parport card
Thanks 'unknown'. However, the post that you link to was prior to the pi5 release. The Pi5 now has a dedicated pcie port that the pi4 did not have.
I could be and am likely wrong here. However, Because this parport card is recognized, I do believe this is a permissions issue. Or a vendor ID issue. I am hopeful that getting this parport to work would open the door for me to use a parport along side the GPIOs and expanded capabilities of the pi5.

My Linux skills are rusty and lacking at best. So again any help is appreciated.

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

More
13 Aug 2025 13:37 #333333 by KaveMan
Replied by KaveMan on topic Raspbery pi5 pcie adapter to parport card
FYI... tried a different Parport card. however appears the drivers are missing and I am struggling to get the them installed.

cnc@raspberrypi:~$ sudo lspci -v
0000:00:00.0 PCI bridge: Broadcom Inc. and subsidiaries BCM2712 PCIe Bridge (rev 21) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 38
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
Memory behind bridge: 80000000-800fffff =1M% [32-bit]cnc@raspberrypi:~$ sudo lspci -v
0000:00:00.0 PCI bridge: Broadcom Inc. and subsidiaries BCM2712 PCIe Bridge (rev 21) (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0, IRQ 38
    Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
    Memory behind bridge: 80000000-800fffff [size=1M] [32-bit]
    Prefetchable memory behind bridge: [disabled] [64-bit]
    Capabilities: [48] Power Management version 3
    Capabilities: [ac] Express Root Port (Slot-), MSI 00
    Capabilities: [100] Advanced Error Reporting
    Capabilities: [160] Virtual Channel
    Capabilities: [180] Vendor Specific Information: ID=0000 Rev=0 Len=028 <?>
    Capabilities: [240] L1 PM Substates
    Capabilities: [300] Secondary PCI Express
    Kernel driver in use: pcieport

0000:01:00.0 Serial controller: Nanjing Qinheng Microelectronics Co., Ltd. CH382L PCIe Parallel Port Adapter (rev 10) (prog-if 05 [16850])
    Subsystem: Nanjing Qinheng Microelectronics Co., Ltd. CH382L PCIe Parallel Port Adapter
    Flags: fast devsel, IRQ 38
    Memory at 1b80000000 (32-bit, prefetchable) [size=32K]
    Expansion ROM at 1b80008000 [virtual] [disabled] [size=32K]
    Capabilities: [60] Power Management version 3
    Capabilities: [68] MSI: Enable- Count=1/32 Maskable+ 64bit+
    Capabilities: [80] Express Legacy Endpoint, MSI 00
    Capabilities: [100] Advanced Error Reporting


 

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

More
13 Aug 2025 13:57 #333334 by unknown
Replied by unknown on topic Raspbery pi5 pcie adapter to parport card
It's very rare you need to install drivers for a parallel port in Linux. Most Vendor supplied ones are woefully out of date, and are usually for the vendor specific capabilities of the serial port. These cards are usually supported by the pc_serial Linux driver. Both chipsets you have tried are well established and work fine on the x86 platform with the Linux drivers that come with the kernel.

To tell the truth I'm not even sure the RPi5 kernel that is in the image even has support for a PC parallel port. When built the image I just used the RPi5 default config and enabled the options for real time.

Now the real issue is that the RPi SOC doesn't support BAR, I misspoke and stated ARM64.
If you had read the links I gave you would have seen this stated. Unless there have been major changes to the way the RPi5 manages IO ports and mapping them, unfortunately a PCIe parallel port is not going the work with the RPi5.
Yes it will see the adaptor but will not be able to use it as a PC would.

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

Time to create page: 0.073 seconds
Powered by Kunena Forum