Hello.

Maybe would you try CanFestival

http://perso.wanadoo.fr/edouard.tisserant/CanFestival/

This is a CanOpen master but the Can driver is usable as stand-alone and
provide a rtl-PosixIO interface.

This is known to work on 2.2 -> 2.4 kernel with Rtlinux 2.x ->3

Actualy it only support Adlink PCI-7841 SJA1000 based board, but porting it
to other hardware should be easy (hardware spec are in separate files).

Be carefull... If you plan to stop trying this code just for a little
compiler error, don't try it, you will certainly get some errors (missing
path because you didn't read the doc, and all...). If you want something
where you just have to clik and play, buy it !

Btw Heinz Haeberle drivers seems OK, but you have à #define problem about
SMP (Pentium II doesn't mean 2 CPU... ;o)). Just try to have look in the
source.

Regrads,

Edouard





----- Original Message -----
From: "Henrik Sandklef" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 10, 2002 4:15 PM
Subject: [rtl] CAN driver question(s)


> HI!
>
>  We are trying to set up a system which uses RTLinux for collecting
> data. This box needs to communicate via CAN. I found a few CAN-drivers
> and tried to compile them. No luck so far!
>
>
>
> Question 1:
>  Using Heinz Haeberle can driver, I get complains RTL_SPIN_LOCK (see
> below). Anyone knows about this?
>
> Question 2:
>  I am not sure wether I need to have SMP enabled in the kernel or not
> (?) Could a wrong setting cause the above RTL_SPIN_LOCK-error
>
> Question 3:
>  Can anyone recommend a driver that
> - suits our system (see below)
>  or
> - os known to be "good"
>
>
>
> Our system:
> ----------
> CAN: PCM-3680
> CPU: Pentium II
> OS: 2.2.14-rtl2.2
> Source: RTlinux 2.2
> Linux 2.2.14
> GCC: 2.95.4
>
>
>
>
>
> hesa@einar:/usr/src/can$ make
> gcc -I/usr/src/rtlinux-2.2/linux/include -I/usr/src/rtlinux-2.2/include
> -I/usr/src/rtlinux-2.2 -I/usr/src/rtlinux-2.2/linux/include
> -I/usr/src/rtlinux-2.2/include -I/usr/src/rtlinux-2.2
> -I/usr/src/rtlinux-2.2/include/posix -Wall -Wstrict-prototypes -O2
> -D__SMP__ -D__RTL__ -D__KERNEL__ -DMODULE -pipe -fno-strength-reduce
> -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586
> -DMODVERSIONS -include
> /usr/src/rtlinux-2.2/linux/include/linux/modversions.h
> -fomit-frame-pointer -c candrv.c
> candrv.c: In function `CANAddCallbackFn':
> candrv.c:57: `RTL_SPIN_LOCK' undeclared (first use in this function)
> candrv.c:57: (Each undeclared identifier is reported only once
> candrv.c:57: for each function it appears in.)
> candrv.c: In function `CANRemCallbackFn':
> candrv.c:69: `RTL_SPIN_LOCK' undeclared (first use in this function)
> candrv.c: In function `ProcessID':
> candrv.c:81: `RTL_SPIN_LOCK' undeclared (first use in this function)
> {standard input}: Assembler messages:
> {standard input}:9: Warning: ignoring changed section attributes for
> .modinfo
> make: *** [candrv.o] Error 1
>
>
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/
>

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/

Reply via email to