Howto install the PEAK Linux driver on a fresh Ubuntu
Posted: Tue 21. Feb 2012, 12:05
Hi,
here is an info on howto install our peak-linux-driver-7.4 on a fresh installed Ubuntu 11.10 (same for 12.04, 12.10, 13.04, please use latest 7.x driver):
****************************
CHARDEV interface:
****************************
- download the driver peak-linux-driver-7.4.tar.gz from our linux website and copy it into your home directory.
- Install libpopt-dev: sudo apt-get install libpopt-dev
- Install g++: sudo apt-get install g++
(only necessary to build the test tool transmittest)
- unpack the driver: tar -xzf peak-linux-driver-7.4.tar.gz
- cd peak-linux-driver-7.4
- make clean
- make NET=NO
- sudo make install
- sudo modprobe pcan
- check with cat /proc/pcan that the driver was successfully installed.
*------------ PEAK-Systems CAN interfaces (http://www.peak-system.com) -------------
*-------------------------- Release_20110912_n (7.4.0) ----------------------
*---------------- [mod] [isa] [pci] [dng] [par] [usb] [pcc] -----------------
*--------------------- 1 interfaces @ major 250 found -----------------------
*n -type- ndev --base-- irq --btr- --read-- --write- --irqs-- -errors- status
32 usb -NA- 30520000 255 0x001c 00000000 00000000 00000000 00000000 0x0000
now you can use the chardev tools in the /test directory or use cat /dev/pcan32 to see the messages in the console.
- to change the baudrate to 250k and enable extended IDs use:
echo "i 0x011C e" > /dev/pcan32
best regards
Michael
here is an info on howto install our peak-linux-driver-7.4 on a fresh installed Ubuntu 11.10 (same for 12.04, 12.10, 13.04, please use latest 7.x driver):
****************************
CHARDEV interface:
****************************
- download the driver peak-linux-driver-7.4.tar.gz from our linux website and copy it into your home directory.
- Install libpopt-dev: sudo apt-get install libpopt-dev
- Install g++: sudo apt-get install g++
(only necessary to build the test tool transmittest)
- unpack the driver: tar -xzf peak-linux-driver-7.4.tar.gz
- cd peak-linux-driver-7.4
- make clean
- make NET=NO
- sudo make install
- sudo modprobe pcan
- check with cat /proc/pcan that the driver was successfully installed.
*------------ PEAK-Systems CAN interfaces (http://www.peak-system.com) -------------
*-------------------------- Release_20110912_n (7.4.0) ----------------------
*---------------- [mod] [isa] [pci] [dng] [par] [usb] [pcc] -----------------
*--------------------- 1 interfaces @ major 250 found -----------------------
*n -type- ndev --base-- irq --btr- --read-- --write- --irqs-- -errors- status
32 usb -NA- 30520000 255 0x001c 00000000 00000000 00000000 00000000 0x0000
now you can use the chardev tools in the /test directory or use cat /dev/pcan32 to see the messages in the console.
- to change the baudrate to 250k and enable extended IDs use:
echo "i 0x011C e" > /dev/pcan32
best regards
Michael