Hi,
here you will find a step by step instruction on how to install our linux driver on a Raspberry PI with the latest raspbian wheezy with kernel 3.6.11+:
check your kernel version:
mm@raspberrypi ~ $ uname -r
3.6.11+
get the linux headers for 3.6.11+ from here:
wget
http://www.niksula.hut.fi/~mhiienka/Rpi ... _armhf.deb
install the headers:
sudo dpkg -i linux-headers-3.6.11+_3.6.11+-2_armhf.deb
get the latest peak-linux driver 7.8 from here:
wget
http://www.peak-system.com/fileadmin/me ... 7.8.tar.gz
unpack it:
tar -xzf peak-linux-driver-7.8.tar.gz
build the driver:
cd peak-linux-driver-7.8/
make clean
make NET=NO PCI=NO PAR=NO ISA=NO PCC=NO DNG=NO
sudo make install
cd driver
sudo insmod pcan.ko
check that the driver is loaded:
mm@raspberrypi ~/peak-linux-driver-7.8/driver $ cat /proc/pcan
*------------- PEAK-System CAN interfaces (
http://www.peak-system.com) -------------
*------------- Release_20130131_n (7.8.0) Apr 1 2013 10:58:08 --------------
*------------------------------- [mod] [usb] --------------------------------
*--------------------- 1 interfaces @ major 248 found -----------------------
*n -type- ndev --base-- irq --btr- --read-- --write- --irqs-- -errors- status
32 usb -NA- ffffffff 255 0x001c 00000000 00000000 00000000 00000000 0x0000
with cat /dev/pcan32 you will receive data (500k)
with echo "m s 0x11 2 0x22 0x33"> /dev/pcan32 you can transmit data with your Raspberry PI.
regards
Michael