summaryrefslogtreecommitdiffstats
path: root/docs/4-Installation-ISOTP.md
blob: 32a767bb7d77d2ce4fa922fee97074aada284ca7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Installation isotp for AGL

## Compilation and installation of module kernel isotp

##### Clone repository Linux Kernel Module for ISO 15765-2:2016 CAN transport protocol

```bash
git clone https://github.com/hartkopp/can-isotp.git
```

##### Move into the new repository

```bash
cd can-isotp
```

##### Install packages to build

```bash
sudo apt-get install build-essential linux-headers-$(uname -r)
```

##### Compile

```bash
make
```

##### Install

```bash
sudo make modules_install
```

##### Load module


```bash
modprobe can
modprobe vcan
sudo insmod ./net/can/can-isotp.ko
```


## Include headers  files


```bash
sudo cp include/uapi/linux/can/isotp.h /usr/include/linux/can/
```

## Enable support at build time

To enable ISO TP support, the binding must be built with -DWITH_FEATURE_ISOTP=ON.
If using the autobuild script, add CONFIGURE_ARGS="-DWITH_FEATURE_ISOTP=ON" to the command used.