3 title: Installation Guide for J1939
5 https://git.automotivelinux.org/apps/agl-service-can-low-level/plain/docs/3-Installation-J1939.md?h=master
8 <!-- WARNING: This file is generated by fetch_docs.js using /home/boron/Documents/AGL/docs-webtemplate/site/_data/tocs/apis_services/master/agl-service-can-low-level-developer-guides-api-services-book.yml -->
10 # Installation j1939 for AGL
12 #### Minimum kernel version : 4.19
14 ## Compilation of kernel j1939
16 ##### Clone linux-can-next repository on kernel.org
19 git clone https://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next.git/
22 ##### Checkout on j1939 branch
28 ##### Add the compilation of the j1939
33 - Can bus subsystem support
53 ###### CentOS/RHEL/Oracle/Scientific and Fedora Linux
56 grub2-mkconfig -o /boot/grub2/grub.cfg
57 grubby --set-default /boot/vmlinuz-...
61 ###### Debian/Ubuntu Linux
68 ##### Check if the installation is correct
74 If no errors are generated you have successfully install a kernel with j1939 module.
76 You can have a problem with header file, to check that go in the file /usr/include/linux/can.h
79 vi /usr/include/linux/can.h
82 If in the struct sockaddr_can you don't see j1939, the header are not upgrade.
84 So you need to do this manually, go to you're linux-can-next repository and do the following command:
87 cp include/uapi/linux/can.h /usr/include/linux/can.h
88 cp include/uapi/linux/can/j1939.h /usr/include/linux/can/