All Forums
 Hardware
 Ethernet, IR, Serial, CAN and high speed data
 Interfacing PCM-3680 CAN module with Viper LITE
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Author Topic  

kevinkre

14 Posts

Posted - 20 Oct 2009 :  00:58:05  Show Profile
Hi there...

I am working with the Arcom VIPER Lite board (http://www.eurotech-inc.com/single-board-computer-pxa255-pc104-viper-lite.asp). The board is running Arcom Embedded Linux (AEL) v4i2 and the linux kernel version is 2.6.16.28

I am trying to interface a CAN card with the VIPER-Lite board. The CAN module is Advantech PCM-3680 (http://www.advantech.com.tw/products/2-port-CAN-bus-PC-104-Module-with-Isolation-Protection/mod_1-2MLIO4.aspx)

However I am having a lot of problems installing and setting up the driver for the CAN module. We used the can4linux driver for this purpose. We have tried various versions of can4linux right from version 3.4 till 3.5.4 but to no avail.

When we cross-compile the can driver it compiles perfectly, but when we try to insmod the can.ko file, we get errors like
Unknown symbol:mdelay
Unknown symbol:udelay

Now we managed to fix the unknown symbol problems and we installed the can driver and deployed configuration settings to /proc/sys/Can
But when we run the test example which transmits data from the CAN module, the system logs shows that the message has been sent but the Tx and Rx LED's on the CAN card do not glow and no signal is received on the oscilloscope connected to the CAN pins.

Next we tried a driver provided by the CAN card manufacturer Advantech called advcan driver which is based on the can4linux 3.4 but still we havent got it to work..
Here after compiling the driver, when we do insmod on can.ko it gives us the same unknown symbol errors..
Unknown symbol:mdelay
Unknown symbol:udelay
Unknown symbol:_bad_udelay

While browsing the Arcom forums I found a topic where this guy has a similar problem here: http://support.eurotech-inc.com/forums/topic.asp?TOPIC_ID=2188

We fixed these errors and then installed the driver and configured it as well. But when we try to run the test example or even do
# cat /dev/can0 or # cat /dev/can1 it gives us the foll error:

SOFT LOCKUP ON CPU#0

We suspect that it is possibly an IRQ issue. The base address for the CAN card is setup using DIP switches and the IRQ's for the 2 ports of the CAN card are setup using jumper pins. We have setup DIP switches for base address of 0xda000 and in the driver setup script which deploys the driver settings to /proc/sys/Can we have specified base address of ch1 as 0x3c0da000 and ch2 as 0x3c0da200
IRQ's have been setup after doing # cat /proc/interrupts to avoid conflicts

We feel that the CAN driver is not working properly with the 2.6.16.28 kernel on the viper.
Then I saw this topic on the forums : http://support.eurotech-inc.com/forums/topic.asp?TOPIC_ID=2690
It is about a different board called Zeus but it is mentioned that you'll supplied that guy with a kernel version 2.6.16.28 which supports CAN.

I wanted to know if that 2.6.16.28 kernel version with CAN support could help us as well. Can I have that kernel version ?
Or else is there any other solution to this problem ?
Please reply. Its very urgent!

Thanks

pdhake

13 Posts

Posted - 20 Oct 2009 :  09:55:24  Show Profile  Email Poster
Hello

We are working on this problem and we will update as soon as we come up with a solution.

Pravin
Go to Top of Page

kevinkre

14 Posts

Posted - 02 Nov 2009 :  00:27:27  Show Profile
Any updates?
Go to Top of Page

pdhake

13 Posts

Posted - 02 Nov 2009 :  12:00:26  Show Profile  Email Poster
Hello kevin

Here is a reply we’ve received from our UK development engineers :

Unfortunately, we have enough difficulty getting our own CAN's to work on our processor boards.
I will forward it on to Engineering, but I don't expect anything back on a discontinued viper
and a third party CAN.


Here is a link which may help, but no guarantees:

http://files.eurotech-inc.com/VIPER/AEL_all_2.4.x_2.6.x_can4Linux.zip

Go to Top of Page

kevinkre

14 Posts

Posted - 04 Nov 2009 :  20:59:38  Show Profile
Any known third party CAN which works well with the arcom viper LITE ? Or is that the viper doesn't go well with most CAN's ?
Go to Top of Page

Russ-Eurotech

273 Posts

Posted - 05 Nov 2009 :  08:52:25  Show Profile  Email Poster
quote:
[i]Originally posted by kevinkre[/i]
[br]Any known third party CAN which works well with the arcom viper LITE ? Or is that the viper doesn't go well with most CAN's ?



Kevin,

have you tried using the Eurotech CAN board?
http://www.eurotech-inc.com/single-board-computer-aim104-can.asp

Does that meet your spec's?
Go to Top of Page

kevinkre

14 Posts

Posted - 05 Nov 2009 :  13:17:23  Show Profile
Russ,

I have not. I am working for a company that has several
of the PCM3680 boards, which work with a previous ARCOM/
Eurotech card (not sure which). I'd like to try out the
Eurotech CAN you suggest. I want to be sure that the drivers
work with the Viper, preferably, with the current firmware
kernel. CAN you advise?

Thanks again,

Kevin
Go to Top of Page

pdhake

13 Posts

Posted - 05 Nov 2009 :  15:19:16  Show Profile  Email Poster
Hello Kevin

As mentioned before http://files.eurotech-inc.com/VIPER/AEL_all_2.4.x_2.6.x_can4Linux.zip gives instructions to make the aim104-can eurotech card work , however we haven't been able to test extensively.

Also we know one certain customer who has got the PCM3680 boards to work on viper using can4linux. We will check up with the customer and see if we can share his information or contact with you.

If you can send us an email on support.us@eurotech.com we would let you know about the customer information depending upon his approval.

Pravin
Go to Top of Page

kevinkre

14 Posts

Posted - 16 Dec 2009 :  18:22:10  Show Profile
Hi...

While searching your products list, I came across the PC/104 addon board COM-1274 here at http://www.eurotech.com/EN/products.aspx?pg=COM-1274

It supports upto 8 serial ports and 2 CAN ports. Has this board been tested with the Arcom Viper ? Will it work with the viper running kernel 2.6.16.28 ?

Thanks
Go to Top of Page

pdhake

13 Posts

Posted - 21 Dec 2009 :  14:11:29  Show Profile  Email Poster
hello Kevin

Sorry for the late reply. The COM-1274 hasn't been tested with the viper lite and is compatible only with kernel >= 2.6.18.

Regards

Pravin
Go to Top of Page
  Topic  
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Jump To:
Eurotech Support Forums © Eurotech Inc. Go To Top Of Page
This page was generated in 0.05 seconds. Snitz Forums 2000