Back to FAQ
【CAN Bus】How to update CAN Bus driver to support Ubuntu 22.04 kernel 6.5 or new version?
In Ubuntu 22.04, Kernel 6.5 version requires updating and installing the following tool suite before it can be used. Please refer to the following steps.
1. Install gcc & gcc-12.
#apt install gcc
#apt install gcc-12
2. Modify the main.c of the utility and recompile. Refer to the following:
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)”