PCAN-PCI Express on Red Hat Linux 7.2

This forum covers PCAN-Linux and Linux development issues concerning our products
Post Reply
timur
Posts: 5
Joined: Wed 5. Jun 2019, 10:23

PCAN-PCI Express on Red Hat Linux 7.2

Post by timur » Wed 5. Jun 2019, 12:35

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!

M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: PCAN-PCI Express on Red Hat Linux 7.2

Post by M.Maidhof » Wed 5. Jun 2019, 13:42

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

timur
Posts: 5
Joined: Wed 5. Jun 2019, 10:23

Re: PCAN-PCI Express on Red Hat Linux 7.2

Post by timur » Thu 6. Jun 2019, 11:50

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) ?

M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: PCAN-PCI Express on Red Hat Linux 7.2

Post by M.Maidhof » Thu 6. Jun 2019, 13:35

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

timur
Posts: 5
Joined: Wed 5. Jun 2019, 10:23

Re: PCAN-PCI Express on Red Hat Linux 7.2

Post by timur » Thu 6. Jun 2019, 15:55

What version of the KERNEL does PCI-e support start with?
What version of the DRIVERS does PCAN-PCI Express support start with?

M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: PCAN-PCI Express on Red Hat Linux 7.2

Post by M.Maidhof » Thu 6. Jun 2019, 18:19

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

timur
Posts: 5
Joined: Wed 5. Jun 2019, 10:23

Re: PCAN-PCI Express on Red Hat Linux 7.2

Post by timur » Fri 7. Jun 2019, 08:14

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!
Attachments
peak2.jpg
peak2.jpg (86.28 KiB) Viewed 11247 times

M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: PCAN-PCI Express on Red Hat Linux 7.2

Post by M.Maidhof » Fri 7. Jun 2019, 10:02

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

timur
Posts: 5
Joined: Wed 5. Jun 2019, 10:23

Re: PCAN-PCI Express on Red Hat Linux 7.2

Post by timur » Thu 13. Jun 2019, 08:00

Thank you!
It works!

Post Reply