-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
does a PCIe parallel port card work with the CM4? #50
Comments
Here's what I get with a Raspberry Pi 4/CM4 and a Delock PCI Express Card to 1 x Parallel IEEE1284 (https://www.delock.de/produkt/90412/pdf.html?sprache=en) in the PCIe port:
Here's the segfault message I get with parport_pc:
Kernel source acquired with rpi-source from https://github.com/RPi-Distro/rpi-source, -> "make menuconfig" - selected parallel port drivers -> "make prepare" -> "make -C . M=drivers/parport" -> "sudo insmod drivers/parport/parport.ko" -> "sudo insmod drivers/parport/parport_pc.ko irq=none" (reference: https://www.kernel.org/doc/html/latest/admin-guide/parport.html) |
Research so far indicates that the problem is the BAR allocation from incompatible adresses:
|
Hmm, I hope we're not running up against this "IO BAR" issue, but I suspect that might be it: https://www.raspberrypi.org/forums/viewtopic.php?t=288902 Specifically, see this interchange:
|
To get another data point, I'm setting up a test with https://media.startech.com/cms/pdfs/pex1p_datasheet.pdf And latest (5.10) kernel from https://github.com/raspberrypi/linux/ Kernel building now... |
OK, I'm getting the same oops as you. Here's the
and the oops (just ran modprobe parport_pc with no module options):
|
should have noted this too:
|
Same as mine, the io size of 0x0004 leads me to speculate that's the address for 0x378, since that would be enough for data/status/control registers. |
Same model card in a PC:
And
According to comment at the top of https://www.semiconductorstore.com/pdf/newsite/oxford/OXPCIe952_ds.pdf If the Broadcom 2711's PCI bridge doesn't support mapping I/O addresses, and the cards don't offer a memory mapped alternative, I think we may be at a dead end. |
@herrkuhn mentioned in #31 that he had tried a parallel port PCIe card with the Pi CM4 (I assume with the CM4 IO module which brings the single PCIe lane out to a x4 slot).
Let's capture any data from that experiment here for people who might be looking at other ways to get a parallel port to work with the Pi.
The text was updated successfully, but these errors were encountered: