Page 1 of 1

PCAN-PCI Express on Red Hat Linux 7.2

Posted: Wed 5. Jun 2019, 12:35
by timur
Hi,
I need help with install drivers for PCAN-PCI Express on old version Red Hat.
I have RedHat machine with installed PCAN-PCI (IPEH-002066)
Today we need replace PCAN-PCI to PCAN-PCI Express(IPEH-003026), but I can't install drivers, latest drivers don't compiling on this OS.

Code: Select all

 # uname -a
Linux Pas 2.4.7-10smp #1 SMP Thu Sep 6 17:09:31 EDT 2001 i686 unknown

Code: Select all

# cat /etc/redhat-release
Red Hat Linux release 7.2 (Enigma)

Code: Select all

# cat /proc/pcan

*--------- PEAK-Systems CAN interfaces (www.peak-system.com) ----------
*-------------------  *Name: Release_20030202_u *  --------------------
*------------------ 0 interfaces @ major 254 found --------------------
*n typ ---base--- ir ---read--- ---write-- ---irqs--- ---error-- status

Code: Select all

# lspci -v
...
03:00.0 Network controller: Unknown device 001c:0003 (rev 02)
        Subsystem: Unknown device 001c:0002
        Flags: fast devsel, IRQ 18
        Memory at fd4e0000 (32-bit, non-prefetchable) [size=64K]
        Memory at fd4f0000 (32-bit, non-prefetchable) [size=64K]
        Capabilities: [50] Power Management version 0
        Capabilities: [70] Message Signalled Interrupts: 64bit+ Queue=0/0 Enable-
        Capabilities: [90] #10 [0001]
Thanks!

Re: PCAN-PCI Express on Red Hat Linux 7.2

Posted: Wed 5. Jun 2019, 13:42
by M.Maidhof
Hi,

sorry, but we don't support such old kernel version 2.4 with our latest drivers. Please use a PCI or USB based PCAN device on such an old system.

regards

Michael

Re: PCAN-PCI Express on Red Hat Linux 7.2

Posted: Thu 6. Jun 2019, 11:50
by timur
Thank you!
Can you advise me, what solution we can choose from products your company?
We use SCADA-software that works through winkonvis, according this: CGI<->HTTP<->CAN<->some devices.
In my new server there is no PCI, only PCI-E.
winkonvis dosn't support USB based PCAN?
Or we can try this - PCAN-Ethernet Gateway DR (IPEH-004010) ?

Re: PCAN-PCI Express on Red Hat Linux 7.2

Posted: Thu 6. Jun 2019, 13:35
by M.Maidhof
Hi,

if this software is fixed to use PCI devices, I see no solution for your problem. Why not using a newer version of Linux?

regards

Michael

Re: PCAN-PCI Express on Red Hat Linux 7.2

Posted: Thu 6. Jun 2019, 15:55
by timur
What version of the KERNEL does PCI-e support start with?
What version of the DRIVERS does PCAN-PCI Express support start with?

Re: PCAN-PCI Express on Red Hat Linux 7.2

Posted: Thu 6. Jun 2019, 18:19
by M.Maidhof
The kernel driver (SocketCAN) will make no sense, because it looks like you are using the peak-linux-driver in chardev mode, isn't it?

But for your info: the PCAN-PCI-Express IPEH-003026 (FPGA version) will be supported by the kernel since kernel 3.4 and with peak-linux-driver-7.5.

regards

Michael

Re: PCAN-PCI Express on Red Hat Linux 7.2

Posted: Fri 7. Jun 2019, 08:14
by timur
Yes, we are using peak-linux-driver in chardev mode.
We are bought this card because the written support of kernel 2.4.
It's so sadly for us.
Thank you for help!

Re: PCAN-PCI Express on Red Hat Linux 7.2

Posted: Fri 7. Jun 2019, 10:02
by M.Maidhof
Hi,

from your first post I can see that you are using a peak-linux driver from the year 2002 (!). We don't have this driver anymore in our archive, but please try the following patch:

open \src\pcan_pci.c and modify:

#define PCAN_PCI_DEVICE_ID 0x0001

to

#define PCAN_PCI_DEVICE_ID 0x0003

rebuild the driver and check if the PCAN-PCI Express card will be detected by the driver.

regards

Michael

Re: PCAN-PCI Express on Red Hat Linux 7.2

Posted: Thu 13. Jun 2019, 08:00
by timur
Thank you!
It works!