Back to FAQ
【CAN Bus】How do I update the CAN Bus driver to support Ubuntu 22.04 with kernel 6.5 or later?
In Ubuntu 22.04 with kernel version 6.5 or later, you’ll need to update and install specific tools before using the CAN Bus driver. Please follow the steps below:
Step 1: Install gcc and gcc-12
#apt install gcc
#apt install gcc-12
Step 2: Modify the utility source code and recompile
a. #cd ./EMUC_B202_SocketCAN_driver_v3.7_utility_v3.3_20230418/utility
b. Modify main.c:
Please remove “- 1” from Line 120 “#define N_EMUC (NR_LDISCS - 1)”.
After modified is as “#define N_EMUC (NR_LDISCS)”