Can't load 2nd CAN port in device

This forum covers PCAN-Linux and Linux development issues concerning our products
Post Reply
vedato
Posts: 5
Joined: Tue 12. Oct 2010, 10:43

Can't load 2nd CAN port in device

Post by vedato » Fri 19. Nov 2010, 13:48

I have an embedded system with one on board CAN port and once PCAN-PC/104 Single Channel opto-decoupled CAN port. When I try to load the linux driver I only get one port activated. I am using linux driver version 6.7. I have already verified the operation of each CAN port individually. I need them to work simulatenously. Can anyone help?

PCAN-PC/104 serial number: IPEH-002056 00932

driver load commands:
/sbin/insmod /lib/modules/2.6.17.13inc70/misc/pcan.ko type=isa io=0x340,0x300 irq=5,7
/usr/sbin/pcan_make_devices 2

results from /var/log/messages.log
Nov 19 13:59:18 pixy kernel: pcan: Release_20080220_n
Nov 19 13:59:18 pixy kernel: pcan: driver config [mod] [isa]
Nov 19 13:59:18 pixy kernel: pcan: isa device minor 8 expected (io=0x0340,irq=5)
Nov 19 13:59:18 pixy kernel: pcan: major 254.

contects of /proc/pcan
*------------ PEAK-Systems CAN interfaces (www.peak-system.com) -------------
*-------------------------- Release_20080220_n ----------------------------
*------------------------------- [mod] [isa] --------------------------------
*--------------------- 1 interfaces @ major 254 found -----------------------
*n -type- ndev --base-- irq --btr- --read-- --write- --irqs-- -errors- status
8 isa -NA- 00000340 005 0x001c 00000000 00000000 00000000 00000000 0x0000

/dev/pcan ports list
-bash-3.1# ls /dev/pcan*
/dev/pcan0 /dev/pcan16 /dev/pcan24 /dev/pcan32 /dev/pcan40 /dev/pcan8
/dev/pcan1 /dev/pcan17 /dev/pcan25 /dev/pcan33 /dev/pcan41 /dev/pcan9


Kernel information
-bash-3.1# uname -a
Linux pixy 2.6.17.13inc70 #4 Thu Jul 30 10:28:08 CEST 2009 i686 i686 i386 GNU/Linux

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

Re: Can't load 2nd CAN port in device

Post by M.Maidhof » Fri 19. Nov 2010, 15:05

Hi,

please take care that we do not support "on board" CAN devices from other manufacturer with our linux driver, please read licence informations of our linux driver.
A good working solution will be to use a two channel PCAN-PC104 card IPEH-002057 to have two channels available.

I think we had a similar dicussion about your own isa based hardware some weeks ago. Please be carefull that using an own CAN hardware with our drivers could cause some problems (licence issues and hardware issues!).

best regards

Michael

Post Reply